-
Notifications
You must be signed in to change notification settings - Fork 253
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
docs: Add release tags and export symbols from entry point #405
Conversation
df1faa9
to
156d157
Compare
// the namespace here is used to emulate `export * as EJSON from '...'` | ||
// which as of now (sept 2020) api-extractor does not support | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
export namespace EJSON { |
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.
As the comment states, the ideal code would be to use export * as ESJON from './...'
in bson.ts but unfortunately that syntax is not supported by api-extractor yet, so this is an alternative that could be changed later without breaking changes.
Also unlike our previous solution (a const EJSON = {...}
in bson.ts) this will thread the documentation through to the user's import, before it was being lost.
@@ -126,10 +128,6 @@ export class ObjectId { | |||
return this.id.readInt32BE(0); | |||
} | |||
|
|||
/** | |||
* Sets the generation time of this ObjectId instance | |||
* @deprecated Please use createFromTime |
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.
What happened to the dep notice?
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.
Only the documentation on getters is used, so api-extractor warns to not document setters since it will just be lost, the deprecation on the getter has the createFromTime info.
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.
LGTM, API EXTRACTOR 🙀✅
Also re-enable api-extractor flags to lint our tsdoc blocks. NODE-2837
156d157
to
dcf3219
Compare
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.
LGTM 👍
Also re-enable api-extractor flags to lint our tsdoc blocks.
NODE-2837