From 24104623482781693454413d5fac76ef2734a659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Fri, 27 Sep 2024 14:12:58 +0200 Subject: [PATCH 1/4] Upgrade prismic deps --- package-lock.json | 16 ++++++++-------- package.json | 8 ++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 09f39df..6e8aae6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "4.2.3", "license": "Apache-2.0", "dependencies": { - "@prismicio/client": "7.9.0-alpha.3", + "@prismicio/client": "^7.11.0", "isomorphic-unfetch": "^3.1.0", "vue-router": "^4.4.3" }, "devDependencies": { - "@prismicio/mock": "0.3.8-alpha.2", + "@prismicio/mock": "0.4.0", "@size-limit/preset-small-lib": "^8.2.6", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jsdom-global": "^3.0.7", @@ -968,9 +968,9 @@ "dev": true }, "node_modules/@prismicio/client": { - "version": "7.9.0-alpha.3", - "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.9.0-alpha.3.tgz", - "integrity": "sha512-8u+ot1xTt/wH8BSlnYJ20+fuZRo4TIf4PnkNFMLkgYmNbUTNnsNFsPr0GJC/G9nTZFnn5jV0oTPz48C/ITVnnA==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.11.0.tgz", + "integrity": "sha512-b5FtER97eFHH435hP4sRchtPYvrwa8v2Ye5IH3MhMp/6aH6kRSrr9fDA4+wkqF/ZK9aiJwJRkjdddgkwDFu9Vg==", "license": "Apache-2.0", "dependencies": { "imgix-url-builder": "^0.0.5" @@ -980,9 +980,9 @@ } }, "node_modules/@prismicio/mock": { - "version": "0.3.8-alpha.2", - "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.3.8-alpha.2.tgz", - "integrity": "sha512-LtLeIp88Y1vvQzyWCcK0k0aYdoexh7Yep31WeiUmZXnZ8p91sliw9HXZDEHqnKX2SjZx6sSv+P7oBVcq6IsH+g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.4.0.tgz", + "integrity": "sha512-CtTEbp/3NOdyP2StC8lGBAE4IwPJOegWEYKSEAQTjp+6BgcGcqUHr1iVBwKd3EFKVoBWA+8tJNP0m0/AFPOuNw==", "dev": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index 36d3fde..03b4a7c 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ "test": "npm run lint && npm run types && npm run unit && npm run build && npm run size" }, "dependencies": { - "@prismicio/client": "7.9.0-alpha.3", + "@prismicio/client": "^7.11.0", "isomorphic-unfetch": "^3.1.0", "vue-router": "^4.4.3" }, "devDependencies": { - "@prismicio/mock": "0.3.8-alpha.2", + "@prismicio/mock": "0.4.0", "@size-limit/preset-small-lib": "^8.2.6", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jsdom-global": "^3.0.7", @@ -102,9 +102,5 @@ "vetur": { "tags": "vetur/tags.json", "attributes": "vetur/attributes.json" - }, - "overrides": { - "@prismicio/client": "7.9.0-alpha.3", - "@prismicio/mock": "0.3.8-alpha.2" } } From a5c7ff266c34366fb0ae91eceb95463d73191080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Fri, 27 Sep 2024 14:15:03 +0200 Subject: [PATCH 2/4] Fix snapshots --- test/components-PrismicImage.test.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/components-PrismicImage.test.ts b/test/components-PrismicImage.test.ts index fb4be9c..06d19a1 100644 --- a/test/components-PrismicImage.test.ts +++ b/test/components-PrismicImage.test.ts @@ -19,7 +19,7 @@ it("renders image field", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Quis"', + '"\\"Maecenas"', ); }); @@ -55,7 +55,7 @@ it("renders image field with imgix URL parameters", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"In"', + '"\\"Faucibus"', ); }); @@ -69,7 +69,7 @@ it("renders image field with width-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Aliquam"', + '"\\"Lobortis"', ); }); @@ -88,7 +88,7 @@ it("renders image field with thumbnails width-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Enim"', + '"\\"Diam"', ); }); @@ -102,7 +102,7 @@ it("renders image field with defaults width-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Faucibus"', + '"\\"Sed"', ); }); @@ -124,7 +124,7 @@ it("renders image field with plugin defaults width-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Pulvinar"', + '"\\"Ipsum"', ); }); @@ -138,7 +138,7 @@ it("renders image field with pixel-density-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Dictum"', + '"\\"At"', ); }); @@ -152,7 +152,7 @@ it("renders image field with defaults pixel-density-based `srcset`", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Suscipit"', + '"\\"Risus"', ); }); @@ -174,7 +174,7 @@ it("renders image field with plugin defaults pixel-density-based `srcset`", () = }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Enim"', + '"\\"Nunc"', ); }); @@ -191,7 +191,7 @@ it("renders image field using width-based over pixel-density-based `srcset` and }); expect(wrapper.html()).toMatchInlineSnapshot( - '"\\"Suspendisse"', + '"\\"Commodo"', ); expect(console.warn).toHaveBeenCalledOnce(); expect(vi.mocked(console.warn).mock.calls[0]).toMatch( @@ -232,7 +232,7 @@ it("uses plugin provided image component", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"
"', + '"
"', ); }); @@ -253,7 +253,7 @@ it("uses provided image component over plugin provided", () => { }); expect(wrapper.html()).toMatchInlineSnapshot( - '"
"', + '"
"', ); }); @@ -306,6 +306,6 @@ it("reacts to changes properly", async () => { expect(secondRender).not.toBe(firstRender); expect(secondRender).toMatchInlineSnapshot( - '"\\"Amet"', + '"\\"Eget"', ); }); From 12c6a3daa7b9717e4c9cd953476e64c8c6d2fc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Fri, 27 Sep 2024 14:17:09 +0200 Subject: [PATCH 3/4] chore(release): 4.3.0 --- CHANGELOG.md | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1845799..732d78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [4.3.0](https://github.com/prismicio/prismic-vue/compare/v4.2.3...v4.3.0) (2024-09-27) + + +### Features + +* expose text to default slot ([0fbd7b4](https://github.com/prismicio/prismic-vue/commit/0fbd7b474edc0cf6295fb5ed1e2744c874b8f3bd)) +* support link text ([24e6464](https://github.com/prismicio/prismic-vue/commit/24e6464b016b47c107a93454028aa813de093bb9)) + ### [4.2.3](https://github.com/prismicio/prismic-vue/compare/v4.2.2...v4.2.3) (2024-09-16) diff --git a/package-lock.json b/package-lock.json index 6e8aae6..60b2b13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prismicio/vue", - "version": "4.2.3", + "version": "4.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prismicio/vue", - "version": "4.2.3", + "version": "4.3.0", "license": "Apache-2.0", "dependencies": { "@prismicio/client": "^7.11.0", diff --git a/package.json b/package.json index 03b4a7c..1ca4bbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prismicio/vue", - "version": "4.2.3", + "version": "4.3.0", "description": "Vue plugin, components, and composables to fetch and present Prismic content", "keywords": [ "typescript", From d654ed7993eda0c795e4c0ca0130ff38fc0af439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Fri, 27 Sep 2024 14:38:05 +0200 Subject: [PATCH 4/4] Remove all typescript versions from ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c78304..9a99870 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,7 +78,7 @@ jobs: matrix: os: [ubuntu-latest] node: [16] - typescript: ["4.6", "4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"] + typescript: ["4.9", "5.0", "5.1", "5.2", "5.3", "5.4"] steps: - name: Set up Node