From 609301440ed734d6a55c95e860921aec70fa3ad5 Mon Sep 17 00:00:00 2001 From: pjdotson Date: Wed, 17 Jul 2024 12:40:10 -0700 Subject: [PATCH] Updated nanoid version --- package.json | 3 +-- pnpm-lock.yaml | 12 +++++++++--- x/ts/package.json | 2 +- x/ts/src/id/id.ts | 1 - 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f5251a350e..05bfe93332 100644 --- a/package.json +++ b/package.json @@ -83,8 +83,7 @@ "node-fetch": "2.6.11", "prettier": "3.3.2", "@tauri-apps/api": "^2.0.0-beta.14", - "eslint": "^9.6.0", - "nanoid": "^3.0.0" + "eslint": "^9.6.0" } }, "packageManager": "pnpm@9.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 304400e303..5d2cb1f5ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,6 @@ overrides: prettier: 3.3.2 '@tauri-apps/api': ^2.0.0-beta.14 eslint: ^9.6.0 - nanoid: ^3.0.0 importers: @@ -680,8 +679,8 @@ importers: specifier: ^4.2.0 version: 4.2.0 nanoid: - specifier: ^3.0.0 - version: 3.3.7 + specifier: ^5.0.0 + version: 5.0.7 zod: specifier: 3.23.8 version: 3.23.8 @@ -4960,6 +4959,11 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanoid@5.0.7: + resolution: {integrity: sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ==} + engines: {node: ^18 || >=20} + hasBin: true + napi-build-utils@1.0.2: resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==} @@ -11996,6 +12000,8 @@ snapshots: nanoid@3.3.7: {} + nanoid@5.0.7: {} + napi-build-utils@1.0.2: optional: true diff --git a/x/ts/package.json b/x/ts/package.json index afca64abe2..82a13c45ad 100644 --- a/x/ts/package.json +++ b/x/ts/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "js-convert-case": "^4.2.0", - "nanoid": "^3.0.0", + "nanoid": "^5.0.0", "zod": "3.23.8" }, "devDependencies": { diff --git a/x/ts/src/id/id.ts b/x/ts/src/id/id.ts index 5501e0fb24..8ef43d6fec 100644 --- a/x/ts/src/id/id.ts +++ b/x/ts/src/id/id.ts @@ -7,7 +7,6 @@ // Source License, use of this software will be governed by the Apache License, // Version 2.0, included in the file licenses/APL.txt. -// @ts-expect-error - This file is not a module import { customAlphabet, type nanoid } from "nanoid/non-secure"; const alphanumeric = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";