-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Node 9.3 #22593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 9.3 #22593
Conversation
|
@OwnageIsMagic The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Unrelated build error #22569 And others. |
|
The change itself looks fine but this is not part of NodeJs 8. Seems it's time to move current typings to v8 folder and increase version to v9. |
|
So, just wait? |
|
I have just seen that the change in NodeJS is already included in 9.3.0 so no need to wait. As far as I know the creation of v8 folder and increase the version to 9 to allow typings specific for NodeJS 9 is usually done once needed so you could do it in your PR. At least this is my understanding from the history (see #17027). See also https://github.com/DefinitelyTyped/DefinitelyTyped#i-want-to-update-a-package-to-a-new-major-version @Andy-MS any objections regarding creation of NodeJs 8 version folder? |
|
@Flarna No objections. |
|
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V9.md
9.0.0
9.2.0
9.3.0
|
|
I don't want to checkout repo to my pc to do this |
|
|
types/node/index.d.ts
Outdated
| Console: NodeJS.ConsoleConstructor; | ||
| assert(value: any, message?: string, ...optionalParams: any[]): void; | ||
| dir(obj: any, options?: NodeJS.InspectOptions): void; | ||
| debug(message?: any, ...optionalParams: any[]): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GH inserts tabs instead of spaces :(
|
|
|
Need to update the header in |
types/node/index.d.ts
Outdated
| /************************************************ | ||
| * * | ||
| * Node.js v8.5.x API * | ||
| * Node.js v9.x.x API * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Andy-MS already done that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual header is on the first line -- don't know if this box is really necessary.
|
there are two more things to update #22593 (comment) |
|
Now it says |
types/node/index.d.ts
Outdated
| @@ -1,4 +1,4 @@ | |||
| // Type definitions for Node.js 8.5.x | |||
| // Type definitions for Node.js 9.x.x | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Type definitions for Node.js 9.0
types/node/index.d.ts
Outdated
| setegid(id: number | string): void; | ||
| getgroups(): number[]; | ||
| setgroups(groups: Array<string | number>): void; | ||
| setUncaughtExceptionCaptureCallback((err: Error) => void | null): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the parameter is missing.
Additionally I think that this specifies a function which returns void | null and not a Function (err: Error) => void or null.
I think |
Add writableHighWaterMark/readableHighWaterMark to WriteStream/ReadStream fixed setUncaughtExceptionCaptureCallback() Add module.builtinModules change os.EOL to const add writableHighWaterMark to Duplex writableHighWaterMark and readableHighWaterMark are readonly
|
@OwnageIsMagic I did some changes in this in my fork: https://github.com/Flarna/DefinitelyTyped/tree/patch-2 but somehow I'm not able to create a PR to your branch. Feel free to merge from there. |
|
Now it looks good |
|
Why tests not failing on 1860557 18a98ab? |
|
@OwnageIsMagic types-publisher bug, fixed |
|
ready to merge! |
.travis.yml
Outdated
| language: node_js | ||
| node_js: | ||
| - 8 | ||
| - 9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the nodejs version used to execute tests so not related to the typings version. Not sure if this is really intended to step to NodeJs 9 here. fyi @Andy-MS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this should be done in a separate PR if it is done. I brought it down to 8 when the new release started causing trouble, though it may be fixed now. (#21156)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build was executing fine with node 9
Flarna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, just undo the change in .travis.yml
|
Done |
* SignalsListener signal name nodejs/node#15606 * created Node 8 folder * Create tsconfig.json * Create tslint.json * Create node-tests.ts * Node 9 * update node header * Tabs to spaces * copy inspector.d.ts to v8 folder * correct path mapping for v8 * disable no-declare-current-package for v8 module * Correct version to 9.3.x Add writableHighWaterMark/readableHighWaterMark to WriteStream/ReadStream fixed setUncaughtExceptionCaptureCallback() Add module.builtinModules change os.EOL to const add writableHighWaterMark to Duplex writableHighWaterMark and readableHighWaterMark are readonly * fs.realpathSync.native and fs.realpath.native * fs.realpath.native tests
nodejs/node#15606
Please fill in this template.
npm run lint package-name(ortscif notslint.jsonis present).If changing an existing definition:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }.