Skip to content

Add support for Node.js 12.x#1728

Merged
bajtos merged 1 commit into
masterfrom
chore/add-node-12
Apr 30, 2019
Merged

Add support for Node.js 12.x#1728
bajtos merged 1 commit into
masterfrom
chore/add-node-12

Conversation

@bajtos

@bajtos bajtos commented Apr 29, 2019

Copy link
Copy Markdown
Member
  • Fix code to pass all tests on Node.js 12
  • Add Node.js 12 to the list of Travis CI platforms

Related issues

  • connect to <link_to_referenced_issue>

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

@bajtos
bajtos requested review from a team and raymondfeng April 29, 2019 07:41
@bajtos bajtos self-assigned this Apr 29, 2019
@bajtos bajtos added this to the April 2019 milestone milestone Apr 29, 2019
@bajtos

bajtos commented Apr 29, 2019

Copy link
Copy Markdown
Member Author

Any objections against back-porting this change to 3.x?

Comment thread lib/model-utils.js
self._coerce(clauses[k], options);
}

where[p] = clauses;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of weird. Before my change, the block "handle logical operators" did not apply updates made by coerceArray to the original where[p] value. As a result, array-like object {1: {field: 'value'}} was not converted into an array [{field: 'value'}]. I am not sure why this was not caught earlier and surfaced only with Node.js 12. Is it perhaps a change in how deep-equality checks work on the new Node version? IDK.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Fix code to pass all tests on Node.js 12
- Add Node.js 12 to the list of Travis CI platforms
@bajtos
bajtos force-pushed the chore/add-node-12 branch from 7ef195c to 5c3405e Compare April 29, 2019 07:47

@b-admike b-admike left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think the changes you made in order to add support are reasonable.

@jannyHou jannyHou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM when jenkins tests pass.

@bajtos

bajtos commented Apr 29, 2019

Copy link
Copy Markdown
Member Author

@slnode test please

1 similar comment
@b-admike

Copy link
Copy Markdown
Contributor

@slnode test please

@bajtos
bajtos merged commit 6793be2 into master Apr 30, 2019
@bajtos
bajtos deleted the chore/add-node-12 branch April 30, 2019 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants