Skip to content

chore(NODE-6938): update typescript to 5.8.3 #793

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

Merged
merged 2 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"tar": "^7.4.3",
"ts-node": "^10.9.2",
"tsd": "^0.31.1",
"typescript": "^5.5.4",
"typescript": "^5.8.3",
"typescript-cached-transpile": "0.0.6",
"uuid": "^11.1.0"
},
Expand Down
48 changes: 25 additions & 23 deletions src/parser/on_demand/parse_to_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,31 @@ import { NumberUtils } from '../../utils/number_utils';
* - `minKey` is set to 255 so unsigned comparisons succeed
* - Modify with caution, double check the bundle contains literals
*/
const enum BSONElementType {
double = 1,
string = 2,
object = 3,
array = 4,
binData = 5,
undefined = 6,
objectId = 7,
bool = 8,
date = 9,
null = 10,
regex = 11,
dbPointer = 12,
javascript = 13,
symbol = 14,
javascriptWithScope = 15,
int = 16,
timestamp = 17,
long = 18,
decimal = 19,
minKey = 255,
maxKey = 127
}
const BSONElementType = {
double: 1,
string: 2,
object: 3,
array: 4,
binData: 5,
undefined: 6,
objectId: 7,
bool: 8,
date: 9,
null: 10,
regex: 11,
dbPointer: 12,
javascript: 13,
symbol: 14,
javascriptWithScope: 15,
int: 16,
timestamp: 17,
long: 18,
decimal: 19,
minKey: 255,
maxKey: 127
} as const;

type BSONElementType = (typeof BSONElementType)[keyof typeof BSONElementType];

/**
* @public
Expand Down
1 change: 1 addition & 0 deletions test/bench/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"module": "commonjs",
"moduleResolution": "node",
"skipLibCheck": true,
"erasableSyntaxOnly": true,
"lib": [
"es2021"
],
Expand Down
1 change: 1 addition & 0 deletions test/bundling/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"watch": "webpack --watch"
},
"devDependencies": {
"@webpack-cli/generators": "^3.0.1",
"ts-loader": "^9.5.2",
"typescript": "^5.8.3",
"webpack": "^5.99.7",
Expand Down
3 changes: 2 additions & 1 deletion test/bundling/webpack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"allowJs": true
"allowJs": true,
"erasableSyntaxOnly": true
},
"files": ["src/index.ts"]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"module": "commonjs",
"moduleResolution": "node",
"skipLibCheck": true,
"erasableSyntaxOnly": true,
"lib": [
"es2021",
"ES2022.Error"
Expand Down