From f9ccd4a48937a105c794c22fceb45ecb67fd1b9b Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 15 Nov 2023 14:36:03 +0000 Subject: [PATCH] chore: update color-mode module --- package.json | 9 ++------- patches/@nuxtjs__color-mode@3.3.0.patch | 15 --------------- pnpm-lock.yaml | 18 ++++++------------ 3 files changed, 8 insertions(+), 34 deletions(-) delete mode 100644 patches/@nuxtjs__color-mode@3.3.0.patch diff --git a/package.json b/package.json index d6d6531c1..981f348ca 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@nuxt/content": "2.9.0", "@nuxt/image": "1.0.0", "@nuxt/kit": "3.8.1", - "@nuxtjs/color-mode": "3.3.0", + "@nuxtjs/color-mode": "3.3.1", "@nuxtjs/fontaine": "0.4.1", "@nuxtjs/html-validator": "1.5.2", "@nuxtjs/plausible": "0.2.3", @@ -99,10 +99,5 @@ "commit-msg": "pnpm commitlint --edit $1", "pre-commit": "pnpm lint-staged" }, - "packageManager": "pnpm@8.10.2", - "pnpm": { - "patchedDependencies": { - "@nuxtjs/color-mode@3.3.0": "patches/@nuxtjs__color-mode@3.3.0.patch" - } - } + "packageManager": "pnpm@8.10.2" } diff --git a/patches/@nuxtjs__color-mode@3.3.0.patch b/patches/@nuxtjs__color-mode@3.3.0.patch deleted file mode 100644 index 99328edcf..000000000 --- a/patches/@nuxtjs__color-mode@3.3.0.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/dist/runtime/plugin.server.mjs b/dist/runtime/plugin.server.mjs -index fdf0733d4be968bdb043247042403ac11171fe2b..a28362add57252d4472622af7885ca21895df606 100644 ---- a/dist/runtime/plugin.server.mjs -+++ b/dist/runtime/plugin.server.mjs -@@ -12,7 +12,9 @@ const addScript = (head) => { - head[serializeProp][hid] = ["innerHTML"]; - }; - export default defineNuxtPlugin((nuxtApp) => { -- const colorMode = useState("color-mode", () => reactive({ -+ const colorMode = nuxtApp.ssrContext && 'islandContext' in nuxtApp.ssrContext -+ ? reactive({}) -+ : useState("color-mode", () => reactive({ - preference, - value: preference, - unknown: true, \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 104e7dec1..b28e28577 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,11 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -patchedDependencies: - '@nuxtjs/color-mode@3.3.0': - hash: yhatw3bbda574qeiohv37vxgf4 - path: patches/@nuxtjs__color-mode@3.3.0.patch - dependencies: '@atproto/api': specifier: ^0.6.20 @@ -29,8 +24,8 @@ dependencies: specifier: 3.8.1 version: 3.8.1(rollup@3.29.4) '@nuxtjs/color-mode': - specifier: 3.3.0 - version: 3.3.0(patch_hash=yhatw3bbda574qeiohv37vxgf4)(rollup@3.29.4) + specifier: 3.3.1 + version: 3.3.1(rollup@3.29.4) '@nuxtjs/fontaine': specifier: 0.4.1 version: 0.4.1(rollup@3.29.4) @@ -2098,8 +2093,8 @@ packages: - vue-tsc dev: false - /@nuxtjs/color-mode@3.3.0(patch_hash=yhatw3bbda574qeiohv37vxgf4)(rollup@3.29.4): - resolution: {integrity: sha512-YVFNmTISke1eL7uk5p9I1suOsM222FxrqKoF13HS4x94OKCWwPLLeTCEzHZ8orzKnaFUbCXpuL4pRv8gvW+0Kw==} + /@nuxtjs/color-mode@3.3.1(rollup@3.29.4): + resolution: {integrity: sha512-FQwl4p8qYJagqJRLYGrKEhMuFN32S1LrHsIJYUXLrMErcHtaIC3TaEamH7geyC3xeoTmAYCuSdtfzsSlwD/cJQ==} dependencies: '@nuxt/kit': 3.8.1(rollup@3.29.4) lodash.template: 4.5.0 @@ -2108,7 +2103,6 @@ packages: - rollup - supports-color dev: false - patched: true /@nuxtjs/fontaine@0.4.1(rollup@3.29.4): resolution: {integrity: sha512-8VnrFYnilfqlQVsCufiqoWusivYVOwP/0Nzu9FV44oryQlBa3qiT7EyOkKSmOxf9yZWCZBRc2wjTSxI+WTYlpg==} @@ -3195,8 +3189,8 @@ packages: resolution: {integrity: sha512-obF26P2Z4Ogy3cPp07B4VaW6rpiu0ue4OT2Y15UxT5BZZ76haUY9guOsZV3uWh/I6xc+VeiW+ZVabRE82FyzWw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: 4.5.0 - vue: 3.3.8 + vite: ^4.0.0 + vue: ^3.0.0 dependencies: '@babel/core': 7.23.2 '@babel/plugin-transform-typescript': 7.22.15(@babel/core@7.23.2)