[chore] Bump nanoid (#1349)
I need to mock nanoid for the ephemeral state fuzz tests, to create repeatable test runs. In order to do that properly it needs to have a consistent version among all our packages. At the same time I'm removing some old unused params in AppOptions ### Change Type <!-- 💡 Indicate the type of change your pull request is. --> <!-- 🤷♀️ If you're not sure, don't select anything --> <!-- ✂️ Feel free to delete unselected options --> <!-- To select one, put an x in the box: [x] --> - [ ] `patch` — Bug Fix - [ ] `minor` — New Feature - [x] `major` — Breaking Change - [ ] `dependencies` — Dependency Update (publishes a `patch` release, for devDependencies use `internal`) - [ ] `documentation` — Changes to the documentation only (will not publish a new version) - [ ] `tests` — Changes to any testing-related code only (will not publish a new version) - [ ] `internal` — Any other changes that don't affect the published package (will not publish a new version) ### Release Notes - Remove unused userId and instanceId props from AppOptions
This commit is contained in:
parent
dfaa536370
commit
5061240912
8 changed files with 20 additions and 30 deletions
|
@ -52,7 +52,7 @@
|
||||||
"esbuild": "^0.16.7",
|
"esbuild": "^0.16.7",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"lazyrepo": "0.0.0-alpha.26",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "4.0.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
|
|
|
@ -153,7 +153,7 @@
|
||||||
},
|
},
|
||||||
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
|
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanoid": "^4.0.1",
|
"nanoid": "4.0.2",
|
||||||
"node-fetch": "^2.0.0"
|
"node-fetch": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -523,9 +523,7 @@ export function applyRotationToSnapshotShapes({ delta, app, snapshot, stage, }:
|
||||||
export interface AppOptions {
|
export interface AppOptions {
|
||||||
config?: TldrawEditorConfig;
|
config?: TldrawEditorConfig;
|
||||||
getContainer: () => HTMLElement;
|
getContainer: () => HTMLElement;
|
||||||
instanceId?: TLInstanceId;
|
|
||||||
store: TLStore;
|
store: TLStore;
|
||||||
userId?: TLUserId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
"is-plain-object": "^5.0.0",
|
"is-plain-object": "^5.0.0",
|
||||||
"lodash.throttle": "^4.1.1",
|
"lodash.throttle": "^4.1.1",
|
||||||
"lodash.uniq": "^4.5.0",
|
"lodash.uniq": "^4.5.0",
|
||||||
"nanoid": "^3.0.0"
|
"nanoid": "4.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
|
|
|
@ -160,14 +160,6 @@ export interface AppOptions {
|
||||||
* given, the body element will be used.
|
* given, the body element will be used.
|
||||||
*/
|
*/
|
||||||
getContainer: () => HTMLElement
|
getContainer: () => HTMLElement
|
||||||
|
|
||||||
/** The id of the current user. If not given, one will be generated. */
|
|
||||||
userId?: TLUserId
|
|
||||||
/**
|
|
||||||
* The id of the app instance (e.g. a browser tab if the app will have only one tldraw app per
|
|
||||||
* tab). If not given, one will be generated.
|
|
||||||
*/
|
|
||||||
instanceId?: TLInstanceId
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @public */
|
/** @public */
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
"@tldraw/tlstore": "workspace:*",
|
"@tldraw/tlstore": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
"@tldraw/tlvalidate": "workspace:*",
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
"nanoid": "^3.0.0"
|
"nanoid": "4.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"signia": "*"
|
"signia": "*"
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"nanoid": "^3.0.0"
|
"nanoid": "4.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"signia": "*"
|
"signia": "*"
|
||||||
|
|
|
@ -4611,7 +4611,7 @@ __metadata:
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash.throttle: ^4.1.1
|
lodash.throttle: ^4.1.1
|
||||||
lodash.uniq: ^4.5.0
|
lodash.uniq: ^4.5.0
|
||||||
nanoid: ^3.0.0
|
nanoid: 4.0.2
|
||||||
react-test-renderer: ^18.2.0
|
react-test-renderer: ^18.2.0
|
||||||
resize-observer-polyfill: ^1.5.1
|
resize-observer-polyfill: ^1.5.1
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -4752,7 +4752,7 @@ __metadata:
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
kleur: ^4.1.5
|
kleur: ^4.1.5
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
nanoid: ^3.0.0
|
nanoid: 4.0.2
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
signia: "*"
|
signia: "*"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
@ -4767,7 +4767,7 @@ __metadata:
|
||||||
"@types/lodash.isequal": ^4.5.6
|
"@types/lodash.isequal": ^4.5.6
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash.isequal: ^4.5.0
|
lodash.isequal: ^4.5.0
|
||||||
nanoid: ^3.0.0
|
nanoid: 4.0.2
|
||||||
raf: ^3.4.1
|
raf: ^3.4.1
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
signia: "*"
|
signia: "*"
|
||||||
|
@ -4874,7 +4874,7 @@ __metadata:
|
||||||
esbuild: ^0.16.7
|
esbuild: ^0.16.7
|
||||||
fs-extra: ^11.1.0
|
fs-extra: ^11.1.0
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
nanoid: ^4.0.2
|
nanoid: 4.0.2
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
react-dom: ^18.2.0
|
react-dom: ^18.2.0
|
||||||
tslib: ^2.4.0
|
tslib: ^2.4.0
|
||||||
|
@ -16596,16 +16596,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"nanoid@npm:^3.0.0, nanoid@npm:^3.3.4, nanoid@npm:^3.3.6":
|
"nanoid@npm:4.0.2":
|
||||||
version: 3.3.6
|
|
||||||
resolution: "nanoid@npm:3.3.6"
|
|
||||||
bin:
|
|
||||||
nanoid: bin/nanoid.cjs
|
|
||||||
checksum: 7d0eda657002738aa5206107bd0580aead6c95c460ef1bdd0b1a87a9c7ae6277ac2e9b945306aaa5b32c6dcb7feaf462d0f552e7f8b5718abfc6ead5c94a71b3
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"nanoid@npm:^4.0.1, nanoid@npm:^4.0.2":
|
|
||||||
version: 4.0.2
|
version: 4.0.2
|
||||||
resolution: "nanoid@npm:4.0.2"
|
resolution: "nanoid@npm:4.0.2"
|
||||||
bin:
|
bin:
|
||||||
|
@ -16614,6 +16605,15 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"nanoid@npm:^3.3.4, nanoid@npm:^3.3.6":
|
||||||
|
version: 3.3.6
|
||||||
|
resolution: "nanoid@npm:3.3.6"
|
||||||
|
bin:
|
||||||
|
nanoid: bin/nanoid.cjs
|
||||||
|
checksum: 7d0eda657002738aa5206107bd0580aead6c95c460ef1bdd0b1a87a9c7ae6277ac2e9b945306aaa5b32c6dcb7feaf462d0f552e7f8b5718abfc6ead5c94a71b3
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"napi-build-utils@npm:^1.0.1":
|
"napi-build-utils@npm:^1.0.1":
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
resolution: "napi-build-utils@npm:1.0.2"
|
resolution: "napi-build-utils@npm:1.0.2"
|
||||||
|
@ -20966,7 +20966,7 @@ __metadata:
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
mocha: ^9.1.1
|
mocha: ^9.1.1
|
||||||
nanoid: ^4.0.1
|
nanoid: 4.0.2
|
||||||
node-fetch: ^2.0.0
|
node-fetch: ^2.0.0
|
||||||
process: ^0.11.10
|
process: ^0.11.10
|
||||||
ts-loader: ^9.2.5
|
ts-loader: ^9.2.5
|
||||||
|
|
Loading…
Reference in a new issue