From 50612409121ce08c8caa987bbb7cf9ace395c4f4 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Thu, 11 May 2023 12:55:00 +0100 Subject: [PATCH] [chore] Bump nanoid (#1349) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 - [ ] `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 --- apps/vscode/editor/package.json | 2 +- apps/vscode/extension/package.json | 2 +- packages/editor/api-report.md | 2 -- packages/editor/package.json | 2 +- packages/editor/src/lib/app/App.ts | 8 -------- packages/tlschema/package.json | 2 +- packages/tlstore/package.json | 2 +- public-yarn.lock | 30 +++++++++++++++--------------- 8 files changed, 20 insertions(+), 30 deletions(-) diff --git a/apps/vscode/editor/package.json b/apps/vscode/editor/package.json index 5421356b2..32c1b2405 100644 --- a/apps/vscode/editor/package.json +++ b/apps/vscode/editor/package.json @@ -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" diff --git a/apps/vscode/extension/package.json b/apps/vscode/extension/package.json index 64bc7f703..f5849918b 100644 --- a/apps/vscode/extension/package.json +++ b/apps/vscode/extension/package.json @@ -153,7 +153,7 @@ }, "gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296", "dependencies": { - "nanoid": "^4.0.1", + "nanoid": "4.0.2", "node-fetch": "^2.0.0" } } diff --git a/packages/editor/api-report.md b/packages/editor/api-report.md index 34f6bb7fc..20b66eeb3 100644 --- a/packages/editor/api-report.md +++ b/packages/editor/api-report.md @@ -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) diff --git a/packages/editor/package.json b/packages/editor/package.json index 8f551758a..a6ca26ed7 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -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", diff --git a/packages/editor/src/lib/app/App.ts b/packages/editor/src/lib/app/App.ts index d958e3b4c..42bc5a258 100644 --- a/packages/editor/src/lib/app/App.ts +++ b/packages/editor/src/lib/app/App.ts @@ -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 */ diff --git a/packages/tlschema/package.json b/packages/tlschema/package.json index 22e83fd35..de6be484c 100644 --- a/packages/tlschema/package.json +++ b/packages/tlschema/package.json @@ -62,7 +62,7 @@ "@tldraw/tlstore": "workspace:*", "@tldraw/tlvalidate": "workspace:*", "@tldraw/utils": "workspace:*", - "nanoid": "^3.0.0" + "nanoid": "4.0.2" }, "peerDependencies": { "signia": "*" diff --git a/packages/tlstore/package.json b/packages/tlstore/package.json index 52391e2f9..25e2820de 100644 --- a/packages/tlstore/package.json +++ b/packages/tlstore/package.json @@ -43,7 +43,7 @@ "dependencies": { "@tldraw/utils": "workspace:*", "lodash.isequal": "^4.5.0", - "nanoid": "^3.0.0" + "nanoid": "4.0.2" }, "peerDependencies": { "signia": "*" diff --git a/public-yarn.lock b/public-yarn.lock index 818f3ed45..adce0395d 100644 --- a/public-yarn.lock +++ b/public-yarn.lock @@ -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