From 82c383363346ba300f334e8f7f69580d933efbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Mon, 11 Nov 2024 18:39:43 +0100 Subject: [PATCH] Upgrade prismic-ts-codegen --- packages/adapter-next/package.json | 4 +- packages/adapter-nuxt/package.json | 4 +- packages/adapter-nuxt2/package.json | 4 +- packages/adapter-sveltekit/package.json | 4 +- packages/manager/package.json | 4 +- packages/plugin-kit/package.json | 4 +- packages/slice-machine/package.json | 2 +- yarn.lock | 167 ++++-------------------- 8 files changed, 35 insertions(+), 158 deletions(-) diff --git a/packages/adapter-next/package.json b/packages/adapter-next/package.json index 18f0b5500..827cea746 100644 --- a/packages/adapter-next/package.json +++ b/packages/adapter-next/package.json @@ -79,7 +79,7 @@ "pascal-case": "^3.1.2" }, "devDependencies": { - "@prismicio/mock": "0.2.0", + "@prismicio/mock": "0.5.0-alpha.0", "@size-limit/preset-small-lib": "8.2.4", "@types/common-tags": "1.8.1", "@types/react": "18.0.28", @@ -95,7 +95,7 @@ "next": "14.1.3", "prettier": "3.0.3", "prettier-plugin-jsdoc": "1.1.1", - "prismic-ts-codegen": "^0.1.22", + "prismic-ts-codegen": "0.1.23-alpha.0", "react": "18.2.0", "rollup-plugin-preserve-directives": "0.2.0", "size-limit": "8.2.4", diff --git a/packages/adapter-nuxt/package.json b/packages/adapter-nuxt/package.json index e0c3d63ef..b7137b667 100644 --- a/packages/adapter-nuxt/package.json +++ b/packages/adapter-nuxt/package.json @@ -72,7 +72,7 @@ "pascal-case": "^3.1.2" }, "devDependencies": { - "@prismicio/mock": "0.2.0", + "@prismicio/mock": "0.5.0-alpha.0", "@size-limit/preset-small-lib": "8.2.4", "@types/common-tags": "1.8.1", "@typescript-eslint/eslint-plugin": "5.55.0", @@ -86,7 +86,7 @@ "nuxt": "3.3.3", "prettier": "3.0.3", "prettier-plugin-jsdoc": "1.1.1", - "prismic-ts-codegen": "^0.1.22", + "prismic-ts-codegen": "0.1.23-alpha.0", "size-limit": "8.2.4", "ts-morph": "17.0.1", "typescript": "4.9.5", diff --git a/packages/adapter-nuxt2/package.json b/packages/adapter-nuxt2/package.json index 3422e3437..d9cddd734 100644 --- a/packages/adapter-nuxt2/package.json +++ b/packages/adapter-nuxt2/package.json @@ -72,7 +72,7 @@ "pascal-case": "^3.1.2" }, "devDependencies": { - "@prismicio/mock": "0.2.0", + "@prismicio/mock": "0.5.0-alpha.0", "@size-limit/preset-small-lib": "8.2.4", "@typescript-eslint/eslint-plugin": "5.55.0", "@typescript-eslint/parser": "5.55.0", @@ -85,7 +85,7 @@ "nuxt": "2.16.3", "prettier": "3.0.3", "prettier-plugin-jsdoc": "1.1.1", - "prismic-ts-codegen": "^0.1.22", + "prismic-ts-codegen": "0.1.23-alpha.0", "size-limit": "8.2.4", "ts-morph": "17.0.1", "typescript": "4.9.5", diff --git a/packages/adapter-sveltekit/package.json b/packages/adapter-sveltekit/package.json index d856be76f..e306c6dfb 100644 --- a/packages/adapter-sveltekit/package.json +++ b/packages/adapter-sveltekit/package.json @@ -75,7 +75,7 @@ "prettier-plugin-svelte": "^3.0.3" }, "devDependencies": { - "@prismicio/mock": "0.2.0", + "@prismicio/mock": "0.5.0-alpha.0", "@size-limit/preset-small-lib": "8.2.4", "@sveltejs/kit": "2.0.0", "@sveltejs/package": "2.2.1", @@ -93,7 +93,7 @@ "eslint-plugin-tsdoc": "0.2.17", "prettier": "3.0.3", "prettier-plugin-jsdoc": "1.1.1", - "prismic-ts-codegen": "^0.1.22", + "prismic-ts-codegen": "0.1.23-alpha.0", "size-limit": "8.2.4", "svelte": "4.2.0", "typescript": "4.9.5", diff --git a/packages/manager/package.json b/packages/manager/package.json index 44dc6161c..d8226e70a 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -67,7 +67,7 @@ "@antfu/ni": "^0.20.0", "@prismicio/client": "^7.11.0", "@prismicio/custom-types-client": "2.1.0", - "@prismicio/mocks": "^2.4.0", + "@prismicio/mock": "0.5.0-alpha.0", "@prismicio/types-internal": "^2.8.0", "@segment/analytics-node": "^2.1.2", "@slicemachine/plugin-kit": "workspace:*", @@ -93,7 +93,7 @@ }, "devDependencies": { "@amplitude/experiment-node-server": "1.8.1", - "@prismicio/mock": "0.2.0", + "@prismicio/mock": "0.5.0-alpha.0", "@size-limit/preset-small-lib": "8.2.4", "@types/cookie": "0.5.1", "@types/express": "4.17.17", diff --git a/packages/plugin-kit/package.json b/packages/plugin-kit/package.json index 27a0e3c09..0a0f026f8 100644 --- a/packages/plugin-kit/package.json +++ b/packages/plugin-kit/package.json @@ -72,10 +72,10 @@ "io-ts-reporters": "^2.0.1", "p-limit": "^4.0.0", "prettier": "^3.0.3", - "prismic-ts-codegen": "^0.1.22" + "prismic-ts-codegen": "0.1.23-alpha.0" }, "devDependencies": { - "@prismicio/mock": "0.3.7", + "@prismicio/mock": "0.5.0-alpha.0", "@prismicio/types-internal": "2.8.0", "@size-limit/preset-small-lib": "8.2.4", "@types/common-tags": "1.8.1", diff --git a/packages/slice-machine/package.json b/packages/slice-machine/package.json index ce928a0af..212f4e9ac 100644 --- a/packages/slice-machine/package.json +++ b/packages/slice-machine/package.json @@ -46,7 +46,7 @@ "@prismicio/editor-fields": "0.4.54", "@prismicio/editor-support": "0.4.54", "@prismicio/editor-ui": "0.4.54", - "@prismicio/mock": "0.3.3", + "@prismicio/mock": "0.5.0-alpha.0", "@prismicio/mocks": "2.4.0", "@prismicio/simulator": "0.1.4", "@prismicio/types-internal": "2.9.0-alpha.3", diff --git a/yarn.lock b/yarn.lock index 73bb4ab6b..ff0ec70bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6112,35 +6112,14 @@ __metadata: languageName: node linkType: hard -"@prismicio/mock@npm:0.2.0": - version: 0.2.0 - resolution: "@prismicio/mock@npm:0.2.0" - dependencies: - "@prismicio/types": ^0.2.4 - change-case: ^4.1.2 - checksum: 2da6f9e99495ba2c8cb6380e1244c1d4a709b6a7714b71896ec6ec55c5a4d73c608f01642d71155321c10e6001eed40b7ba90012f306ae50e1e7ab5d1fd93e80 - languageName: node - linkType: hard - -"@prismicio/mock@npm:0.3.3": - version: 0.3.3 - resolution: "@prismicio/mock@npm:0.3.3" - dependencies: - change-case: ^5.4.4 - peerDependencies: - "@prismicio/client": ^7 - checksum: 4bcb9a8ae5446b807627e759cde19991d555cc48ba16baaddfe62f466793369ad539bafe3c54264b24395eac6a05267c8b54dfff53b7430045ebece73fa3c704 - languageName: node - linkType: hard - -"@prismicio/mock@npm:0.3.7": - version: 0.3.7 - resolution: "@prismicio/mock@npm:0.3.7" +"@prismicio/mock@npm:0.5.0-alpha.0": + version: 0.5.0-alpha.0 + resolution: "@prismicio/mock@npm:0.5.0-alpha.0" dependencies: change-case: ^5.4.4 peerDependencies: "@prismicio/client": ^7 - checksum: f1816247279c6acd42d3d2d39c593317102f18cdbea6cf8022c094df41e12d62816e4613023a0934765e4183e21ddf8b3723b164f9835c50462cdf7eadb584d4 + checksum: b47da8582e21a0c66ea369ef599275456330a4f87a64df5cb8787a06e228eb622b2798c41ee72649861ecea6c6983400b6e17b2b6b82554e6980c097bcbc1f2d languageName: node linkType: hard @@ -8978,7 +8957,7 @@ __metadata: version: 0.0.0-use.local resolution: "@slicemachine/adapter-next@workspace:packages/adapter-next" dependencies: - "@prismicio/mock": 0.2.0 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/simulator": ^0.1.4 "@prismicio/types-internal": ^2.8.0 "@size-limit/preset-small-lib": 8.2.4 @@ -9005,7 +8984,7 @@ __metadata: pascal-case: ^3.1.2 prettier: 3.0.3 prettier-plugin-jsdoc: 1.1.1 - prismic-ts-codegen: ^0.1.22 + prismic-ts-codegen: 0.1.23-alpha.0 react: 18.2.0 rollup-plugin-preserve-directives: 0.2.0 size-limit: 8.2.4 @@ -9023,7 +9002,7 @@ __metadata: version: 0.0.0-use.local resolution: "@slicemachine/adapter-nuxt2@workspace:packages/adapter-nuxt2" dependencies: - "@prismicio/mock": 0.2.0 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/simulator": ^0.1.4 "@prismicio/types-internal": ^2.8.0 "@size-limit/preset-small-lib": 8.2.4 @@ -9047,7 +9026,7 @@ __metadata: pascal-case: ^3.1.2 prettier: 3.0.3 prettier-plugin-jsdoc: 1.1.1 - prismic-ts-codegen: ^0.1.22 + prismic-ts-codegen: 0.1.23-alpha.0 size-limit: 8.2.4 ts-morph: 17.0.1 typescript: 4.9.5 @@ -9064,7 +9043,7 @@ __metadata: version: 0.0.0-use.local resolution: "@slicemachine/adapter-nuxt@workspace:packages/adapter-nuxt" dependencies: - "@prismicio/mock": 0.2.0 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/simulator": ^0.1.4 "@prismicio/types-internal": ^2.8.0 "@size-limit/preset-small-lib": 8.2.4 @@ -9089,7 +9068,7 @@ __metadata: pascal-case: ^3.1.2 prettier: 3.0.3 prettier-plugin-jsdoc: 1.1.1 - prismic-ts-codegen: ^0.1.22 + prismic-ts-codegen: 0.1.23-alpha.0 size-limit: 8.2.4 ts-morph: 17.0.1 typescript: 4.9.5 @@ -9106,7 +9085,7 @@ __metadata: version: 0.0.0-use.local resolution: "@slicemachine/adapter-sveltekit@workspace:packages/adapter-sveltekit" dependencies: - "@prismicio/mock": 0.2.0 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/simulator": ^0.1.4 "@prismicio/types-internal": ^2.8.0 "@size-limit/preset-small-lib": 8.2.4 @@ -9135,7 +9114,7 @@ __metadata: prettier: 3.0.3 prettier-plugin-jsdoc: 1.1.1 prettier-plugin-svelte: ^3.0.3 - prismic-ts-codegen: ^0.1.22 + prismic-ts-codegen: 0.1.23-alpha.0 size-limit: 8.2.4 svelte: 4.2.0 typescript: 4.9.5 @@ -9229,8 +9208,7 @@ __metadata: "@antfu/ni": ^0.20.0 "@prismicio/client": ^7.11.0 "@prismicio/custom-types-client": 2.1.0 - "@prismicio/mock": 0.2.0 - "@prismicio/mocks": ^2.4.0 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/types-internal": ^2.8.0 "@segment/analytics-node": ^2.1.2 "@size-limit/preset-small-lib": 8.2.4 @@ -9289,7 +9267,7 @@ __metadata: resolution: "@slicemachine/plugin-kit@workspace:packages/plugin-kit" dependencies: "@prismicio/client": ^7.11.0 - "@prismicio/mock": 0.3.7 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/types-internal": 2.8.0 "@size-limit/preset-small-lib": 8.2.4 "@types/common-tags": 1.8.1 @@ -9315,7 +9293,7 @@ __metadata: p-limit: ^4.0.0 prettier: ^3.0.3 prettier-plugin-jsdoc: 1.1.1 - prismic-ts-codegen: ^0.1.22 + prismic-ts-codegen: 0.1.23-alpha.0 size-limit: 8.2.4 typescript: 4.9.5 vite: 4.3.9 @@ -14828,7 +14806,7 @@ __metadata: languageName: node linkType: hard -"camel-case@npm:^4.1.1, camel-case@npm:^4.1.2": +"camel-case@npm:^4.1.1": version: 4.1.2 resolution: "camel-case@npm:4.1.2" dependencies: @@ -14918,17 +14896,6 @@ __metadata: languageName: node linkType: hard -"capital-case@npm:^1.0.4": - version: 1.0.4 - resolution: "capital-case@npm:1.0.4" - dependencies: - no-case: ^3.0.4 - tslib: ^2.0.3 - upper-case-first: ^2.0.2 - checksum: 41fa8fa87f6d24d0835a2b4a9341a3eaecb64ac29cd7c5391f35d6175a0fa98ab044e7f2602e1ec3afc886231462ed71b5b80c590b8b41af903ec2c15e5c5931 - languageName: node - linkType: hard - "ccount@npm:^2.0.0": version: 2.0.1 resolution: "ccount@npm:2.0.1" @@ -15012,26 +14979,6 @@ __metadata: languageName: node linkType: hard -"change-case@npm:^4.1.2": - version: 4.1.2 - resolution: "change-case@npm:4.1.2" - dependencies: - camel-case: ^4.1.2 - capital-case: ^1.0.4 - constant-case: ^3.0.4 - dot-case: ^3.0.4 - header-case: ^2.0.4 - no-case: ^3.0.4 - param-case: ^3.0.4 - pascal-case: ^3.1.2 - path-case: ^3.0.4 - sentence-case: ^3.0.4 - snake-case: ^3.0.4 - tslib: ^2.0.3 - checksum: e4bc4a093a1f7cce8b33896665cf9e456e3bc3cc0def2ad7691b1994cfca99b3188d0a513b16855b01a6bd20692fcde12a7d4d87a5615c4c515bbbf0e651f116 - languageName: node - linkType: hard - "change-case@npm:^5.4.4": version: 5.4.4 resolution: "change-case@npm:5.4.4" @@ -15790,17 +15737,6 @@ __metadata: languageName: node linkType: hard -"constant-case@npm:^3.0.4": - version: 3.0.4 - resolution: "constant-case@npm:3.0.4" - dependencies: - no-case: ^3.0.4 - tslib: ^2.0.3 - upper-case: ^2.0.2 - checksum: 6c3346d51afc28d9fae922e966c68eb77a19d94858dba230dd92d7b918b37d36db50f0311e9ecf6847e43e934b1c01406a0936973376ab17ec2c471fbcfb2cf3 - languageName: node - linkType: hard - "constants-browserify@npm:^1.0.0": version: 1.0.0 resolution: "constants-browserify@npm:1.0.0" @@ -20428,16 +20364,6 @@ __metadata: languageName: node linkType: hard -"header-case@npm:^2.0.4": - version: 2.0.4 - resolution: "header-case@npm:2.0.4" - dependencies: - capital-case: ^1.0.4 - tslib: ^2.0.3 - checksum: 571c83eeb25e8130d172218712f807c0b96d62b020981400bccc1503a7cf14b09b8b10498a962d2739eccf231d950e3848ba7d420b58a6acd2f9283439546cd9 - languageName: node - linkType: hard - "headers-polyfill@npm:^3.1.0": version: 3.1.2 resolution: "headers-polyfill@npm:3.1.2" @@ -26224,7 +26150,7 @@ __metadata: languageName: node linkType: hard -"param-case@npm:^3.0.3, param-case@npm:^3.0.4": +"param-case@npm:^3.0.3": version: 3.0.4 resolution: "param-case@npm:3.0.4" dependencies: @@ -26374,16 +26300,6 @@ __metadata: languageName: node linkType: hard -"path-case@npm:^3.0.4": - version: 3.0.4 - resolution: "path-case@npm:3.0.4" - dependencies: - dot-case: ^3.0.4 - tslib: ^2.0.3 - checksum: 61de0526222629f65038a66f63330dd22d5b54014ded6636283e1d15364da38b3cf29e4433aa3f9d8b0dba407ae2b059c23b0104a34ee789944b1bc1c5c7e06d - languageName: node - linkType: hard - "path-dirname@npm:^1.0.0": version: 1.0.2 resolution: "path-dirname@npm:1.0.2" @@ -28401,9 +28317,9 @@ __metadata: languageName: node linkType: hard -"prismic-ts-codegen@npm:^0.1.22": - version: 0.1.22 - resolution: "prismic-ts-codegen@npm:0.1.22" +"prismic-ts-codegen@npm:0.1.23-alpha.0": + version: 0.1.23-alpha.0 + resolution: "prismic-ts-codegen@npm:0.1.23-alpha.0" dependencies: "@prismicio/custom-types-client": ^1.1.0 common-tags: ^1.8.2 @@ -28424,7 +28340,7 @@ __metadata: optional: true bin: prismic-ts-codegen: bin/prismic-ts-codegen.js - checksum: 8ea72233c82a20fdeda69e1723c3fe78eec8fd7b6267ae34b4116eda487cea4e86c741aeea2723c6a82d73af807fd4f6368d03cf429e7caaa5f143a64fcbe199 + checksum: 02b74976ac04c64f2f1b0bb1d2286d07abf8a1bb667667ea0a1371a8ee45173a8e67ffd2b14b6e25eaa7a34b4a9a0c4f911362690b660a73f6d4e2341e2b1b5e languageName: node linkType: hard @@ -30852,17 +30768,6 @@ __metadata: languageName: node linkType: hard -"sentence-case@npm:^3.0.4": - version: 3.0.4 - resolution: "sentence-case@npm:3.0.4" - dependencies: - no-case: ^3.0.4 - tslib: ^2.0.3 - upper-case-first: ^2.0.2 - checksum: 3cfe6c0143e649132365695706702d7f729f484fa7b25f43435876efe7af2478243eefb052bacbcce10babf9319fd6b5b6bc59b94c80a1c819bcbb40651465d5 - languageName: node - linkType: hard - "serialize-javascript@npm:^4.0.0": version: 4.0.0 resolution: "serialize-javascript@npm:4.0.0" @@ -31202,7 +31107,7 @@ __metadata: "@prismicio/editor-fields": 0.4.54 "@prismicio/editor-support": 0.4.54 "@prismicio/editor-ui": 0.4.54 - "@prismicio/mock": 0.3.3 + "@prismicio/mock": 0.5.0-alpha.0 "@prismicio/mocks": 2.4.0 "@prismicio/simulator": 0.1.4 "@prismicio/types-internal": 2.9.0-alpha.3 @@ -31313,16 +31218,6 @@ __metadata: languageName: node linkType: hard -"snake-case@npm:^3.0.4": - version: 3.0.4 - resolution: "snake-case@npm:3.0.4" - dependencies: - dot-case: ^3.0.4 - tslib: ^2.0.3 - checksum: 0a7a79900bbb36f8aaa922cf111702a3647ac6165736d5dc96d3ef367efc50465cac70c53cd172c382b022dac72ec91710608e5393de71f76d7142e6fd80e8a3 - languageName: node - linkType: hard - "snapdragon-node@npm:^2.0.1": version: 2.1.1 resolution: "snapdragon-node@npm:2.1.1" @@ -33926,15 +33821,6 @@ __metadata: languageName: node linkType: hard -"upper-case-first@npm:^2.0.2": - version: 2.0.2 - resolution: "upper-case-first@npm:2.0.2" - dependencies: - tslib: ^2.0.3 - checksum: 4487db4701effe3b54ced4b3e4aa4d9ab06c548f97244d04aafb642eedf96a76d5a03cf5f38f10f415531d5792d1ac6e1b50f2a76984dc6964ad530f12876409 - languageName: node - linkType: hard - "upper-case@npm:^1.1.1": version: 1.1.3 resolution: "upper-case@npm:1.1.3" @@ -33942,15 +33828,6 @@ __metadata: languageName: node linkType: hard -"upper-case@npm:^2.0.2": - version: 2.0.2 - resolution: "upper-case@npm:2.0.2" - dependencies: - tslib: ^2.0.3 - checksum: 508723a2b03ab90cf1d6b7e0397513980fab821cbe79c87341d0e96cedefadf0d85f9d71eac24ab23f526a041d585a575cfca120a9f920e44eb4f8a7cf89121c - languageName: node - linkType: hard - "uri-js@npm:^4.2.2": version: 4.4.1 resolution: "uri-js@npm:4.4.1"