diff --git a/.changeset/angry-planets-admire.md b/.changeset/angry-planets-admire.md new file mode 100644 index 000000000..5216350ba --- /dev/null +++ b/.changeset/angry-planets-admire.md @@ -0,0 +1,5 @@ +--- +'@keystatic/core': patch +--- + +Update `cookie` dependency diff --git a/.changeset/big-needles-call.md b/.changeset/big-needles-call.md new file mode 100644 index 000000000..f4b2165b7 --- /dev/null +++ b/.changeset/big-needles-call.md @@ -0,0 +1,5 @@ +--- +'@keystatic/astro': patch +--- + +Remove unused `cookie` dependency diff --git a/dev-projects/astro/package.json b/dev-projects/astro/package.json index e04b81edf..8c9944c67 100644 --- a/dev-projects/astro/package.json +++ b/dev-projects/astro/package.json @@ -18,7 +18,6 @@ "@types/react": "^18.2.8", "@types/react-dom": "^18.0.11", "astro": "^4.0.3", - "cookie": "^0.5.0", "direction": "^2.0.1", "is-hotkey": "^0.2.0", "lodash": "^4.17.21", diff --git a/docs/package.json b/docs/package.json index d0195ce07..4ad5836aa 100644 --- a/docs/package.json +++ b/docs/package.json @@ -24,11 +24,9 @@ "@sindresorhus/slugify": "^1.1.2", "@tailwindcss/container-queries": "^0.1.1", "@tailwindcss/forms": "^0.5.3", - "@types/cookie": "^0.5.1", "@types/node": "16.11.13", "@types/react": "^18.2.8", "@types/react-dom": "^18.0.11", - "cookie": "^0.5.0", "emery": "^1.4.1", "next": "^14.1.3", "react": "^18.2.0", diff --git a/packages/astro/package.json b/packages/astro/package.json index 4eef3f769..992a279d8 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -32,12 +32,10 @@ "dependencies": { "@babel/runtime": "^7.18.3", "@types/react": "^18.2.8", - "cookie": "^0.5.0", "set-cookie-parser": "^2.5.1" }, "devDependencies": { "@keystatic/core": "workspace:^", - "@types/cookie": "^0.5.1", "@types/set-cookie-parser": "^2.4.2", "astro": "^4.0.3", "react": "^18.2.0", diff --git a/packages/keystatic/package.json b/packages/keystatic/package.json index dfe147ab1..fdfec7ba2 100644 --- a/packages/keystatic/package.json +++ b/packages/keystatic/package.json @@ -140,7 +140,7 @@ "@urql/exchange-auth": "^2.2.0", "@urql/exchange-graphcache": "^7.1.2", "@urql/exchange-persisted": "^4.3.0", - "cookie": "^0.5.0", + "cookie": "^1.0.0", "emery": "^1.4.1", "escape-string-regexp": "^4.0.0", "fast-deep-equal": "^3.1.3", @@ -191,7 +191,6 @@ "@ts-gql/compiler": "^0.16.7", "@ts-gql/eslint-plugin": "^0.9.1", "@ts-gql/next": "^17.0.1", - "@types/cookie": "^0.5.1", "@types/is-hotkey": "^0.1.7", "@types/js-yaml": "^4.0.5", "@types/mdast": "^4.0.3", diff --git a/packages/keystatic/src/api/generic.ts b/packages/keystatic/src/api/generic.ts index 897a1b141..af0c9af66 100644 --- a/packages/keystatic/src/api/generic.ts +++ b/packages/keystatic/src/api/generic.ts @@ -1,4 +1,4 @@ -import cookie from 'cookie'; +import * as cookie from 'cookie'; import * as s from 'superstruct'; import { Config } from '..'; import { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ccd32064f..ddcb3216f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -637,9 +637,6 @@ importers: astro: specifier: ^4.0.3 version: 4.0.3(@types/node@16.11.13)(typescript@5.5.3) - cookie: - specifier: ^0.5.0 - version: 0.5.0 direction: specifier: ^2.0.1 version: 2.0.1 @@ -995,9 +992,6 @@ importers: '@tailwindcss/forms': specifier: ^0.5.3 version: 0.5.6(tailwindcss@3.4.1) - '@types/cookie': - specifier: ^0.5.1 - version: 0.5.2 '@types/node': specifier: 16.11.13 version: 16.11.13 @@ -1007,9 +1001,6 @@ importers: '@types/react-dom': specifier: ^18.0.11 version: 18.3.0 - cookie: - specifier: ^0.5.0 - version: 0.5.0 emery: specifier: ^1.4.1 version: 1.4.2 @@ -1065,9 +1056,6 @@ importers: '@types/react': specifier: ^18.2.8 version: 18.2.21 - cookie: - specifier: ^0.5.0 - version: 0.5.0 set-cookie-parser: specifier: ^2.5.1 version: 2.6.0 @@ -1075,9 +1063,6 @@ importers: '@keystatic/core': specifier: workspace:^ version: link:../keystatic - '@types/cookie': - specifier: ^0.5.1 - version: 0.5.2 '@types/set-cookie-parser': specifier: ^2.4.2 version: 2.4.3 @@ -1202,8 +1187,8 @@ importers: specifier: ^4.3.0 version: 4.3.0(@urql/core@5.0.4) cookie: - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^1.0.0 + version: 1.0.0 emery: specifier: ^1.4.1 version: 1.4.2 @@ -1349,9 +1334,6 @@ importers: '@ts-gql/next': specifier: ^17.0.1 version: 17.0.1(@ts-gql/compiler@0.16.7)(graphql@16.8.0) - '@types/cookie': - specifier: ^0.5.1 - version: 0.5.2 '@types/is-hotkey': specifier: ^0.1.7 version: 0.1.7 @@ -11878,9 +11860,6 @@ packages: '@types/node': 16.11.13 dev: true - /@types/cookie@0.5.2: - resolution: {integrity: sha512-DBpRoJGKJZn7RY92dPrgoMew8xCWc2P71beqsjyhEI/Ds9mOyVmBwtekyfhpwFIVt1WrxTonFifiOZ62V8CnNA==} - /@types/cookie@0.6.0: resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} @@ -14781,6 +14760,11 @@ packages: resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} engines: {node: '>= 0.6'} + /cookie@1.0.0: + resolution: {integrity: sha512-bsSztFoaR8bw9MlFCrTHzc1wOKCUKOBsbgFdoDilZDkETAOOjKSqV7L+EQLbTaylwvZasd9vM4MGKotJaUfSpA==} + engines: {node: '>=18'} + dev: false + /copy-to-clipboard@3.3.3: resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==} dependencies: