Skip to content
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

Merged
merged 2 commits into from
Oct 9, 2020

Conversation

nbbeeken
Copy link
Contributor

Also re-enable api-extractor flags to lint our tsdoc blocks.

NODE-2837

@nbbeeken nbbeeken force-pushed the NODE-2837/all-symbol-exports branch from df1faa9 to 156d157 Compare September 30, 2020 21:08
// 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 {
Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@reggi reggi left a 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
@nbbeeken nbbeeken force-pushed the NODE-2837/all-symbol-exports branch from 156d157 to dcf3219 Compare October 1, 2020 18:11
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nbbeeken nbbeeken merged commit 3752fdc into master Oct 9, 2020
@nbbeeken nbbeeken deleted the NODE-2837/all-symbol-exports branch October 9, 2020 19:00
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.

3 participants