From ad9964261faeecec0a8f0dfb5a80ba37abe2ff89 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Tue, 23 Jan 2024 13:37:17 +0100 Subject: [PATCH] fix(SLB-201): move gatsby directive autoloading entirely into schema package --- apps/website/package.json | 3 +- packages/schema/.graphqlrc.json | 2 +- packages/schema/package.json | 8 +- .../image.mjs => packages/schema/src/image.ts | 12 +- packages/schema/src/schema.graphql | 2 +- .../schema}/src/types/mime-types.d.ts | 0 packages/schema/tsconfig.json | 3 +- pnpm-lock.yaml | 148 +++++++++++------- 8 files changed, 110 insertions(+), 68 deletions(-) rename apps/website/image.mjs => packages/schema/src/image.ts (73%) rename {apps/website => packages/schema}/src/types/mime-types.d.ts (100%) diff --git a/apps/website/package.json b/apps/website/package.json index 1eaf14af2..a24e8a2f1 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -5,9 +5,8 @@ "@amazeelabs/bridge-gatsby": "^1.2.7", "@amazeelabs/cloudinary-responsive-image": "^1.6.15", "@amazeelabs/gatsby-plugin-operations": "^1.1.3", - "@amazeelabs/gatsby-silverback-cloudinary": "^1.2.7", - "@amazeelabs/gatsby-source-silverback": "^1.13.10", "@amazeelabs/gatsby-plugin-static-dirs": "workspace:*", + "@amazeelabs/gatsby-source-silverback": "^1.13.10", "@amazeelabs/publisher": "^2.4.17", "@amazeelabs/strangler-netlify": "^1.1.9", "@custom/decap": "workspace:*", diff --git a/packages/schema/.graphqlrc.json b/packages/schema/.graphqlrc.json index a4ca1086a..cacb28f39 100644 --- a/packages/schema/.graphqlrc.json +++ b/packages/schema/.graphqlrc.json @@ -1,7 +1,7 @@ { "$schema": "https://unpkg.com/graphql-config@5.0.3/config-schema.json", "schema": [ - "../../apps/website/node_modules/@amazeelabs/*/directives.graphql", + "node_modules/@amazeelabs/*/directives.graphql", "../../apps/cms/web/modules/contrib/*/directives.graphql", "../../apps/cms/web/modules/custom/*/directives.graphql", "src/schema.graphql" diff --git a/packages/schema/package.json b/packages/schema/package.json index 2f047b1f5..c9bb788ff 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -43,14 +43,20 @@ "@graphql-codegen/typescript-operations": "^4.0.1", "@swc/cli": "^0.1.62", "@swc/core": "^1.3.67", + "@types/image-size": "^0.8.0", + "@types/node": "^18", "concurrently": "^8.2.2", "graphql": "16.8.1", "typescript": "^5.3.3" }, "dependencies": { "@amazeelabs/executors": "^1.1.0", + "@amazeelabs/gatsby-silverback-cloudinary": "^1.2.7", + "@amazeelabs/gatsby-source-silverback": "^1.13.10", "@amazeelabs/scalars": "^1.6.13", "@swc/cli": "^0.1.63", - "@swc/core": "^1.3.102" + "@swc/core": "^1.3.102", + "image-size": "^1.1.1", + "mime-types": "^2.1.35" } } diff --git a/apps/website/image.mjs b/packages/schema/src/image.ts similarity index 73% rename from apps/website/image.mjs rename to packages/schema/src/image.ts index 157eb6051..bc3ab7551 100644 --- a/apps/website/image.mjs +++ b/packages/schema/src/image.ts @@ -1,10 +1,8 @@ +import type { GraphQLFieldResolver } from 'graphql'; import sizeOf from 'image-size'; -import mime from 'mime-types'; +import { lookup } from 'mime-types'; -/** - * @param {string | undefined} source - */ -export function imageProps(source) { +export const imageProps: GraphQLFieldResolver = (source) => { // If its a decap image, process it. // Otherwise, it comes from Drupal and // already has all necessary props. @@ -20,8 +18,8 @@ export function imageProps(source) { originalSrc: imageSrc, width: dimensions.width || 0, height: dimensions.height || 0, - mime: mime.lookup(relativeSource) || 'application/octet-stream', + mime: lookup(relativeSource) || 'application/octet-stream', }); } return source; -} +}; diff --git a/packages/schema/src/schema.graphql b/packages/schema/src/schema.graphql index 054ab842b..c84cabde3 100644 --- a/packages/schema/src/schema.graphql +++ b/packages/schema/src/schema.graphql @@ -6,7 +6,7 @@ scalar ImageSource @default @value(json: "\"\"") Retrieve the properties of an image. TODO: Move to a shared "image" package. -implementation(gatsby): ./image.mjs#imageProps +implementation(gatsby): ./image.js#imageProps """ directive @imageProps repeatable on FIELD_DEFINITION | SCALAR | UNION | ENUM | INTERFACE | OBJECT diff --git a/apps/website/src/types/mime-types.d.ts b/packages/schema/src/types/mime-types.d.ts similarity index 100% rename from apps/website/src/types/mime-types.d.ts rename to packages/schema/src/types/mime-types.d.ts diff --git a/packages/schema/tsconfig.json b/packages/schema/tsconfig.json index ef52f825f..c93ea6306 100644 --- a/packages/schema/tsconfig.json +++ b/packages/schema/tsconfig.json @@ -6,7 +6,8 @@ "forceConsistentCasingInFileNames": true, "declaration": true, "declarationDir": "build", - "outDir": "build" + "outDir": "build", + "lib": ["ES2015"] }, "include": ["src"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34578b6b6..6f163dbcc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -166,7 +166,7 @@ importers: version: 1.3.24 tsup: specifier: ^8.0.1 - version: 8.0.1(typescript@5.3.3) + version: 8.0.1(postcss@8.4.32)(typescript@5.3.3) typescript: specifier: ^5.3.3 version: 5.3.3 @@ -188,9 +188,6 @@ importers: '@amazeelabs/gatsby-plugin-static-dirs': specifier: workspace:* version: link:../../packages/gatsby-plugin-static-dirs - '@amazeelabs/gatsby-silverback-cloudinary': - specifier: ^1.2.7 - version: 1.2.7 '@amazeelabs/gatsby-source-silverback': specifier: ^1.13.10 version: 1.13.10(@types/node@18.19.4)(gatsby@5.13.1)(typescript@4.9.5) @@ -350,6 +347,12 @@ importers: '@amazeelabs/executors': specifier: ^1.1.0 version: 1.1.0 + '@amazeelabs/gatsby-silverback-cloudinary': + specifier: ^1.2.7 + version: 1.2.7 + '@amazeelabs/gatsby-source-silverback': + specifier: ^1.13.10 + version: 1.13.10(@types/node@18.19.4)(gatsby@5.13.1)(typescript@5.3.3) '@amazeelabs/scalars': specifier: ^1.6.13 version: 1.6.13(react@18.2.0)(tailwindcss@3.4.0) @@ -359,6 +362,12 @@ importers: '@swc/core': specifier: ^1.3.102 version: 1.3.102 + image-size: + specifier: ^1.1.1 + version: 1.1.1 + mime-types: + specifier: ^2.1.35 + version: 2.1.35 devDependencies: '@amazeelabs/codegen-autoloader': specifier: ^1.1.3 @@ -378,6 +387,12 @@ importers: '@graphql-codegen/typescript-operations': specifier: ^4.0.1 version: 4.0.1(graphql@16.8.1) + '@types/image-size': + specifier: ^0.8.0 + version: 0.8.0 + '@types/node': + specifier: ^18 + version: 18.19.4 concurrently: specifier: ^8.2.2 version: 8.2.2 @@ -814,6 +829,28 @@ packages: - utf-8-validate dev: false + /@amazeelabs/gatsby-source-silverback@1.13.10(@types/node@18.19.4)(gatsby@5.13.1)(typescript@5.3.3): + resolution: {integrity: sha512-NPukKTJHj3EFrG0EeABoLsQzWLUuJkKthzhGggStKwV1dQ797IF1cVkYk4IMJoB+Y53YeVjE9fzQeCBOWW8NZA==} + dependencies: + '@amazeelabs/graphql-directives': 1.2.5 + fetch-retry: 5.0.6 + gatsby-graphql-source-toolkit: 2.0.4(gatsby@5.13.1) + graphql: 16.8.1 + graphql-config: 5.0.3(@types/node@18.19.4)(graphql@16.8.1)(typescript@5.3.3) + isomorphic-fetch: 3.0.0 + lodash-es: 4.17.21 + node-fetch: 3.3.2 + timeout-signal: 2.0.0 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - cosmiconfig-toml-loader + - encoding + - gatsby + - typescript + - utf-8-validate + dev: false + /@amazeelabs/gatsby-source-silverback@1.13.7(@types/node@18.19.4)(gatsby@5.13.1)(typescript@5.3.3): resolution: {integrity: sha512-OAy/RrOrb5sP7Ix25qS9NXCaK2reLh5GC1ikxreB2ZOJn4HKj92Uq4v3WoDSTYnM8qh+xkUMiOhdbEu9jYJe0w==} dependencies: @@ -7308,7 +7345,7 @@ packages: react-refresh: 0.14.0 schema-utils: 3.3.0 source-map: 0.7.4 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /@pnpm/config.env-replace@1.1.0: resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} @@ -9516,6 +9553,13 @@ packages: dependencies: '@types/node': 18.19.4 + /@types/image-size@0.8.0: + resolution: {integrity: sha512-hMlhu25ji75dXQk2uZkN3pTJ+lWrgKr8M1fTpyyFvuu+SJZBdGa5gDm4BVNobWXHZbOU11mBj0vciYp7qOfAFg==} + deprecated: This is a stub types definition. image-size provides its own type definitions, so you do not need this installed. + dependencies: + image-size: 1.1.1 + dev: true + /@types/is-hotkey@0.1.10: resolution: {integrity: sha512-RvC8KMw5BCac1NvRRyaHgMMEtBaZ6wh0pyPTBu7izn4Sj/AX9Y4aXU5c7rX8PnM/knsuUpC1IeoBkANtxBypsQ==} dev: false @@ -9641,6 +9685,7 @@ packages: /@types/prop-types@15.7.11: resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==} + requiresBuild: true /@types/qs@6.9.11: resolution: {integrity: sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==} @@ -9692,6 +9737,7 @@ packages: /@types/react@18.2.46: resolution: {integrity: sha512-nNCvVBcZlvX4NU1nRRNV/mFl1nNRuTuslAJglQsq+8ldXe5Xv0Wd2f7WTE3jOxhLH2BFfiZGC6GCp+kHQbgG+w==} + requiresBuild: true dependencies: '@types/prop-types': 15.7.11 '@types/scheduler': 0.16.8 @@ -9724,6 +9770,7 @@ packages: /@types/scheduler@0.16.8: resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==} + requiresBuild: true /@types/semver@7.5.6: resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} @@ -9973,6 +10020,7 @@ packages: /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@7.32.0)(typescript@5.3.3): resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true peerDependencies: '@typescript-eslint/parser': ^5.0.0 eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -10049,6 +10097,7 @@ packages: /@typescript-eslint/parser@5.62.0(eslint@7.32.0)(typescript@5.3.3): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 typescript: '*' @@ -10089,6 +10138,7 @@ packages: /@typescript-eslint/scope-manager@5.62.0: resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 @@ -10124,6 +10174,7 @@ packages: /@typescript-eslint/type-utils@5.62.0(eslint@7.32.0)(typescript@5.3.3): resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true peerDependencies: eslint: '*' typescript: '*' @@ -10163,6 +10214,7 @@ packages: /@typescript-eslint/types@5.62.0: resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true /@typescript-eslint/types@6.17.0: resolution: {integrity: sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==} @@ -10214,6 +10266,7 @@ packages: /@typescript-eslint/typescript-estree@5.62.0(typescript@5.3.3): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true peerDependencies: typescript: '*' peerDependenciesMeta: @@ -10276,6 +10329,7 @@ packages: /@typescript-eslint/utils@5.62.0(eslint@7.32.0)(typescript@5.3.3): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: @@ -10314,6 +10368,7 @@ packages: /@typescript-eslint/visitor-keys@5.62.0: resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + requiresBuild: true dependencies: '@typescript-eslint/types': 5.62.0 eslint-visitor-keys: 3.4.3 @@ -12064,7 +12119,7 @@ packages: loader-utils: 2.0.4 make-dir: 3.1.0 schema-utils: 2.7.1 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /babel-plugin-add-module-exports@1.0.4: resolution: {integrity: sha512-g+8yxHUZ60RcyaUpfNzy56OtWW+x9cyEe9j+CranqLiqbju2yf/Cy6ZtYK40EZxtrdHllzlVZgLmcOUCTlJ7Jg==} @@ -12157,7 +12212,7 @@ packages: '@babel/core': 7.23.7 '@babel/runtime': 7.23.7 '@babel/types': 7.23.6 - gatsby: 5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) + gatsby: 5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) gatsby-core-utils: 4.13.0 /babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0: @@ -13734,7 +13789,6 @@ packages: parse-json: 5.2.0 path-type: 4.0.0 typescript: 5.3.3 - dev: true /cp-file@10.0.0: resolution: {integrity: sha512-vy2Vi1r2epK5WqxOLnskeKeZkdZvTKfFZQCplE3XWsP+SUJyd5XAUFC9lFgTjjXJF2GMne/UML14iEmkAaDfFg==} @@ -13901,7 +13955,7 @@ packages: postcss-value-parser: 4.2.0 schema-utils: 3.3.0 semver: 7.5.4 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /css-minimizer-webpack-plugin@2.0.0(webpack@5.89.0): resolution: {integrity: sha512-cG/uc94727tx5pBNtb1Sd7gvUPzwmcQi1lkpfqTpdkuNq75hJCw7bIVsCNijLm4dhDcr1atvuysl2rZqOG8Txw==} @@ -13923,7 +13977,7 @@ packages: schema-utils: 3.3.0 serialize-javascript: 5.0.1 source-map: 0.6.1 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /css-select@4.3.0: resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==} @@ -14120,6 +14174,7 @@ packages: /csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + requiresBuild: true /cwd@0.10.0: resolution: {integrity: sha512-YGZxdTTL9lmLkCUTpg4j0zQ7IhRB5ZmqNBbGCl3Tg6MP/d5/6sY7L5mmTjzbc6JKgVZYiqTQTNhPFsbXNGlRaA==} @@ -16460,6 +16515,7 @@ packages: /eslint-plugin-tailwindcss@3.13.1(tailwindcss@3.4.0): resolution: {integrity: sha512-2Nlgr9doO6vFAG9w4iGU0sspWXuzypfng10HTF+dFS2NterhweWtgdRvf/f7aaoOUUxVZM8wMIXzazrZ7CxyeA==} engines: {node: '>=12.13.0'} + requiresBuild: true peerDependencies: tailwindcss: ^3.3.2 dependencies: @@ -16511,7 +16567,7 @@ packages: micromatch: 4.0.5 normalize-path: 3.0.0 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /eslint@7.32.0: resolution: {integrity: sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==} @@ -17178,7 +17234,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /file-system-cache@2.3.0: resolution: {integrity: sha512-l4DMNdsIPsVnKrgEXbJwDJsA5mB8rGwHYERMgqQx/xAUtChPJMre1bXBzDEqqVbWv9AIbFezXMxeEkZDSrXUOQ==} @@ -17534,7 +17590,7 @@ packages: semver: 7.5.4 tapable: 1.1.3 typescript: 5.3.3 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /form-data-encoder@2.1.4: resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==} @@ -17801,7 +17857,7 @@ packages: dependencies: '@types/node-fetch': 2.6.10 fs-extra: 9.1.0 - gatsby: 5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) + gatsby: 5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) lodash: 4.17.21 node-fetch: 2.7.0 p-queue: 6.6.2 @@ -17917,7 +17973,7 @@ packages: chokidar: 3.5.3 fs-exists-cached: 1.0.0 fs-extra: 11.2.0 - gatsby: 5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) + gatsby: 5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) gatsby-core-utils: 4.13.0 gatsby-page-utils: 3.13.0 gatsby-plugin-utils: 4.13.0(gatsby@5.13.1)(graphql@16.8.1) @@ -18003,7 +18059,7 @@ packages: '@babel/preset-typescript': 7.23.3(@babel/core@7.23.7) '@babel/runtime': 7.23.7 babel-plugin-remove-graphql-queries: 5.13.0(@babel/core@7.23.7)(gatsby@5.13.1) - gatsby: 5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) + gatsby: 5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) transitivePeerDependencies: - supports-color @@ -18017,7 +18073,7 @@ packages: '@babel/runtime': 7.23.7 fastq: 1.16.0 fs-extra: 11.2.0 - gatsby: 5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) + gatsby: 5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3) gatsby-core-utils: 4.13.0 gatsby-sharp: 1.13.0 graphql: 16.8.1 @@ -18107,7 +18163,7 @@ packages: transitivePeerDependencies: - supports-color - /gatsby@5.13.1(babel-eslint@10.1.0)(esbuild@0.19.11)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3): + /gatsby@5.13.1(@swc/core@1.3.102)(babel-eslint@10.1.0)(react-dom@18.2.0)(react@18.2.0)(typescript@5.3.3): resolution: {integrity: sha512-y8VB381ZnHX3Xxc1n78AAAd+t0EsIyyIRtfqlSQ10CXwZHpZzBR3DTRoHmqIG3/NmdiqWhbHb/nRlmKZUzixtQ==} engines: {node: '>=18.0.0'} hasBin: true @@ -18272,13 +18328,13 @@ packages: strip-ansi: 6.0.1 style-loader: 2.0.0(webpack@5.89.0) style-to-object: 0.4.4 - terser-webpack-plugin: 5.3.10(esbuild@0.19.11)(webpack@5.89.0) + terser-webpack-plugin: 5.3.10(@swc/core@1.3.102)(webpack@5.89.0) tmp: 0.2.1 true-case-path: 2.2.1 type-of: 2.0.1 url-loader: 4.1.1(file-loader@6.2.0)(webpack@5.89.0) uuid: 8.3.2 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) webpack-dev-middleware: 4.3.0(webpack@5.89.0) webpack-merge: 5.10.0 webpack-stats-plugin: 1.1.3 @@ -19269,7 +19325,6 @@ packages: - encoding - typescript - utf-8-validate - dev: true /graphql-http@1.22.0(graphql@16.8.1): resolution: {integrity: sha512-9RBUlGJWBFqz9LwfpmAbjJL/8j/HCNkZwPBU5+Bfmwez+1Ay43DocMNQYpIWsWqH0Ftv6PTNAh2aRnnMCBJgLw==} @@ -20095,7 +20150,6 @@ packages: hasBin: true dependencies: queue: 6.0.2 - dev: false /imagetools-core@6.0.4: resolution: {integrity: sha512-N1qs5qn7u9nR3kboISkYuvJm8MohiphCfBa+wx1UOropVaFis9/mh6wuDPLHJNhl6/64C7q2Pch5NASVKAaSrg==} @@ -23322,7 +23376,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) webpack-sources: 1.4.3 /mini-svg-data-uri@1.4.4: @@ -24155,7 +24209,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /nullthrows@1.1.1: resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==} @@ -25305,22 +25359,6 @@ packages: camelcase-css: 2.0.1 postcss: 8.4.32 - /postcss-load-config@4.0.2: - resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} - engines: {node: '>= 14'} - peerDependencies: - postcss: '>=8.0.9' - ts-node: '>=9.0.0' - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - dependencies: - lilconfig: 3.0.0 - yaml: 2.3.4 - dev: true - /postcss-load-config@4.0.2(postcss@8.4.32): resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} engines: {node: '>= 14'} @@ -25365,7 +25403,7 @@ packages: klona: 2.0.6 postcss: 8.4.32 semver: 7.5.4 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /postcss-merge-longhand@5.1.7(postcss@8.4.32): resolution: {integrity: sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==} @@ -26268,7 +26306,6 @@ packages: resolution: {integrity: sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==} dependencies: inherits: 2.0.4 - dev: false /quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} @@ -26343,7 +26380,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /rbush@3.0.1: resolution: {integrity: sha512-XRaVO0YecOpEuIvbhbpTrZgoiI6xBlz6hnlr6EHhd+0x9ase6EmeN+hdwwUaJvLcsFFQ8iWVF1GAK1yB0BWi0w==} @@ -26517,7 +26554,7 @@ packages: strip-ansi: 6.0.1 text-table: 0.2.0 typescript: 5.3.3 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) transitivePeerDependencies: - eslint - supports-color @@ -26923,7 +26960,7 @@ packages: loose-envify: 1.4.0 neo-async: 2.6.2 react: 18.2.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /react-split-pane@0.1.92(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-GfXP1xSzLMcLJI5BM36Vh7GgZBpy+U/X0no+VM3fxayv+p1Jly5HpMofZJraeaMl73b3hvlr+N9zJKvLB/uz9w==} @@ -29278,7 +29315,7 @@ packages: dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /style-to-object@0.3.0: resolution: {integrity: sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==} @@ -29589,7 +29626,7 @@ packages: ps-tree: 1.2.0 dev: false - /terser-webpack-plugin@5.3.10(esbuild@0.19.11)(webpack@5.89.0): + /terser-webpack-plugin@5.3.10(@swc/core@1.3.102)(webpack@5.89.0): resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -29606,12 +29643,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.20 - esbuild: 0.19.11 + '@swc/core': 1.3.102 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.1 terser: 5.26.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /terser-webpack-plugin@5.3.10(webpack@5.89.0): resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} @@ -30055,7 +30092,7 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - /tsup@8.0.1(typescript@5.3.3): + /tsup@8.0.1(postcss@8.4.32)(typescript@5.3.3): resolution: {integrity: sha512-hvW7gUSG96j53ZTSlT4j/KL0q1Q2l6TqGBFc6/mu/L46IoNWqLLUzLRLP1R8Q7xrJTmkDxxDoojV5uCVs1sVOg==} engines: {node: '>=18'} hasBin: true @@ -30082,7 +30119,8 @@ packages: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 4.0.2 + postcss: 8.4.32 + postcss-load-config: 4.0.2(postcss@8.4.32) resolve-from: 5.0.0 rollup: 4.9.2 source-map: 0.8.0-beta.0 @@ -30802,7 +30840,7 @@ packages: loader-utils: 2.0.4 mime-types: 2.1.35 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /url@0.11.3: resolution: {integrity: sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==} @@ -31646,7 +31684,7 @@ packages: mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 3.3.0 - webpack: 5.89.0(esbuild@0.19.11) + webpack: 5.89.0(@swc/core@1.3.102) /webpack-merge@5.10.0: resolution: {integrity: sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==} @@ -31715,7 +31753,7 @@ packages: - esbuild - uglify-js - /webpack@5.89.0(esbuild@0.19.11): + /webpack@5.89.0(@swc/core@1.3.102): resolution: {integrity: sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==} engines: {node: '>=10.13.0'} hasBin: true @@ -31746,7 +31784,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(esbuild@0.19.11)(webpack@5.89.0) + terser-webpack-plugin: 5.3.10(@swc/core@1.3.102)(webpack@5.89.0) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: