-
Notifications
You must be signed in to change notification settings - Fork 254
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
fix(NODE-6074): Avoiding top-level awaits in bson
by introducing "node" bundles
#669
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8c109c5
Move the import of crypto into a seperate node.ts
kraenhansen fa051f4
Configure rollup to produce two node specific bundles
kraenhansen 97a4da7
Adding the tsconfig.node.js to the eslint config
kraenhansen ad0137a
Adding a reference from the node ts project back to the common project
kraenhansen 724d85b
Deleting the import of the rewriter plugin
kraenhansen cd9245a
Ignoring *.tsbuildinfo files
kraenhansen 1e71e34
Adding a rootDir now that the project is composite
kraenhansen 0c76131
Moved common config into its own TS project to avoid a circular refer…
kraenhansen File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,5 @@ docs/public | |
.nvmrc | ||
|
||
benchmarks.json | ||
|
||
*.tsbuildinfo |
44 changes: 0 additions & 44 deletions
44
etc/rollup/rollup-plugin-require-rewriter/require_rewriter.mjs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { randomBytes } from 'node:crypto'; | ||
|
||
import { nodeJsByteUtils } from './utils/node_byte_utils'; | ||
nodeJsByteUtils.randomBytes = randomBytes; | ||
|
||
export * from './index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"allowJs": false, | ||
"checkJs": false, | ||
"strict": true, | ||
"alwaysStrict": true, | ||
"target": "es2021", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es2021", | ||
"ES2022.Error" | ||
], | ||
"outDir": "lib", | ||
"importHelpers": false, | ||
"noEmitHelpers": false, | ||
"noEmitOnError": true, | ||
"emitDeclarationOnly": true, | ||
// Generate separate source maps files with sourceContent included | ||
"sourceMap": true, | ||
"inlineSourceMap": false, | ||
"inlineSources": false, | ||
// API-extractor makes use of the declarations, npm script should be cleaning these up | ||
"declaration": true, | ||
"declarationMap": true, | ||
"types": [], | ||
"isolatedModules": true, | ||
"rootDir": "src" | ||
}, | ||
"ts-node": { | ||
"transpileOnly": true, | ||
"compiler": "typescript-cached-transpile", | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"src/node.ts" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"checkJs": false, | ||
"strict": true, | ||
"alwaysStrict": true, | ||
"target": "es2021", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es2021", | ||
"ES2022.Error" | ||
], | ||
"outDir": "lib", | ||
"importHelpers": false, | ||
"noEmitHelpers": false, | ||
"noEmitOnError": true, | ||
"emitDeclarationOnly": true, | ||
// Generate separate source maps files with sourceContent included | ||
"sourceMap": true, | ||
"inlineSourceMap": false, | ||
"inlineSources": false, | ||
// API-extractor makes use of the declarations, npm script should be cleaning these up | ||
"declaration": true, | ||
"declarationMap": true, | ||
"types": [], | ||
"isolatedModules": true | ||
}, | ||
"ts-node": { | ||
"transpileOnly": true, | ||
"compiler": "typescript-cached-transpile", | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
"files": [], | ||
"references": [ | ||
{ "path": "./tsconfig.common.json" }, | ||
{ "path": "./tsconfig.node.json" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "./tsconfig.common.json", | ||
"compilerOptions": { | ||
"types": ["node"] | ||
}, | ||
"include": [], | ||
"files": [ | ||
"src/node.ts" | ||
], | ||
"references": [ | ||
{ "path": "./tsconfig.common.json" } | ||
] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Adding
--build
because the project now relies on TS project references.Adding
--force
because thecomposite: true
entailsincremental: true
and subsequent runs ofbuild:dts
would fail because theclean_definition_files
deletes files produced bytsc
and because of theincremental: true
it TSC doesn't check the existence of cached files. The--force
opts out of incremental builds.