[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:
David Sheldrick 2023-05-11 12:55:00 +01:00 committed by GitHub
parent dfaa536370
commit 5061240912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 30 deletions

View file

@ -52,7 +52,7 @@
"esbuild": "^0.16.7",
"fs-extra": "^11.1.0",
"lazyrepo": "0.0.0-alpha.26",
"nanoid": "^4.0.2",
"nanoid": "4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.4.0"

View file

@ -153,7 +153,7 @@
},
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
"dependencies": {
"nanoid": "^4.0.1",
"nanoid": "4.0.2",
"node-fetch": "^2.0.0"
}
}

View file

@ -523,9 +523,7 @@ export function applyRotationToSnapshotShapes({ delta, app, snapshot, stage, }:
export interface AppOptions {
config?: TldrawEditorConfig;
getContainer: () => HTMLElement;
instanceId?: TLInstanceId;
store: TLStore;
userId?: TLUserId;
}
// @public (undocumented)

View file

@ -59,7 +59,7 @@
"is-plain-object": "^5.0.0",
"lodash.throttle": "^4.1.1",
"lodash.uniq": "^4.5.0",
"nanoid": "^3.0.0"
"nanoid": "4.0.2"
},
"peerDependencies": {
"react": "^18",

View file

@ -160,14 +160,6 @@ export interface AppOptions {
* given, the body element will be used.
*/
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 */

View file

@ -62,7 +62,7 @@
"@tldraw/tlstore": "workspace:*",
"@tldraw/tlvalidate": "workspace:*",
"@tldraw/utils": "workspace:*",
"nanoid": "^3.0.0"
"nanoid": "4.0.2"
},
"peerDependencies": {
"signia": "*"

View file

@ -43,7 +43,7 @@
"dependencies": {
"@tldraw/utils": "workspace:*",
"lodash.isequal": "^4.5.0",
"nanoid": "^3.0.0"
"nanoid": "4.0.2"
},
"peerDependencies": {
"signia": "*"

View file

@ -4611,7 +4611,7 @@ __metadata:
lazyrepo: 0.0.0-alpha.26
lodash.throttle: ^4.1.1
lodash.uniq: ^4.5.0
nanoid: ^3.0.0
nanoid: 4.0.2
react-test-renderer: ^18.2.0
resize-observer-polyfill: ^1.5.1
peerDependencies:
@ -4752,7 +4752,7 @@ __metadata:
"@tldraw/utils": "workspace:*"
kleur: ^4.1.5
lazyrepo: 0.0.0-alpha.26
nanoid: ^3.0.0
nanoid: 4.0.2
peerDependencies:
signia: "*"
languageName: unknown
@ -4767,7 +4767,7 @@ __metadata:
"@types/lodash.isequal": ^4.5.6
lazyrepo: 0.0.0-alpha.26
lodash.isequal: ^4.5.0
nanoid: ^3.0.0
nanoid: 4.0.2
raf: ^3.4.1
peerDependencies:
signia: "*"
@ -4874,7 +4874,7 @@ __metadata:
esbuild: ^0.16.7
fs-extra: ^11.1.0
lazyrepo: 0.0.0-alpha.26
nanoid: ^4.0.2
nanoid: 4.0.2
react: ^18.2.0
react-dom: ^18.2.0
tslib: ^2.4.0
@ -16596,16 +16596,7 @@ __metadata:
languageName: node
linkType: hard
"nanoid@npm:^3.0.0, 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
"nanoid@npm:^4.0.1, nanoid@npm:^4.0.2":
"nanoid@npm:4.0.2":
version: 4.0.2
resolution: "nanoid@npm:4.0.2"
bin:
@ -16614,6 +16605,15 @@ __metadata:
languageName: node
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":
version: 1.0.2
resolution: "napi-build-utils@npm:1.0.2"
@ -20966,7 +20966,7 @@ __metadata:
lazyrepo: 0.0.0-alpha.26
lodash: ^4.17.21
mocha: ^9.1.1
nanoid: ^4.0.1
nanoid: 4.0.2
node-fetch: ^2.0.0
process: ^0.11.10
ts-loader: ^9.2.5