Skip to content

Commit 729c663

Browse files
committed
feat(nodes): use big ints for ids
1 parent 4915b96 commit 729c663

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"prettier": "^2.2.1",
6565
"treeify": "^1.1.0",
6666
"ts-jest": "^26.4.4",
67-
"typescript": "^4.1.2"
67+
"typescript": "^4.1.3"
6868
},
6969
"lint-staged": {
7070
"*.{ts,tsx}": [

src/nodes/BaseNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { MirroredRegularNode } from './mirrored';
33
import type { RegularNode } from './RegularNode';
44
import type { RootNode } from './RootNode';
55

6-
let SEED = 0;
6+
let SEED = BigInt(0); // cannot use literal, cause TS.
77

88
export abstract class BaseNode {
99
public readonly id: string;

tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
"compilerOptions": {
1212
"outDir": "dist",
13+
"target": "ES2018",
1314
"moduleResolution": "node"
1415
}
1516
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"include": ["."],
55
"exclude": ["**/__mocks__/**", "dist/"],
66
"compilerOptions": {
7-
"lib": ["dom", "es2017"],
8-
"target": "es2017",
7+
"lib": ["dom", "ES2018"],
8+
"target": "ES2020",
99
"importsNotUsedAsValues": "error",
1010
"esModuleInterop": true
1111
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8648,10 +8648,10 @@ typedarray@^0.0.6:
86488648
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
86498649
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
86508650

8651-
typescript@^4.1.2:
8652-
version "4.1.2"
8653-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
8654-
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
8651+
typescript@^4.1.3:
8652+
version "4.1.3"
8653+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
8654+
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
86558655

86568656
uglify-js@^3.1.4:
86578657
version "3.6.0"

0 commit comments

Comments
 (0)