diff --git a/.depcheckrc.json b/.depcheckrc.json new file mode 100644 index 00000000000..a5f5a1ead55 --- /dev/null +++ b/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/eslint-config-studio", "dotenv-flow", "esbuild", "esbuild-register"] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 31999c9d470..9fb177bcd1b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,7 +27,6 @@ yarn dev - Rebase your feature branch regularly against `next`. Make sure its even with `next` before merging - Once it's done, open a pull request targeting `next` - After at least two reviewers has approved the pull request, you can merge it into `next` when you feel ready (if you're on the Sanity team, obviously) -- Everything except minor _trivial_ changes should go through pull-requests. If you're unsure whether it's a trivial change or not, submit a pull request just to be sure - Pull requests should be as ready as possible for merge. Unless stated otherwise, it should be safe to assume that: - The changes/feature are reviewed and tested by you @@ -35,8 +34,6 @@ yarn dev - The code is linted and the test suite is passing - It's fine to open a pull request to start a discussion / ask for help, but it should be stated clearly that it's not yet ready for merge. -- When the `next`-branch is thoroughly tested and ready to be released (either as a minor or major version bump), it should be merged into `current` and bumped. -- Critical fixes go straight into `current` (preferably through a pull request) ## Merging @@ -47,14 +44,6 @@ Prefer squash + merge. If it makes sense to keep individual commits (e.g. differ - `current`: This contains all the features and fixes included in the latest official release. - `next`: This includes everything scheduled for the next, upcoming release. -## Publishing official releases - -When `next` is ready for release, merge `next` into `current`, then run `yarn release` in the `current` branch and select version. After a successful release, remember to merge the new version number commits that were performed as part of the release into `next`. - -## Publishing _canary_ versions from feature branches - -This can be done at any time by anyone and is done by `yarn release-canary`. This will publish with the commit hash from HEAD. - # How to file an issue If you find a security vulnerability, do **NOT** open an issue. Email security@sanity.io instead. diff --git a/dev/embedded-studio/package.json b/dev/embedded-studio/package.json index bd90034d79f..33fbe525fd4 100644 --- a/dev/embedded-studio/package.json +++ b/dev/embedded-studio/package.json @@ -17,8 +17,8 @@ "devDependencies": { "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", - "@vitejs/plugin-react": "^4.2.0", + "@vitejs/plugin-react": "^4.2.1", "typescript": "^5.2.2", - "vite": "^5.0.0" + "vite": "^4.5.1" } } diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index d93c728a926..16db0162d0f 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -68,6 +68,6 @@ }, "devDependencies": { "chokidar": "^3.5.3", - "vite": "^4.5.0" + "vite": "^4.5.1" } } diff --git a/package.json b/package.json index 49afde9f68f..ca9852d48c4 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "clean:deps": "rimraf packages/@sanity/*/node_modules packages/*/node_modules node_modules perf/tests/node_modules perf/studio/node_modules", "check:deps-updates": "npx npm-check-updates --workspaces --root -m", "check:versions": "node -r esbuild-register scripts/normalizeDependencyVersions.ts", - "depcheck": "lerna exec \"node -r esbuild-register \\$LERNA_ROOT_PATH/scripts/depcheck.ts\" --no-bail --parallel", + "depcheck": "lerna exec depcheck --no-bail --parallel", "deploy:movies": "yarn build && cd examples/movies-studio && sanity deploy", "deploy:test": "yarn build && cd dev/test-studio && sanity deploy", "dev": "yarn start", @@ -106,10 +106,12 @@ "@sanity/pkg-utils": "^3.3.2", "@sanity/test": "0.0.1-alpha.1", "@sanity/tsdoc": "1.0.0-alpha.38", + "@sanity/types": "3.25.0", "@sanity/uuid": "^3.0.2", "@types/jest": "^29.5.6", "@types/node": "^14.18.9", "@types/react": "^18.2.37", + "@types/semver": "^7.5.6", "@types/tmp": "^0.2.3", "@types/yargs": "^17.0.7", "@typescript-eslint/eslint-plugin": "^6.18.1", @@ -149,6 +151,7 @@ "ora": "^6.3.1", "prettier": "^3.1.0", "prettier-plugin-packagejson": "^2.4.6", + "pretty-quick": "^3.1.3", "rimraf": "^3.0.2", "rxjs": "^7.8.1", "semver": "^7.3.5", diff --git a/packages/@sanity/block-tools/.depcheckignore.json b/packages/@sanity/block-tools/.depcheckignore.json deleted file mode 100644 index c598d8e9f00..00000000000 --- a/packages/@sanity/block-tools/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils", "react"] -} diff --git a/packages/@sanity/block-tools/.depcheckrc.json b/packages/@sanity/block-tools/.depcheckrc.json new file mode 100644 index 00000000000..d37cdad8206 --- /dev/null +++ b/packages/@sanity/block-tools/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils", "react"] +} diff --git a/packages/@sanity/cli/.depcheckignore.json b/packages/@sanity/cli/.depcheckignore.json deleted file mode 100644 index 1ea9e6e6074..00000000000 --- a/packages/@sanity/cli/.depcheckignore.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ignore": [ - "@babel/parser", - "@optimize-lodash/rollup-plugin", - "@portabletext/toolkit", - "@portabletext/types", - "@sanity/asset-utils", - "@sanity/base", - "@sanity/color", - "@sanity/desk-tool", - "@sanity/eslint-config-studio", - "@sanity/form-builder", - "@sanity/icons", - "@sanity/pkg-utils", - "@sanity/types", - "@sanity/ui", - "@sanity/uuid", - "babylon", - "esbuild", - "lodash.get", - "pluralize", - "pluralize-esm", - "prop-types", - "react-barcode", - "react-icons", - "react", - "sanity", - "sanity-plugin-hotspot-array", - "slug", - "styled-components", - "vite" - ] -} diff --git a/packages/@sanity/cli/.depcheckrc.json b/packages/@sanity/cli/.depcheckrc.json new file mode 100644 index 00000000000..f20daaa9e8f --- /dev/null +++ b/packages/@sanity/cli/.depcheckrc.json @@ -0,0 +1,20 @@ +{ + "ignores": [ + "@sanity/pkg-utils", + "sanity", + "@sanity/icons", + "pluralize-esm", + "vite", + "@portabletext/toolkit", + "react", + "@sanity/ui", + "lodash.get", + "@portabletext/types", + "slug", + "@sanity/asset-utils", + "styled-components", + "sanity-plugin-hotspot-array", + "react-icons", + "react-barcode" + ] +} diff --git a/packages/@sanity/cli/package.json b/packages/@sanity/cli/package.json index fefaf9e3d19..878379a4a82 100644 --- a/packages/@sanity/cli/package.json +++ b/packages/@sanity/cli/package.json @@ -64,41 +64,44 @@ "dependencies": { "@babel/traverse": "^7.23.5", "@sanity/telemetry": "^0.7.6", + "@sanity/util": "3.28.0", "chalk": "^4.1.2", + "decompress": "^4.2.0", "esbuild": "^0.19.8", "esbuild-register": "^3.4.1", "get-it": "^8.4.4", "golden-fleece": "^1.0.9", "node-machine-id": "^1.1.12", - "pkg-dir": "^5.0.0" + "pkg-dir": "^5.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^3.0.0" }, "devDependencies": { "@rexxars/gitconfiglocal": "^3.0.1", + "@types/decompress": "^4.2.4", + "@types/validate-npm-package-name": "^3.0.3", "@rollup/plugin-node-resolve": "^15.2.3", "@sanity/client": "^6.12.4", "@sanity/eslint-config-studio": "^3.0.1", "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.29.0", - "@sanity/util": "3.29.0", "@types/babel__traverse": "^7.18.1", "@types/configstore": "^5.0.1", "@types/cpx": "^1.5.2", - "@types/decompress": "^4.2.4", + "@types/debug": "^4.1.7", "@types/inquirer": "^6.0.0", + "@types/minimist": "^1.2.5", "@types/node": "^14.18.9", + "@types/semver": "^7.5.6", "@types/semver-compare": "^1.0.1", "@types/tar": "^6.1.3", - "@types/validate-npm-package-name": "^3.0.3", "@types/which": "^2.0.1", "@vercel/frameworks": "1.6.0", "@vercel/fs-detectors": "4.1.3", - "babylon": "^6.18.0", "boxen": "^4.1.0", "clean-stack": "^3.0.0", "configstore": "^5.0.1", "cpx": "^1.5.0", - "debug": "^3.2.7", - "decompress": "^4.2.0", + "debug": "^4.3.4", "deep-sort-object": "^1.0.1", "dotenv": "^16.0.3", "dotenv-expand": "^9.0.0", @@ -123,7 +126,6 @@ "semver": "^7.3.5", "semver-compare": "^1.0.0", "tar": "^6.1.11", - "validate-npm-package-name": "^3.0.0", "which": "^2.0.2", "xdg-basedir": "^4.0.0" }, diff --git a/packages/@sanity/diff/.depcheckignore.json b/packages/@sanity/diff/.depcheckignore.json deleted file mode 100644 index e5b051ed90f..00000000000 --- a/packages/@sanity/diff/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils"] -} diff --git a/packages/@sanity/diff/.depcheckrc.json b/packages/@sanity/diff/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/diff/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/@sanity/export/package.json b/packages/@sanity/export/package.json index 118834d8d7f..37069a5e7d2 100644 --- a/packages/@sanity/export/package.json +++ b/packages/@sanity/export/package.json @@ -33,7 +33,7 @@ "dependencies": { "@sanity/util": "3.29.0", "archiver": "^5.0.0", - "debug": "^3.2.7", + "debug": "^4.3.4", "get-it": "^8.4.4", "lodash": "^4.17.21", "mississippi": "^4.0.0", diff --git a/packages/@sanity/import/package.json b/packages/@sanity/import/package.json index ea92393dd97..38a86eca571 100644 --- a/packages/@sanity/import/package.json +++ b/packages/@sanity/import/package.json @@ -36,7 +36,7 @@ "@sanity/generate-help-url": "^3.0.0", "@sanity/mutator": "3.29.0", "@sanity/uuid": "^3.0.1", - "debug": "^3.2.7", + "debug": "^4.3.4", "file-url": "^2.0.2", "get-it": "^8.4.4", "get-uri": "^2.0.2", diff --git a/packages/@sanity/migrate/.depcheckignore.json b/packages/@sanity/migrate/.depcheckignore.json deleted file mode 100644 index 40450dda78d..00000000000 --- a/packages/@sanity/migrate/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@sanity/pkg-utils"] -} diff --git a/packages/@sanity/migrate/.depcheckrc.json b/packages/@sanity/migrate/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/migrate/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/@sanity/mutator/.depcheckignore.json b/packages/@sanity/mutator/.depcheckignore.json deleted file mode 100644 index e5b051ed90f..00000000000 --- a/packages/@sanity/mutator/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils"] -} diff --git a/packages/@sanity/mutator/.depcheckrc.json b/packages/@sanity/mutator/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/mutator/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/@sanity/mutator/package.json b/packages/@sanity/mutator/package.json index b54d263f21e..cfe848feca5 100644 --- a/packages/@sanity/mutator/package.json +++ b/packages/@sanity/mutator/package.json @@ -57,7 +57,7 @@ "dependencies": { "@sanity/diff-match-patch": "^3.1.1", "@sanity/uuid": "^3.0.1", - "debug": "^3.2.7", + "debug": "^4.3.4", "lodash": "^4.17.21" }, "devDependencies": { diff --git a/packages/@sanity/portable-text-editor/.depcheckignore.json b/packages/@sanity/portable-text-editor/.depcheckignore.json deleted file mode 100644 index bcd7cfc8318..00000000000 --- a/packages/@sanity/portable-text-editor/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils", "ws"] -} diff --git a/packages/@sanity/portable-text-editor/.depcheckrc.json b/packages/@sanity/portable-text-editor/.depcheckrc.json new file mode 100644 index 00000000000..12b75c3185e --- /dev/null +++ b/packages/@sanity/portable-text-editor/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils", "ws", "@types/jest"] +} diff --git a/packages/@sanity/portable-text-editor/package.json b/packages/@sanity/portable-text-editor/package.json index 6163f49b67b..17a5b75e2d7 100644 --- a/packages/@sanity/portable-text-editor/package.json +++ b/packages/@sanity/portable-text-editor/package.json @@ -83,6 +83,7 @@ "@types/debug": "^4.1.5", "@types/express": "^4.17.21", "@types/express-ws": "^3.0.1", + "@types/is-hotkey": "^0.1.10", "@types/jest": "^29.5.6", "@types/lodash": "^4.14.149", "@types/node": "^14.18.9", @@ -90,7 +91,7 @@ "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15", "@types/ws": "~8.5.3", - "@vitejs/plugin-react": "^4.2.0", + "@vitejs/plugin-react": "^4.2.1", "express": "^4.18.2", "express-ws": "^5.0.2", "jest": "^29.7.0", @@ -102,7 +103,7 @@ "rimraf": "^3.0.2", "rxjs": "^7.8.1", "styled-components": "^6.1.6", - "vite": "^4.5.0" + "vite": "^4.5.1" }, "peerDependencies": { "react": "^16.9 || ^17 || ^18", diff --git a/packages/@sanity/schema/.depcheckignore.json b/packages/@sanity/schema/.depcheckignore.json deleted file mode 100644 index e5b051ed90f..00000000000 --- a/packages/@sanity/schema/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils"] -} diff --git a/packages/@sanity/schema/.depcheckrc.json b/packages/@sanity/schema/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/schema/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/@sanity/types/.depcheckignore.json b/packages/@sanity/types/.depcheckignore.json deleted file mode 100644 index c5d0e3f777e..00000000000 --- a/packages/@sanity/types/.depcheckignore.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "ignore": [ - "@juggle/resize-observer", - "@optimize-lodash/rollup-plugin", - "@popperjs/core", - "@rexxars/react-sortable-hoc", - "@sanity/bifur-client", - "@sanity/mutator", - "@sanity/pkg-utils", - "@sanity/types", - "react", - "@sanity/ui", - "_self_", - "boundless-arrow-key-navigation", - "element-resize-detector", - "nano-pubsub", - "styled-components" - ] -} diff --git a/packages/@sanity/types/.depcheckrc.json b/packages/@sanity/types/.depcheckrc.json new file mode 100644 index 00000000000..1252e03b899 --- /dev/null +++ b/packages/@sanity/types/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils", "react", "_self_"] +} diff --git a/packages/@sanity/util/.depcheckignore.json b/packages/@sanity/util/.depcheckignore.json deleted file mode 100644 index e5b051ed90f..00000000000 --- a/packages/@sanity/util/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils"] -} diff --git a/packages/@sanity/util/.depcheckrc.json b/packages/@sanity/util/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/util/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/@sanity/vision/.depcheckignore.json b/packages/@sanity/vision/.depcheckignore.json deleted file mode 100644 index e5b051ed90f..00000000000 --- a/packages/@sanity/vision/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils"] -} diff --git a/packages/@sanity/vision/.depcheckrc.json b/packages/@sanity/vision/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/@sanity/vision/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/create-sanity/.depcheckignore.json b/packages/create-sanity/.depcheckignore.json deleted file mode 100644 index 438f59f1156..00000000000 --- a/packages/create-sanity/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@sanity/cli"] -} diff --git a/packages/create-sanity/.depcheckrc.json b/packages/create-sanity/.depcheckrc.json new file mode 100644 index 00000000000..4d5d2eee3d6 --- /dev/null +++ b/packages/create-sanity/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/cli"] +} diff --git a/packages/groq/.depcheckignore.json b/packages/groq/.depcheckignore.json deleted file mode 100644 index 66d6836295e..00000000000 --- a/packages/groq/.depcheckignore.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "ignore": ["@optimize-lodash/rollup-plugin", "@sanity/pkg-utils", "groq"], - "ignoreDirs": ["test"] -} diff --git a/packages/groq/.depcheckrc.json b/packages/groq/.depcheckrc.json new file mode 100644 index 00000000000..d2b37f0015c --- /dev/null +++ b/packages/groq/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils"] +} diff --git a/packages/groq/test/groq.test.cjs b/packages/groq/test/groq.test.cjs index 1b4cbb6e6ff..d4b90bfc5be 100644 --- a/packages/groq/test/groq.test.cjs +++ b/packages/groq/test/groq.test.cjs @@ -3,12 +3,12 @@ const {strict: assert} = require('node:assert') -const groq = require('groq') +const groq = require('../src') assert.equal(typeof groq, 'function') // Ensure it's possible to check what version of groq is being used -const pkg = require('groq/package.json') +const pkg = require('../groq/package.json') assert.equal(typeof pkg.version, 'string') diff --git a/packages/groq/test/groq.test.mjs b/packages/groq/test/groq.test.mjs index 43bc710c799..17fb35a7e06 100644 --- a/packages/groq/test/groq.test.mjs +++ b/packages/groq/test/groq.test.mjs @@ -4,7 +4,7 @@ import {strict as assert} from 'node:assert' import groq from 'groq' // Ensure it's possible to check what version of groq being used -import pkg from 'groq/package.json' assert {type: 'json'} +import pkg from '../package.json' assert {type: 'json'} assert.equal(typeof groq, 'function') assert.equal(typeof pkg.version, 'string') diff --git a/packages/sanity/.depcheckignore.json b/packages/sanity/.depcheckignore.json deleted file mode 100644 index dc39f1dd28d..00000000000 --- a/packages/sanity/.depcheckignore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ignore": [ - "@optimize-lodash/rollup-plugin", - "@sanity/pkg-utils", - "esbuild", - "globby", - "read-pkg-up", - "sanity" - ] -} diff --git a/packages/sanity/.depcheckrc.json b/packages/sanity/.depcheckrc.json new file mode 100644 index 00000000000..56e8d0705fa --- /dev/null +++ b/packages/sanity/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["@sanity/pkg-utils", "globby", "sanity"] +} diff --git a/packages/sanity/package.json b/packages/sanity/package.json index c1243dc6be9..a18c004a66c 100644 --- a/packages/sanity/package.json +++ b/packages/sanity/package.json @@ -230,7 +230,7 @@ "@types/speakingurl": "^13.0.3", "@types/tar-stream": "^3.1.3", "@types/use-sync-external-store": "^0.0.5", - "@vitejs/plugin-react": "^4.2.0", + "@vitejs/plugin-react": "^4.2.1", "archiver": "^6.0.1", "arrify": "^1.0.1", "async-mutex": "^0.4.1", @@ -243,7 +243,7 @@ "console-table-printer": "^2.11.1", "dataloader": "^2.1.0", "date-fns": "^2.26.1", - "debug": "^3.2.7", + "debug": "^4.3.4", "esbuild": "^0.19.8", "esbuild-register": "^3.4.1", "execa": "^2.0.0", @@ -301,7 +301,7 @@ "use-device-pixel-ratio": "^1.1.0", "use-hot-module-reload": "^1.0.1", "use-sync-external-store": "^1.2.0", - "vite": "^4.5.0", + "vite": "^4.5.1", "yargs": "^17.3.0" }, "devDependencies": { @@ -315,6 +315,7 @@ "@types/archiver": "^6.0.2", "@types/arrify": "^1.0.4", "@types/connect-history-api-fallback": "^1.5.2", + "@types/debug": "^4.1.12", "@types/lodash": "^4.14.149", "@types/log-symbols": "^2.0.0", "@types/raf": "^3.4.0", diff --git a/perf/.depcheckrc.json b/perf/.depcheckrc.json new file mode 100644 index 00000000000..7617a22bc02 --- /dev/null +++ b/perf/.depcheckrc.json @@ -0,0 +1,3 @@ +{ + "ignores": ["sanity"] +} diff --git a/perf/tests/.depcheckignore.json b/perf/tests/.depcheckignore.json deleted file mode 100644 index 156df351753..00000000000 --- a/perf/tests/.depcheckignore.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore": ["@sanity/uuid", "dotenv", "sanity", "typescript", "styled-components", "react"] -} diff --git a/scripts/depcheck.ts b/scripts/depcheck.ts deleted file mode 100755 index 72e889b4a68..00000000000 --- a/scripts/depcheck.ts +++ /dev/null @@ -1,146 +0,0 @@ -#!/usr/bin/env node -/* eslint-disable import/no-dynamic-require, no-process-env */ -import chalk from 'chalk' -import depcheck, {type Node} from 'depcheck' -import fs from 'fs' -import path from 'path' - -const cwd = path.resolve(process.cwd(), process.argv[2] || '.') - -const manifest = JSON.parse(fs.readFileSync(`${cwd}/package.json`, 'utf-8')) - -const options: depcheck.Options = { - ignoreMatches: ['@types/jest', '@types/webpack-env', 'ts-node', ...getProjectIgnores(cwd)], - ignoreDirs: ['lib', ...getProjectIgnoresDirs(cwd)], - detectors: [ - depcheck.detector.exportDeclaration, - depcheck.detector.extract, - depcheck.detector.importCallExpression, - depcheck.detector.importDeclaration, - depcheck.detector.requireCallExpression, - depcheck.detector.requireResolveCallExpression, - depcheck.detector.typescriptImportEqualsDeclaration, - depcheck.detector.typescriptImportType, - typeScriptReferencesDirective, - ], - specials: [ - depcheck.special.bin, - depcheck.special.babel, - depcheck.special.webpack, - depcheck.special.jest, - sanityJSONParser, - implicitDepsParser, - ], - package: manifest, -} as const - -depcheck(cwd, options).then((unused) => { - const hasUnusedDeps = unused.dependencies.length > 0 || unused.devDependencies.length > 0 - const missing = Object.keys(unused.missing).map((dep) => ({ - name: dep, - usages: unused.missing[dep], - })) - const hasMissingDeps = missing.length > 0 - const hasInvalidFiles = unused.invalidFiles.length > 0 - const hasInvalidDirs = unused.invalidDirs.length > 0 - if (hasUnusedDeps) { - console.error( - [ - chalk.bold('Unused dependencies'), - ...unused.dependencies.map((dep) => `- ${dep}`), - ...unused.devDependencies.map((dep) => `- ${dep} (dev)`), - ].join('\n'), - ) - } - if (hasMissingDeps) { - console.error( - [ - chalk.bold('Missing dependencies'), - ...missing.flatMap((dep) => [ - `- ${dep.name}`, - ' used by', - ...dep.usages.map((u) => ` -- ${path.relative(cwd, u)}`), - ]), - ].join('\n'), - ) - } - if (hasInvalidFiles) { - console.error( - [ - chalk.bold('Invalid files'), - ...Object.entries(unused.invalidFiles).map(([file]) => `- ${file}`), - ].join('\n'), - ) - } - if (hasInvalidDirs) { - console.error( - [ - chalk.bold('Invalid dirs'), - ...Object.entries(unused.invalidDirs).map(([file]) => `- ${file}`), - ].join('\n'), - ) - } - if (hasMissingDeps || hasUnusedDeps || hasInvalidFiles) { - process.exit(1) - } -}) - -const IMPLICIT_DEPS: Record = { - sanity: ['styled-components', 'react'], - recast: '@babel/parser', // recast/parsers/typescript implicitly requires @babel/parser -} - -function implicitDepsParser(filePath: string, deps: ReadonlyArray) { - return deps.flatMap((dep) => IMPLICIT_DEPS[dep] || []) -} - -function getProjectIgnores(baseDir: string) { - try { - return JSON.parse(fs.readFileSync(`${baseDir}/.depcheckignore.json`, 'utf-8'))?.ignore || [] - } catch { - return [] - } -} - -function getProjectIgnoresDirs(baseDir: string) { - try { - return JSON.parse(fs.readFileSync(`${baseDir}/.depcheckignore.json`, 'utf-8'))?.ignoreDirs || [] - } catch (e) { - return [] - } -} - -function typeScriptReferencesDirective(node: Node): ReadonlyArray | string { - let match - if (node.type === 'CommentLine' && (match = node.value.match(/\//))) { - return [match[1]] - } - return [] -} - -function sanityJSONParser(filePath: string, deps: ReadonlyArray) { - const filename = path.basename(filePath) - if (filename === 'sanity.json') { - const sanityConfig = JSON.parse(fs.readFileSync(filePath, 'utf-8')) - const allPlugins = sanityConfig.plugins.concat( - Object.keys(sanityConfig.env || {}).flatMap((env) => sanityConfig.env[env].plugins || []), - ) - return deps - .concat(allPlugins.filter(isLocalPlugin(filePath))) - .filter((dep) => - allPlugins.some((plugin: string) => plugin === dep || dep === `sanity-plugin-${plugin}`), - ) - } - return [] -} - -function isLocalPlugin(basePath: string) { - return (pluginName: string) => { - try { - fs.accessSync(path.join(basePath, pluginName, 'sanity.json'), fs.constants.R_OK) - return true - } catch { - return false - } - } -} diff --git a/test/mocks/emptyObject.ts b/test/mocks/emptyObject.ts deleted file mode 100644 index b1c6ea436a5..00000000000 --- a/test/mocks/emptyObject.ts +++ /dev/null @@ -1 +0,0 @@ -export default {} diff --git a/test/mocks/undefined.ts b/test/mocks/undefined.ts deleted file mode 100644 index edb72725b9e..00000000000 --- a/test/mocks/undefined.ts +++ /dev/null @@ -1 +0,0 @@ -export default undefined diff --git a/test/sanity-env.d.ts b/test/sanity-env.d.ts deleted file mode 100644 index 3ecf29fbffe..00000000000 --- a/test/sanity-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/yarn.lock b/yarn.lock index ab03f88b703..9a6ecab53aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3095,7 +3095,7 @@ nanoid "^3.1.12" rxjs "^7.0.0" -"@sanity/client@^6.1.2", "@sanity/client@^6.12.4", "@sanity/client@^6.8.6": +"@sanity/client@^6.1.2", "@sanity/client@^6.11.1", "@sanity/client@^6.12.3", "@sanity/client@^6.12.4", "@sanity/client@^6.8.6": version "6.12.4" resolved "https://registry.yarnpkg.com/@sanity/client/-/client-6.12.4.tgz#ec7113b57b381846b5e16bdbbe5ec175c219b617" integrity sha512-eDBnKwKdFIiMeRZ5xPaKUOs+gsw6P4Bq+Bj7cZ9xuaLXMTsOSlB5h9TsPW5vAYRMbm4coVYUvhqm9TMwSi0F2Q== @@ -3370,6 +3370,22 @@ tmp "^0.2.1" vite "^4.3.8" +"@sanity/types@3.25.0": + version "3.25.0" + resolved "https://registry.yarnpkg.com/@sanity/types/-/types-3.25.0.tgz#bdf90822d43fd1b83b00c17f0403f34a52280adf" + integrity sha512-82UssrPv+Teb0ozPS+hsdbvDVsmVH+d4zBlIYuR+TKh2WLvMD7jx510dBDq9PdE0Fot6WQEtpJ8YBxwtM6qD4A== + dependencies: + "@sanity/client" "^6.11.1" + "@types/react" "^18.0.25" + +"@sanity/types@3.28.0": + version "3.28.0" + resolved "https://registry.yarnpkg.com/@sanity/types/-/types-3.28.0.tgz#3bcb377631afba2c94c026306397089c64c0cead" + integrity sha512-k3y7mD9QLN4PQVla5kkRKUu/JcEzByYhAAp8kFYRyZPBpJO3/BWZQVufWzbIfmyHrH5fu+O0XDP/MVATyYwoGQ== + dependencies: + "@sanity/client" "^6.12.3" + "@types/react" "^18.0.25" + "@sanity/ui-workshop@^1.0.0", "@sanity/ui-workshop@^1.2.11": version "1.2.11" resolved "https://registry.yarnpkg.com/@sanity/ui-workshop/-/ui-workshop-1.2.11.tgz#2eceaa82886650560f3cb69237dcd43d04788e13" @@ -3414,6 +3430,15 @@ framer-motion "^11.0.3" react-refractor "^2.1.7" +"@sanity/util@3.28.0": + version "3.28.0" + resolved "https://registry.yarnpkg.com/@sanity/util/-/util-3.28.0.tgz#684c2bda26a3c48d88e337eb93ceb4c6a631e462" + integrity sha512-ca0MNCj9q/ZY0RpKzKind+02VnzuZ2+5lEqrN27XFfc0V+Rdqz6VODCikBQelNEqt1EU47lYbPlLr5VEWxbr0Q== + dependencies: + "@sanity/types" "3.28.0" + get-random-values-esm "^1.0.0" + moment "^2.29.4" + "@sanity/uuid@3.0.2", "@sanity/uuid@^3", "@sanity/uuid@^3.0.1", "@sanity/uuid@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@sanity/uuid/-/uuid-3.0.2.tgz#e022c37f1d94df3cd876a823e9a83c1d55c99e05" @@ -3738,6 +3763,17 @@ "@types/babel__template" "*" "@types/babel__traverse" "*" +"@types/babel__core@^7.20.5": + version "7.20.5" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" + integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== + dependencies: + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + "@types/babel__generator@*": version "7.6.4" resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" @@ -3795,6 +3831,13 @@ dependencies: "@types/node" "*" +"@types/debug@^4.1.12", "@types/debug@^4.1.7": + version "4.1.12" + resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917" + integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ== + dependencies: + "@types/ms" "*" + "@types/debug@^4.1.5": version "4.1.7" resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.7.tgz#7cc0ea761509124709b8b2d1090d8f6c17aadb82" @@ -3896,6 +3939,11 @@ "@types/through" "*" rxjs "^6.4.0" +"@types/is-hotkey@^0.1.10": + version "0.1.10" + resolved "https://registry.yarnpkg.com/@types/is-hotkey/-/is-hotkey-0.1.10.tgz#cf440fab9bf75ffba4e1a16e8df28938de0778c9" + integrity sha512-RvC8KMw5BCac1NvRRyaHgMMEtBaZ6wh0pyPTBu7izn4Sj/AX9Y4aXU5c7rX8PnM/knsuUpC1IeoBkANtxBypsQ== + "@types/is-hotkey@^0.1.7", "@types/is-hotkey@^0.1.8": version "0.1.9" resolved "https://registry.npmjs.org/@types/is-hotkey/-/is-hotkey-0.1.9.tgz#cd79e64ad8e14d5581295ea67f3397b6dfdd6842" @@ -3989,6 +4037,11 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== +"@types/minimist@^1.2.5": + version "1.2.5" + resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" + integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== + "@types/moment@^2.13.0": version "2.13.0" resolved "https://registry.yarnpkg.com/@types/moment/-/moment-2.13.0.tgz#604ebd189bc3bc34a1548689404e61a2a4aac896" @@ -4151,7 +4204,7 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.2.3.tgz#5798ecf1bec94eaa64db39ee52808ec0693315aa" integrity sha512-KQf+QAMWKMrtBMsB8/24w53tEsxllMj6TuA80TT/5igJalLI/zm0L3oXRbIAl4Ohfc85gyHX/jhMwsVkmhLU4A== -"@types/semver@^7.5.0": +"@types/semver@^7.5.0", "@types/semver@^7.5.6": version "7.5.6" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== @@ -4472,7 +4525,7 @@ resolved "https://registry.yarnpkg.com/@vercel/stega/-/stega-0.1.0.tgz#2eadbbc9eb0eaab26d28b0c443a922d78c23b6e3" integrity sha512-5b0PkOJsFBX5alChuIO3qpkt5vIZBevzLPhUQ1UP8UzVjL3F1VllnZxp/thfD8R5ol7D7WHkgZHIjdUBX4tDpQ== -"@vitejs/plugin-react@^4.0.0", "@vitejs/plugin-react@^4.0.4", "@vitejs/plugin-react@^4.2.0": +"@vitejs/plugin-react@^4.0.0", "@vitejs/plugin-react@^4.0.4": version "4.2.0" resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.2.0.tgz#d71352b1a443c09c7aae8f278dd071ab3d9d8490" integrity sha512-+MHTH/e6H12kRp5HUkzOGqPMksezRMmW+TNzlh/QXfI8rRf6l2Z2yH/v12no1UvTwhZgEDMuQ7g7rrfMseU6FQ== @@ -4483,6 +4536,17 @@ "@types/babel__core" "^7.20.4" react-refresh "^0.14.0" +"@vitejs/plugin-react@^4.2.1": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.2.1.tgz#744d8e4fcb120fc3dbaa471dadd3483f5a304bb9" + integrity sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ== + dependencies: + "@babel/core" "^7.23.5" + "@babel/plugin-transform-react-jsx-self" "^7.23.3" + "@babel/plugin-transform-react-jsx-source" "^7.23.3" + "@types/babel__core" "^7.20.5" + react-refresh "^0.14.0" + "@vue/compiler-core@3.4.15": version "3.4.15" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.4.15.tgz#be20d1bbe19626052500b48969302cb6f396d36e" @@ -5169,11 +5233,6 @@ babel-runtime@^6.9.2: core-js "^2.4.0" regenerator-runtime "^0.11.0" -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== - balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -7157,7 +7216,7 @@ esbuild@^0.18.10: "@esbuild/win32-ia32" "0.18.20" "@esbuild/win32-x64" "0.18.20" -esbuild@^0.19.2, esbuild@^0.19.3, esbuild@^0.19.8: +esbuild@^0.19.2, esbuild@^0.19.8: version "0.19.8" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.8.tgz#ad05b72281d84483fa6b5345bd246c27a207b8f1" integrity sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w== @@ -7578,6 +7637,21 @@ execa@^2.0.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +execa@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" + integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + execa@^5.0.0, execa@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" @@ -8198,7 +8272,7 @@ fsevents@^1.0.0: bindings "^1.5.0" nan "^2.12.1" -fsevents@^2.3.2, fsevents@~2.3.2, fsevents@~2.3.3: +fsevents@^2.3.2, fsevents@~2.3.2: version "2.3.3" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== @@ -9053,6 +9127,11 @@ https-proxy-agent@^7.0.2: agent-base "^7.0.2" debug "4" +human-signals@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" + integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== + human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -9120,7 +9199,7 @@ ignore-walk@^6.0.4: dependencies: minimatch "^9.0.0" -ignore@^5.0.4: +ignore@^5.0.4, ignore@^5.3.0: version "5.3.1" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== @@ -11585,6 +11664,11 @@ moment@*, moment@^2.29.4: resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== +mri@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" + integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== + ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" @@ -11981,7 +12065,7 @@ npm-run-path@^3.0.0: dependencies: path-key "^3.0.0" -npm-run-path@^4.0.1: +npm-run-path@^4.0.0, npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== @@ -12725,6 +12809,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +picomatch@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-3.0.1.tgz#817033161def55ec9638567a2f3bbc876b3e7516" + integrity sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag== + pidtree@^0.3.0: version "0.3.1" resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.3.1.tgz#ef09ac2cc0533df1f3250ccf2c4d366b0d12114a" @@ -12845,7 +12934,7 @@ postcss@8.4.31: picocolors "^1.0.0" source-map-js "^1.0.2" -postcss@^8.4.27, postcss@^8.4.31, postcss@^8.4.33: +postcss@^8.4.27, postcss@^8.4.33: version "8.4.33" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.33.tgz#1378e859c9f69bf6f638b990a0212f43e2aaa742" integrity sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg== @@ -12934,6 +13023,19 @@ pretty-ms@^7.0.1: dependencies: parse-ms "^2.1.0" +pretty-quick@^3.1.3: + version "3.3.1" + resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-3.3.1.tgz#cfde97fec77a8d201a0e0c9c71d9990e12587ee2" + integrity sha512-3b36UXfYQ+IXXqex6mCca89jC8u0mYLqFAN5eTQKoXO6oCQYcIVYZEB/5AlBHI7JPYygReM2Vv6Vom/Gln7fBg== + dependencies: + execa "^4.1.0" + find-up "^4.1.0" + ignore "^5.3.0" + mri "^1.2.0" + picocolors "^1.0.0" + picomatch "^3.0.1" + tslib "^2.6.2" + prismjs@~1.27.0: version "1.27.0" resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057" @@ -13780,7 +13882,7 @@ rollup@^3.27.1: optionalDependencies: fsevents "~2.3.2" -rollup@^4.2.0, rollup@^4.6.1: +rollup@^4.6.1: version "4.6.1" resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.6.1.tgz#351501c86b5b4f976dde8c5837516452b59921f8" integrity sha512-jZHaZotEHQaHLgKr8JnQiDT1rmatjgKlMekyksz+yk9jt/8z9quNjnKNRoaM0wd9DC2QKXjmWWuDYtM3jfF8pQ== @@ -15745,7 +15847,7 @@ vary@^1, vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== -vite@^4.3.8, vite@^4.4.10, vite@^4.4.9, vite@^4.5.0: +vite@^4.3.8, vite@^4.4.10, vite@^4.4.9: version "4.5.0" resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.0.tgz#ec406295b4167ac3bc23e26f9c8ff559287cff26" integrity sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw== @@ -15756,16 +15858,16 @@ vite@^4.3.8, vite@^4.4.10, vite@^4.4.9, vite@^4.5.0: optionalDependencies: fsevents "~2.3.2" -vite@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.0.2.tgz#3c94627dace83b9bf04b64eaf618038e30fb95c0" - integrity sha512-6CCq1CAJCNM1ya2ZZA7+jS2KgnhbzvxakmlIjN24cF/PXhRMzpM/z8QgsVJA/Dm5fWUWnVEsmtBoMhmerPxT0g== +vite@^4.5.1: + version "4.5.2" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.2.tgz#d6ea8610e099851dad8c7371599969e0f8b97e82" + integrity sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w== dependencies: - esbuild "^0.19.3" - postcss "^8.4.31" - rollup "^4.2.0" + esbuild "^0.18.10" + postcss "^8.4.27" + rollup "^3.27.1" optionalDependencies: - fsevents "~2.3.3" + fsevents "~2.3.2" void-elements@3.1.0: version "3.1.0"