From 888b6015c3829872f78428ca0f07640989f6608c Mon Sep 17 00:00:00 2001 From: L <6723574+louisgv@users.noreply.github.com> Date: Mon, 17 Jul 2023 05:50:24 -0400 Subject: [PATCH] chore: update deps (#690) * Remove prettier sort fork * chore: upgrade deps, remove custom fork of prettier sorter * chore: bump dependencies * update examples * Packup --- .github/CONTRIBUTING.md | 7 +- .gitmodules | 3 - .prettierrc.cjs | 17 - .prettierrc.mjs | 31 + api/messaging/jest.config.mjs | 2 +- api/messaging/src/hook.ts | 2 +- api/messaging/src/types.ts | 4 +- api/storage | 2 +- cli/create-plasmo/bin/index.mjs | 1 + cli/create-plasmo/package.json | 2 +- cli/create-plasmo/src/index.ts | 2 +- cli/plasmo/bin/index.mjs | 1 + cli/plasmo/i18n/README.ja-JP.md | 2 +- cli/plasmo/index.mjs | 2 +- cli/plasmo/package.json | 5 +- cli/plasmo/src/commands/init.ts | 2 +- .../background-service-worker/bgsw-entry.ts | 2 +- .../bgsw-main-world-script.ts | 2 +- .../bgsw-messaging-declaration.ts | 2 +- .../bgsw-messaging.ts | 2 +- cli/plasmo/src/features/env/env-config.ts | 4 +- .../src/features/env/env-declaration.ts | 2 +- .../content-script-config.ts | 20 +- .../extension-devtools/generate-icons.ts | 2 +- .../extension-devtools/package-file.ts | 3 +- .../features/extension-devtools/parse-ast.ts | 15 +- .../extension-devtools/project-path.ts | 11 +- .../extension-devtools/project-watcher.ts | 2 +- .../extension-devtools/strip-underscore.ts | 2 +- .../features/extension-devtools/tsconfig.ts | 4 +- .../src/features/extra/cache-busting.ts | 2 +- cli/plasmo/src/features/extra/next-new-tab.ts | 4 +- .../features/helpers/create-parcel-bundler.ts | 2 +- .../src/features/manifest-factory/base.ts | 40 +- .../src/features/manifest-factory/mv2.ts | 2 +- .../src/features/manifest-factory/mv3.ts | 2 +- .../features/manifest-factory/scaffolder.ts | 4 +- .../features/manifest-factory/ui-library.ts | 2 +- .../src/features/manifest-factory/zip.ts | 4 +- .../project-creator/from-existing-manifest.ts | 8 +- .../src/features/project-creator/index.ts | 10 +- cli/plasmo/src/index.ts | 2 +- cli/plasmo/templates/plasmo.d.ts | 3 +- cli/plasmo/templates/static/common/react.ts | 2 +- .../react17/content-script-ui-mount.tsx | 13 +- cli/plasmo/templates/static/react17/index.tsx | 6 +- .../react18/content-script-ui-mount.tsx | 12 +- cli/plasmo/templates/static/react18/index.tsx | 6 +- .../static/svelte4/content-script-ui-mount.ts | 7 +- .../static/vue3/content-script-ui-mount.ts | 27 +- cli/plasmo/templates/static/vue3/index.ts | 3 +- core/parcel-bundler/src/create-ideal-graph.ts | 10 +- .../src/decorate-legacy-graph.ts | 2 +- .../parcel-bundler/src/get-entry-by-target.ts | 2 +- core/parcel-bundler/src/remove-bundle.ts | 2 +- core/parcel-config/package.json | 2 +- core/parcel-core/src/index.ts | 29 +- core/parcel-core/src/resolve-options.ts | 5 +- core/parcel-packager/src/index.ts | 2 +- .../src/handle-ts-path.ts | 2 +- core/parcel-resolver-post/src/utils.ts | 4 +- core/parcel-resolver/package.json | 2 +- .../src/handle-absolute-root.ts | 6 +- core/parcel-resolver/src/handle-alias.ts | 2 +- .../src/handle-plasmo-internal.ts | 6 +- core/parcel-resolver/src/handle-polyfill.ts | 2 +- .../src/handle-remote-caching.ts | 8 +- core/parcel-resolver/src/handle-tilde-src.ts | 6 +- core/parcel-resolver/src/shared.ts | 4 +- core/parcel-runtime/src/index.ts | 6 +- .../runtimes/background-service-runtime.ts | 6 +- .../src/runtimes/page-runtime.ts | 2 +- .../src/runtimes/script-runtime.ts | 4 +- .../src/index.ts | 2 +- .../src/handle-deep-loc.ts | 2 +- .../src/handle-dictionaries.ts | 2 +- core/parcel-transformer-manifest/src/state.ts | 4 +- core/parcel-transformer-svelte/src/index.ts | 2 +- .../src/source-map.ts | 2 +- core/parcel-transformer-vue/package.json | 2 +- core/parcel-transformer-vue/src/index.ts | 6 +- examples | 2 +- package.json | 12 +- packages/gcp-refresh-token | 2 +- packages/init/package.json | 2 +- packages/init/templates/.prettierrc.cjs | 17 - packages/permission-ui | 2 +- packages/prettier-plugin-sort-imports | 1 - packages/puro | 2 +- packages/rps | 2 +- packages/use-hashed-state | 2 +- pnpm-lock.yaml | 829 ++++++++---------- scripts/move-prettier-cjs-to-mjs.bash | 15 + 93 files changed, 649 insertions(+), 694 deletions(-) delete mode 100644 .prettierrc.cjs create mode 100644 .prettierrc.mjs delete mode 100644 packages/init/templates/.prettierrc.cjs delete mode 160000 packages/prettier-plugin-sort-imports create mode 100755 scripts/move-prettier-cjs-to-mjs.bash diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 450471822..40868cbf8 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -34,7 +34,7 @@ requests should be made against. To develop locally: -1. Install [pnpm](https://pnpm.io/) +1. Install [pnpm](https://pnpm.io/) - DO NOT install pnpm a as npm's global dependency, we need pnpm to be able to link directly to your $PATH. - Recommended installation method is with corepack or with brew (on macOS) - If installed with brew, you might need to include the pnpm $PATH to your debugger @@ -76,12 +76,13 @@ To develop locally: ``` Note: The `create-plasmo` CLI tool is not meant to be run locally. -If you have already linked it, please run +If you have already linked it, please run ```sh pnpm -g unlink create-plasmo ``` - to unlink it. + +to unlink it. ## Building diff --git a/.gitmodules b/.gitmodules index d8d0a03ff..2774abdf0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -29,9 +29,6 @@ [submodule "packages/config"] path = packages/config url = https://github.com/PlasmoHQ/plasmo-config.git -[submodule "packages/prettier-plugin-sort-imports"] - path = packages/prettier-plugin-sort-imports - url = https://github.com/PlasmoHQ/prettier-plugin-sort-imports.git [submodule "api/storage"] path = api/storage url = git@github.com:PlasmoHQ/storage.git diff --git a/.prettierrc.cjs b/.prettierrc.cjs deleted file mode 100644 index 458e34071..000000000 --- a/.prettierrc.cjs +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @type {import('prettier').Options} - */ -module.exports = { - printWidth: 80, - tabWidth: 2, - useTabs: false, - semi: false, - singleQuote: false, - trailingComma: "none", - bracketSpacing: true, - bracketSameLine: true, - plugins: [require.resolve("@plasmohq/prettier-plugin-sort-imports")], - importOrder: ["^@plasmo/(.*)$", "^@plasmohq/(.*)$", "^~(.*)$", "^[./]"], - importOrderSeparation: true, - importOrderSortSpecifiers: true -} diff --git a/.prettierrc.mjs b/.prettierrc.mjs new file mode 100644 index 000000000..8b11748e7 --- /dev/null +++ b/.prettierrc.mjs @@ -0,0 +1,31 @@ +/** + * @type {import('prettier').Options} + */ +export default { + printWidth: 80, + tabWidth: 2, + useTabs: false, + semi: false, + singleQuote: false, + trailingComma: "none", + bracketSpacing: true, + bracketSameLine: true, + plugins: ["@ianvs/prettier-plugin-sort-imports"], + importOrder: [ + "", // Node.js built-in modules + "", // Imports not matched by other special words or groups. + "", // Empty line + "^@plasmo/(.*)$", + "", + "^@plasmohq/(.*)$", + "", + "^@plasmo-static-common/(.*)$", + "", + "^~(.*)$", + "", + "^[./]", + "", + "__plasmo_import_module__", + "__plasmo_mount_content_script__" + ] +} diff --git a/api/messaging/jest.config.mjs b/api/messaging/jest.config.mjs index 8a82dcd40..e53ef1507 100644 --- a/api/messaging/jest.config.mjs +++ b/api/messaging/jest.config.mjs @@ -16,6 +16,6 @@ const config = { ] }, testMatch: ["**/*.test.ts"], - verbose: true, + verbose: true } export default config diff --git a/api/messaging/src/hook.ts b/api/messaging/src/hook.ts index 86d5b2ab6..04961077a 100644 --- a/api/messaging/src/hook.ts +++ b/api/messaging/src/hook.ts @@ -1,6 +1,6 @@ import { useEffect, useRef, useState } from "react" -import { type MessageName, type PlasmoMessaging, relayMessage } from "./index" +import { relayMessage, type MessageName, type PlasmoMessaging } from "./index" import { listen as messageListen } from "./message" import { listen as portListen } from "./port" import { relay } from "./relay" diff --git a/api/messaging/src/types.ts b/api/messaging/src/types.ts index b8b7b98f8..ee2e393ae 100644 --- a/api/messaging/src/types.ts +++ b/api/messaging/src/types.ts @@ -92,7 +92,9 @@ export namespace PlasmoMessaging { } export interface PortHook { - , TResponseBody = any>(name: PortName): { + , TResponseBody = any>( + name: PortName + ): { data?: TResponseBody send: (payload: TRequestBody) => void listen: ( diff --git a/api/storage b/api/storage index b3a9696ff..f50acb6b8 160000 --- a/api/storage +++ b/api/storage @@ -1 +1 @@ -Subproject commit b3a9696ffabbb0ccfe30f436b745bc638d68d868 +Subproject commit f50acb6b8da95aa56b8ee29e19553ec80fa020b4 diff --git a/cli/create-plasmo/bin/index.mjs b/cli/create-plasmo/bin/index.mjs index 4e9dd102f..a933d8eb3 100644 --- a/cli/create-plasmo/bin/index.mjs +++ b/cli/create-plasmo/bin/index.mjs @@ -1,2 +1,3 @@ #!/usr/bin/env node + import "../dist/index.js" diff --git a/cli/create-plasmo/package.json b/cli/create-plasmo/package.json index fe83ee237..98544380c 100644 --- a/cli/create-plasmo/package.json +++ b/cli/create-plasmo/package.json @@ -1,6 +1,6 @@ { "name": "create-plasmo", - "version": "0.80.0", + "version": "0.81.0", "description": "Create Plasmo Framework Browser Extension", "main": "dist/index.js", "bin": "bin/index.mjs", diff --git a/cli/create-plasmo/src/index.ts b/cli/create-plasmo/src/index.ts index f0ea53563..158deafef 100644 --- a/cli/create-plasmo/src/index.ts +++ b/cli/create-plasmo/src/index.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node +import { argv, exit } from "process" import { version } from "plasmo/package.json" import init from "plasmo/src/commands/init" -import { argv, exit } from "process" import { ErrorMessage } from "@plasmo/constants/error" import { aLog, eLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/bin/index.mjs b/cli/plasmo/bin/index.mjs index 4e9dd102f..a933d8eb3 100755 --- a/cli/plasmo/bin/index.mjs +++ b/cli/plasmo/bin/index.mjs @@ -1,2 +1,3 @@ #!/usr/bin/env node + import "../dist/index.js" diff --git a/cli/plasmo/i18n/README.ja-JP.md b/cli/plasmo/i18n/README.ja-JP.md index 5d0a08f64..bc0ea0ed8 100644 --- a/cli/plasmo/i18n/README.ja-JP.md +++ b/cli/plasmo/i18n/README.ja-JP.md @@ -81,7 +81,7 @@ pnpm dev 変更したい部分によって、以下のファイルを編集してください。 -- ポップアップ → `popup.tsx` +- ポップアップ → `popup.tsx` - 設定ページ → `options.tsx` - コンテンツスクリプト → `content.ts` - バックグランドサービスワーカー → `background.ts` diff --git a/cli/plasmo/index.mjs b/cli/plasmo/index.mjs index 27fcdffda..b579cf292 100644 --- a/cli/plasmo/index.mjs +++ b/cli/plasmo/index.mjs @@ -1,6 +1,6 @@ +import { argv, exit } from "process" import { build, context } from "esbuild" import fse from "fs-extra" -import { argv, exit } from "process" const watch = argv.includes("-w") diff --git a/cli/plasmo/package.json b/cli/plasmo/package.json index 218d47efc..e0f8e891a 100644 --- a/cli/plasmo/package.json +++ b/cli/plasmo/package.json @@ -1,6 +1,6 @@ { "name": "plasmo", - "version": "0.80.0", + "version": "0.81.0", "description": "The Plasmo Framework CLI", "publishConfig": { "types": "dist/type.d.ts" @@ -64,11 +64,12 @@ "package-json": "8.1.1", "process": "0.11.10", "semver": "7.5.4", - "sharp": "0.32.2", + "sharp": "0.32.3", "tempy": "3.1.0", "typescript": "5.1.6" }, "devDependencies": { + "vue": "3.3.4", "@plasmo/config": "workspace:*", "@plasmo/constants": "workspace:*", "@plasmo/framework-shared": "workspace:*", diff --git a/cli/plasmo/src/commands/init.ts b/cli/plasmo/src/commands/init.ts index f773b490a..f3eb03a2b 100644 --- a/cli/plasmo/src/commands/init.ts +++ b/cli/plasmo/src/commands/init.ts @@ -1,6 +1,6 @@ -import { paramCase } from "change-case" import { resolve } from "path" import { cwd } from "process" +import { paramCase } from "change-case" import { hasFlag } from "@plasmo/utils/flags" import { ensureWritableAndEmpty } from "@plasmo/utils/fs" diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-entry.ts b/cli/plasmo/src/features/background-service-worker/bgsw-entry.ts index 872e2437c..59ee221b0 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-entry.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-entry.ts @@ -1,5 +1,5 @@ -import { ensureDir, outputFile } from "fs-extra" import { relative, resolve } from "path" +import { ensureDir, outputFile } from "fs-extra" import { vLog } from "@plasmo/utils/logging" import { toPosix } from "@plasmo/utils/path" diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-main-world-script.ts b/cli/plasmo/src/features/background-service-worker/bgsw-main-world-script.ts index 27df7dd4b..504722bcd 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-main-world-script.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-main-world-script.ts @@ -1,6 +1,6 @@ +import { relative, resolve } from "path" import { camelCase } from "change-case" import { outputFile } from "fs-extra" -import { relative, resolve } from "path" import { vLog } from "@plasmo/utils/logging" import { toPosix } from "@plasmo/utils/path" diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-messaging-declaration.ts b/cli/plasmo/src/features/background-service-worker/bgsw-messaging-declaration.ts index 738683c8c..979e6086f 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-messaging-declaration.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-messaging-declaration.ts @@ -1,5 +1,5 @@ -import { outputFile } from "fs-extra" import { resolve } from "path" +import { outputFile } from "fs-extra" import type { CommonPath } from "~features/extension-devtools/common-path" diff --git a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts index 6230de42a..1398cfbb3 100644 --- a/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts +++ b/cli/plasmo/src/features/background-service-worker/bgsw-messaging.ts @@ -1,7 +1,7 @@ +import { join, resolve } from "path" import { camelCase } from "change-case" import glob from "fast-glob" import { outputFile } from "fs-extra" -import { join, resolve } from "path" import { isWriteable } from "@plasmo/utils/fs" import { vLog, wLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/src/features/env/env-config.ts b/cli/plasmo/src/features/env/env-config.ts index b54ee0a20..59e165763 100644 --- a/cli/plasmo/src/features/env/env-config.ts +++ b/cli/plasmo/src/features/env/env-config.ts @@ -1,9 +1,9 @@ // Forked from https://github.com/vercel/next.js/blob/canary/packages/next-env/index.ts +import { readFile } from "fs/promises" +import { resolve } from "path" import { constantCase } from "change-case" import dotenv from "dotenv" import { expand as dotenvExpand } from "dotenv-expand" -import { readFile } from "fs/promises" -import { resolve } from "path" import { isFile, isReadable } from "@plasmo/utils/fs" import { eLog, iLog, vLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/src/features/env/env-declaration.ts b/cli/plasmo/src/features/env/env-declaration.ts index 0367b7c8c..1dc45d77d 100644 --- a/cli/plasmo/src/features/env/env-declaration.ts +++ b/cli/plasmo/src/features/env/env-declaration.ts @@ -1,5 +1,5 @@ -import { outputFile } from "fs-extra" import { resolve } from "path" +import { outputFile } from "fs-extra" import type { PlasmoManifest } from "~features/manifest-factory/base" diff --git a/cli/plasmo/src/features/extension-devtools/content-script-config.ts b/cli/plasmo/src/features/extension-devtools/content-script-config.ts index dd9ca781f..f248ee260 100644 --- a/cli/plasmo/src/features/extension-devtools/content-script-config.ts +++ b/cli/plasmo/src/features/extension-devtools/content-script-config.ts @@ -1,6 +1,5 @@ import { readFile } from "fs/promises" -import type { Node, VariableDeclaration } from "typescript" -import typescript from "typescript" +import typescript, { type Node, type VariableDeclaration } from "typescript" import type { ManifestContentScript } from "@plasmo/constants" import { eLog, vLog } from "@plasmo/utils/logging" @@ -33,13 +32,16 @@ export const extractContentScriptConfig = async (path: string) => { const variableDeclarationMap = sourceFile.statements .filter(isVariableStatement) - .reduce((output, node) => { - node.declarationList.forEachChild((vd: VariableDeclaration) => { - output[vd.name.getText()] = vd.initializer - }) - - return output - }, {} as Record) + .reduce( + (output, node) => { + node.declarationList.forEachChild((vd: VariableDeclaration) => { + output[vd.name.getText()] = vd.initializer + }) + + return output + }, + {} as Record + ) const configAST = variableDeclarationMap["config"] diff --git a/cli/plasmo/src/features/extension-devtools/generate-icons.ts b/cli/plasmo/src/features/extension-devtools/generate-icons.ts index bce689f28..ad6e9f646 100644 --- a/cli/plasmo/src/features/extension-devtools/generate-icons.ts +++ b/cli/plasmo/src/features/extension-devtools/generate-icons.ts @@ -1,5 +1,5 @@ -import { copy, ensureDir } from "fs-extra" import { basename, resolve } from "path" +import { copy, ensureDir } from "fs-extra" import sharp from "sharp" import { find } from "@plasmo/utils/array" diff --git a/cli/plasmo/src/features/extension-devtools/package-file.ts b/cli/plasmo/src/features/extension-devtools/package-file.ts index 5ef0ad8b4..54e08feb6 100644 --- a/cli/plasmo/src/features/extension-devtools/package-file.ts +++ b/cli/plasmo/src/features/extension-devtools/package-file.ts @@ -1,5 +1,5 @@ -import { sentenceCase } from "change-case" import { userInfo } from "os" +import { sentenceCase } from "change-case" import getPackageJson, { type AbbreviatedVersion } from "package-json" import type { ExtensionManifestV3 } from "@plasmo/constants" @@ -30,7 +30,6 @@ const _generatePackage = async ({ "react-dom": "*" } as Record, devDependencies: { - "@plasmohq/prettier-plugin-sort-imports": "workspace:*", "@types/chrome": "*", "@types/node": "*", "@types/react": "*", diff --git a/cli/plasmo/src/features/extension-devtools/parse-ast.ts b/cli/plasmo/src/features/extension-devtools/parse-ast.ts index bd033d432..8bc37d8a8 100644 --- a/cli/plasmo/src/features/extension-devtools/parse-ast.ts +++ b/cli/plasmo/src/features/extension-devtools/parse-ast.ts @@ -4,15 +4,14 @@ * Adapted from https://github.com/dword-design/ts-ast-to-literal/blob/master/src/index.js * Copyright (c) Sebastian Landwehr info@sebastianlandwehr.com, MIT licensed */ -import type { - ArrayLiteralExpression, - Identifier, - LiteralExpression, - Node, - ObjectLiteralExpression, - PropertyAssignment +import typescript, { + type ArrayLiteralExpression, + type Identifier, + type LiteralExpression, + type Node, + type ObjectLiteralExpression, + type PropertyAssignment } from "typescript" -import typescript from "typescript" const { SyntaxKind } = typescript diff --git a/cli/plasmo/src/features/extension-devtools/project-path.ts b/cli/plasmo/src/features/extension-devtools/project-path.ts index 7b6c394ce..325914357 100644 --- a/cli/plasmo/src/features/extension-devtools/project-path.ts +++ b/cli/plasmo/src/features/extension-devtools/project-path.ts @@ -43,10 +43,13 @@ export enum WatchReason { type DirectoryWatchTuple = [WatchReason, string] const getWatchReasonMap = (paths: string[], reason: WatchReason) => - paths.reduce((output, path) => { - output[path] = reason - return output - }, {} as Record) + paths.reduce( + (output, path) => { + output[path] = reason + return output + }, + {} as Record + ) export const getProjectPath = ( { sourceDirectory, packageFilePath, assetsDirectory }: CommonPath, diff --git a/cli/plasmo/src/features/extension-devtools/project-watcher.ts b/cli/plasmo/src/features/extension-devtools/project-watcher.ts index 0b540ac75..6df707d0e 100644 --- a/cli/plasmo/src/features/extension-devtools/project-watcher.ts +++ b/cli/plasmo/src/features/extension-devtools/project-watcher.ts @@ -1,4 +1,4 @@ -import { type Event, subscribe } from "@parcel/watcher" +import { subscribe, type Event } from "@parcel/watcher" import { PARCEL_WATCHER_BACKEND } from "@plasmo/constants/misc" import { assertUnreachable } from "@plasmo/utils/assert" diff --git a/cli/plasmo/src/features/extension-devtools/strip-underscore.ts b/cli/plasmo/src/features/extension-devtools/strip-underscore.ts index 0823153a2..c30707eab 100644 --- a/cli/plasmo/src/features/extension-devtools/strip-underscore.ts +++ b/cli/plasmo/src/features/extension-devtools/strip-underscore.ts @@ -1,4 +1,4 @@ -import { readFile, readdir, rename, stat, writeFile } from "fs/promises" +import { readdir, readFile, rename, stat, writeFile } from "fs/promises" import { join, resolve } from "path" const stripFileUnderscore = async (filePath: string) => { diff --git a/cli/plasmo/src/features/extension-devtools/tsconfig.ts b/cli/plasmo/src/features/extension-devtools/tsconfig.ts index 64fe42644..f2927ee33 100644 --- a/cli/plasmo/src/features/extension-devtools/tsconfig.ts +++ b/cli/plasmo/src/features/extension-devtools/tsconfig.ts @@ -1,7 +1,7 @@ -import { outputFile, outputJson } from "fs-extra" import { readFile } from "fs/promises" -import json5 from "json5" import { resolve } from "path" +import { outputFile, outputJson } from "fs-extra" +import json5 from "json5" import { MESSAGING_DECLARATION } from "~features/background-service-worker/bgsw-messaging-declaration" import { PROCESS_ENV_DECLARATION } from "~features/env/env-declaration" diff --git a/cli/plasmo/src/features/extra/cache-busting.ts b/cli/plasmo/src/features/extra/cache-busting.ts index f1f0e60a6..91cc10677 100644 --- a/cli/plasmo/src/features/extra/cache-busting.ts +++ b/cli/plasmo/src/features/extra/cache-busting.ts @@ -1,6 +1,6 @@ -import { emptyDir, ensureDir } from "fs-extra" import { lstat } from "fs/promises" import { resolve } from "path" +import { emptyDir, ensureDir } from "fs-extra" import { isAccessible } from "@plasmo/utils/fs" import { vLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/src/features/extra/next-new-tab.ts b/cli/plasmo/src/features/extra/next-new-tab.ts index 29448d172..fd94d4e59 100644 --- a/cli/plasmo/src/features/extra/next-new-tab.ts +++ b/cli/plasmo/src/features/extra/next-new-tab.ts @@ -1,7 +1,7 @@ -import { sentenceCase } from "change-case" -import { copy, emptyDir, readJson, writeJson } from "fs-extra" import { mkdir } from "fs/promises" import { resolve } from "path" +import { sentenceCase } from "change-case" +import { copy, emptyDir, readJson, writeJson } from "fs-extra" import { isAccessible } from "@plasmo/utils/fs" import { sLog, vLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/src/features/helpers/create-parcel-bundler.ts b/cli/plasmo/src/features/helpers/create-parcel-bundler.ts index 406d7d209..3e74df197 100644 --- a/cli/plasmo/src/features/helpers/create-parcel-bundler.ts +++ b/cli/plasmo/src/features/helpers/create-parcel-bundler.ts @@ -1,7 +1,7 @@ +import { dirname, join, resolve } from "path" import ParcelFS from "@parcel/fs" import ParcelPM from "@parcel/package-manager" import { emptyDir, ensureDir, readJson, writeJson } from "fs-extra" -import { dirname, join, resolve } from "path" import { getFlag, hasFlag } from "@plasmo/utils/flags" diff --git a/cli/plasmo/src/features/manifest-factory/base.ts b/cli/plasmo/src/features/manifest-factory/base.ts index 60f981b72..872df5dc2 100644 --- a/cli/plasmo/src/features/manifest-factory/base.ts +++ b/cli/plasmo/src/features/manifest-factory/base.ts @@ -1,15 +1,5 @@ import { ok } from "assert" -import glob from "fast-glob" -import { - copy, - ensureDir, - existsSync, - pathExists, - readJson, - writeJson -} from "fs-extra" import { readdir } from "fs/promises" -import { hasher as createHasher } from "node-object-hash" import { basename, dirname, @@ -21,6 +11,16 @@ import { resolve } from "path" import { cwd } from "process" +import glob from "fast-glob" +import { + copy, + ensureDir, + existsSync, + pathExists, + readJson, + writeJson +} from "fs-extra" +import { hasher as createHasher } from "node-object-hash" import type { ChromeUrlOverrideType, @@ -30,8 +30,8 @@ import type { ManifestPermission } from "@plasmo/constants" import { - BuildSocketEvent, - buildBroadcast + buildBroadcast, + BuildSocketEvent } from "@plasmo/framework-shared/build-socket" import { assertTruthy } from "@plasmo/utils/assert" import { injectEnv } from "@plasmo/utils/env" @@ -39,19 +39,19 @@ import { isDirectory, isReadable } from "@plasmo/utils/fs" import { vLog } from "@plasmo/utils/logging" import { getSubExt, toPosix } from "@plasmo/utils/path" -import { type EnvConfig, loadEnvConfig } from "~features/env/env-config" +import { loadEnvConfig, type EnvConfig } from "~features/env/env-config" import { outputEnvDeclaration } from "~features/env/env-declaration" import { - type CommonPath, - getCommonPath + getCommonPath, + type CommonPath } from "~features/extension-devtools/common-path" import { extractContentScriptConfig } from "~features/extension-devtools/content-script-config" import { generateIcons } from "~features/extension-devtools/generate-icons" import type { PlasmoBundleConfig } from "~features/extension-devtools/get-bundle-config" import type { PackageJSON } from "~features/extension-devtools/package-file" import { - type ProjectPath, - getProjectPath + getProjectPath, + type ProjectPath } from "~features/extension-devtools/project-path" import { getTemplatePath } from "~features/extension-devtools/template-path" import { outputIndexDeclaration } from "~features/extension-devtools/tsconfig" @@ -61,10 +61,10 @@ import { definedTraverse } from "~features/helpers/traverse" import { Scaffolder } from "./scaffolder" import { - type UiExtMap, - type UiLibrary, getUiExtMap, - getUiLibrary + getUiLibrary, + type UiExtMap, + type UiLibrary } from "./ui-library" export const iconMap = { diff --git a/cli/plasmo/src/features/manifest-factory/mv2.ts b/cli/plasmo/src/features/manifest-factory/mv2.ts index 7dd5a5006..cb0143230 100644 --- a/cli/plasmo/src/features/manifest-factory/mv2.ts +++ b/cli/plasmo/src/features/manifest-factory/mv2.ts @@ -6,7 +6,7 @@ import { iLog } from "@plasmo/utils/logging" import type { PlasmoBundleConfig } from "~features/extension-devtools/get-bundle-config" -import { PlasmoManifest, iconMap } from "./base" +import { iconMap, PlasmoManifest } from "./base" export class PlasmoExtensionManifestMV2 extends PlasmoManifest { constructor(bundleConfig: PlasmoBundleConfig) { diff --git a/cli/plasmo/src/features/manifest-factory/mv3.ts b/cli/plasmo/src/features/manifest-factory/mv3.ts index 1ad74f715..2cc771912 100644 --- a/cli/plasmo/src/features/manifest-factory/mv3.ts +++ b/cli/plasmo/src/features/manifest-factory/mv3.ts @@ -2,7 +2,7 @@ import type { ExtensionManifestV3 } from "@plasmo/constants" import type { PlasmoBundleConfig } from "~features/extension-devtools/get-bundle-config" -import { PlasmoManifest, iconMap } from "./base" +import { iconMap, PlasmoManifest } from "./base" export class PlasmoExtensionManifestMV3 extends PlasmoManifest { constructor(bundleConfig: PlasmoBundleConfig) { diff --git a/cli/plasmo/src/features/manifest-factory/scaffolder.ts b/cli/plasmo/src/features/manifest-factory/scaffolder.ts index cf69c6127..7b009aee1 100644 --- a/cli/plasmo/src/features/manifest-factory/scaffolder.ts +++ b/cli/plasmo/src/features/manifest-factory/scaffolder.ts @@ -1,6 +1,6 @@ -import { copy, ensureDir } from "fs-extra" import { readFile, writeFile } from "fs/promises" -import { type ParsedPath, join, relative, resolve } from "path" +import { join, relative, resolve, type ParsedPath } from "path" +import { copy, ensureDir } from "fs-extra" import { find } from "@plasmo/utils/array" import { isAccessible, isFile } from "@plasmo/utils/fs" diff --git a/cli/plasmo/src/features/manifest-factory/ui-library.ts b/cli/plasmo/src/features/manifest-factory/ui-library.ts index d299afb79..f4f312bdd 100644 --- a/cli/plasmo/src/features/manifest-factory/ui-library.ts +++ b/cli/plasmo/src/features/manifest-factory/ui-library.ts @@ -1,6 +1,6 @@ -import { readJson } from "fs-extra" import { resolve } from "path" import { cwd } from "process" +import { readJson } from "fs-extra" import semver from "semver" import { assertUnreachable } from "@plasmo/utils/assert" diff --git a/cli/plasmo/src/features/manifest-factory/zip.ts b/cli/plasmo/src/features/manifest-factory/zip.ts index f5c36422d..eb0a19bd3 100644 --- a/cli/plasmo/src/features/manifest-factory/zip.ts +++ b/cli/plasmo/src/features/manifest-factory/zip.ts @@ -1,7 +1,7 @@ -import glob from "fast-glob" -import { AsyncZipDeflate, Zip } from "fflate" import { createReadStream, createWriteStream } from "fs" import { resolve } from "path" +import glob from "fast-glob" +import { AsyncZipDeflate, Zip } from "fflate" import { iLog } from "@plasmo/utils/logging" diff --git a/cli/plasmo/src/features/project-creator/from-existing-manifest.ts b/cli/plasmo/src/features/project-creator/from-existing-manifest.ts index c76d35a61..8f76a255c 100644 --- a/cli/plasmo/src/features/project-creator/from-existing-manifest.ts +++ b/cli/plasmo/src/features/project-creator/from-existing-manifest.ts @@ -1,7 +1,7 @@ -import { type Unzipped, strFromU8, unzipSync } from "fflate" -import { readJson } from "fs-extra" import { readFile } from "fs/promises" import { extname } from "path" +import { strFromU8, unzipSync, type Unzipped } from "fflate" +import { readJson } from "fs-extra" import type { ExtensionManifest, @@ -13,8 +13,8 @@ import { vLog } from "@plasmo/utils/logging" import type { CommonPath } from "~features/extension-devtools/common-path" import { - type PackageJSON, - generatePackage + generatePackage, + type PackageJSON } from "~features/extension-devtools/package-file" import type { PackageManagerInfo } from "~features/helpers/package-manager" diff --git a/cli/plasmo/src/features/project-creator/index.ts b/cli/plasmo/src/features/project-creator/index.ts index e1f90b6bc..ef2707e07 100644 --- a/cli/plasmo/src/features/project-creator/index.ts +++ b/cli/plasmo/src/features/project-creator/index.ts @@ -1,10 +1,10 @@ +import { existsSync } from "fs" +import { lstat, readFile, writeFile } from "fs/promises" +import { isAbsolute, join, relative, resolve } from "path" import spawnAsync from "@expo/spawn-async" import { sentenceCase } from "change-case" -import { existsSync } from "fs" import { copy, outputJson, readJson } from "fs-extra" -import { lstat, readFile, writeFile } from "fs/promises" import ignore from "ignore" -import { isAbsolute, join, relative, resolve } from "path" import { temporaryDirectory } from "tempy" import { getFlag, hasFlag } from "@plasmo/utils/flags" @@ -14,8 +14,8 @@ import { iLog, vLog } from "@plasmo/utils/logging" import type { CommonPath } from "~features/extension-devtools/common-path" import { generateGitIgnore } from "~features/extension-devtools/git-ignore" import { - type PackageJSON, - resolveWorkspaceToLatestSemver + resolveWorkspaceToLatestSemver, + type PackageJSON } from "~features/extension-devtools/package-file" import { getTemplatePath } from "~features/extension-devtools/template-path" import type { PackageManagerInfo } from "~features/helpers/package-manager" diff --git a/cli/plasmo/src/index.ts b/cli/plasmo/src/index.ts index 1b4886311..4028120d1 100644 --- a/cli/plasmo/src/index.ts +++ b/cli/plasmo/src/index.ts @@ -7,7 +7,7 @@ import { verbose } from "@plasmo/utils/flags" import { eLog, vLog } from "@plasmo/utils/logging" import { exitCountDown } from "@plasmo/utils/wait" -import { type ValidCommand, runMap, validCommandSet } from "~commands" +import { runMap, validCommandSet, type ValidCommand } from "~commands" import { printHeader, printHelp } from "~features/helpers/print" async function defaultMode() { diff --git a/cli/plasmo/templates/plasmo.d.ts b/cli/plasmo/templates/plasmo.d.ts index debedb2d3..cc89ebdd6 100644 --- a/cli/plasmo/templates/plasmo.d.ts +++ b/cli/plasmo/templates/plasmo.d.ts @@ -22,8 +22,7 @@ declare namespace NodeJS { PLASMO_MANIFEST_VERSION?: "mv2" | "mv3" - PLASMO_TARGET?: - | `${ProcessEnv["PLASMO_BROWSER"]}-${ProcessEnv["PLASMO_MANIFEST_VERSION"]}` + PLASMO_TARGET?: `${ProcessEnv["PLASMO_BROWSER"]}-${ProcessEnv["PLASMO_MANIFEST_VERSION"]}` PLASMO_TAG?: string } diff --git a/cli/plasmo/templates/static/common/react.ts b/cli/plasmo/templates/static/common/react.ts index eb443bd9c..e8c59685b 100644 --- a/cli/plasmo/templates/static/common/react.ts +++ b/cli/plasmo/templates/static/common/react.ts @@ -1,4 +1,4 @@ -import { type FC, Fragment, type ReactNode } from "react" +import { Fragment, type FC, type ReactNode } from "react" export const getLayout = (RawImport: any): FC<{ children: ReactNode }> => typeof RawImport.Layout === "function" diff --git a/cli/plasmo/templates/static/react17/content-script-ui-mount.tsx b/cli/plasmo/templates/static/react17/content-script-ui-mount.tsx index ed4caa0af..dd65bbe29 100644 --- a/cli/plasmo/templates/static/react17/content-script-ui-mount.tsx +++ b/cli/plasmo/templates/static/react17/content-script-ui-mount.tsx @@ -1,15 +1,11 @@ +import React from "react" +import * as ReactDOM from "react-dom" + import { createAnchorObserver, createRender } from "@plasmo-static-common/csui" import { InlineCSUIContainer, OverlayCSUIContainer } from "@plasmo-static-common/csui-container-react" -import React from "react" -import * as ReactDOM from "react-dom" - -// prettier-sort-ignore -// @ts-ignore -import * as RawMount from "__plasmo_mount_content_script__" - import { getLayout } from "@plasmo-static-common/react" import type { @@ -18,6 +14,9 @@ import type { PlasmoCSUIJSXContainer } from "~type" +// @ts-ignore +import * as RawMount from "__plasmo_mount_content_script__" + // Escape parcel's static analyzer const Mount = RawMount as PlasmoCSUI diff --git a/cli/plasmo/templates/static/react17/index.tsx b/cli/plasmo/templates/static/react17/index.tsx index 9e30b0259..39c474248 100644 --- a/cli/plasmo/templates/static/react17/index.tsx +++ b/cli/plasmo/templates/static/react17/index.tsx @@ -1,8 +1,10 @@ +import React from "react" +import * as ReactDOM from "react-dom" + import { getLayout } from "@plasmo-static-common/react" + // @ts-ignore import * as Component from "__plasmo_import_module__" -import React from "react" -import * as ReactDOM from "react-dom" let __plasmoRoot: HTMLElement = null diff --git a/cli/plasmo/templates/static/react18/content-script-ui-mount.tsx b/cli/plasmo/templates/static/react18/content-script-ui-mount.tsx index f7f6a8524..70f499039 100644 --- a/cli/plasmo/templates/static/react18/content-script-ui-mount.tsx +++ b/cli/plasmo/templates/static/react18/content-script-ui-mount.tsx @@ -1,15 +1,12 @@ +import React from "react" +import { createRoot } from "react-dom/client" + import { createAnchorObserver, createRender } from "@plasmo-static-common/csui" import { InlineCSUIContainer, OverlayCSUIContainer } from "@plasmo-static-common/csui-container-react" import { getLayout } from "@plasmo-static-common/react" -import React from "react" -import { createRoot } from "react-dom/client" - -// prettier-sort-ignore -// @ts-ignore -import * as RawMount from "__plasmo_mount_content_script__" import type { PlasmoCSUI, @@ -17,6 +14,9 @@ import type { PlasmoCSUIJSXContainer } from "~type" +// @ts-ignore +import * as RawMount from "__plasmo_mount_content_script__" + // Escape parcel's static analyzer const Mount = RawMount as PlasmoCSUI diff --git a/cli/plasmo/templates/static/react18/index.tsx b/cli/plasmo/templates/static/react18/index.tsx index 965bef022..733cf65e3 100644 --- a/cli/plasmo/templates/static/react18/index.tsx +++ b/cli/plasmo/templates/static/react18/index.tsx @@ -1,8 +1,10 @@ +import React from "react" +import { createRoot } from "react-dom/client" + import { getLayout } from "@plasmo-static-common/react" + // @ts-ignore import * as Component from "__plasmo_import_module__" -import React from "react" -import { createRoot } from "react-dom/client" let __plasmoRoot: HTMLElement = null diff --git a/cli/plasmo/templates/static/svelte4/content-script-ui-mount.ts b/cli/plasmo/templates/static/svelte4/content-script-ui-mount.ts index c4430cdf6..ea2b25a44 100644 --- a/cli/plasmo/templates/static/svelte4/content-script-ui-mount.ts +++ b/cli/plasmo/templates/static/svelte4/content-script-ui-mount.ts @@ -4,16 +4,15 @@ import { createOverlayCSUIContainer } from "@plasmo-static-common/csui-container-vanilla" -// prettier-sort-ignore -// @ts-ignore -import * as RawMount from "__plasmo_mount_content_script__" - import type { PlasmoCSUI, PlasmoCSUIAnchor, PlasmoCSUIHTMLContainer } from "~type" +// @ts-ignore +import * as RawMount from "__plasmo_mount_content_script__" + // Escape parcel's static analyzer const Mount = RawMount as PlasmoCSUI diff --git a/cli/plasmo/templates/static/vue3/content-script-ui-mount.ts b/cli/plasmo/templates/static/vue3/content-script-ui-mount.ts index e4d5afde1..ef2c0a301 100644 --- a/cli/plasmo/templates/static/vue3/content-script-ui-mount.ts +++ b/cli/plasmo/templates/static/vue3/content-script-ui-mount.ts @@ -1,18 +1,10 @@ +import { createApp } from "vue" + import { createAnchorObserver, createRender } from "@plasmo-static-common/csui" import { createInlineCSUIContainer, createOverlayCSUIContainer } from "@plasmo-static-common/csui-container-vanilla" -// @ts-ignore -import { createApp } from "vue" - -// prettier-sort-ignore -// @ts-ignore -import RawMount from "__plasmo_mount_content_script__" - -// prettier-sort-ignore -// @ts-ignore -import SfcStyleContent from "style-raw:__plasmo_mount_content_script__" import type { PlasmoCSUI, @@ -20,6 +12,11 @@ import type { PlasmoCSUIHTMLContainer } from "~type" +// @ts-ignore +import RawMount from "__plasmo_mount_content_script__" +// @ts-ignore +import SfcStyleContent from "style-raw:__plasmo_mount_content_script__" + // Escape parcel's static analyzer const Mount = (RawMount.plasmo || {}) as PlasmoCSUI @@ -48,9 +45,8 @@ const render = createRender( rootContainer.appendChild(mountPoint) const app = createApp(RawMount) - app.mount(mountPoint, { - anchor - }) + app.config.globalProperties.$anchor = anchor + app.mount(mountPoint) break } case "overlay": { @@ -74,9 +70,8 @@ const render = createRender( rootContainer.appendChild(mountPoint) const app = createApp(RawMount) - app.mount(mountPoint, { - anchor: innerAnchor - }) + app.config.globalProperties.$anchor = innerAnchor + app.mount(mountPoint) }) break } diff --git a/cli/plasmo/templates/static/vue3/index.ts b/cli/plasmo/templates/static/vue3/index.ts index 427c729b3..f42f46934 100644 --- a/cli/plasmo/templates/static/vue3/index.ts +++ b/cli/plasmo/templates/static/vue3/index.ts @@ -1,7 +1,8 @@ // @ts-nocheck -import * as Component from "__plasmo_import_module__" import { createApp } from "vue" +import * as Component from "__plasmo_import_module__" + document.addEventListener("DOMContentLoaded", () => { const app = createApp(Component.default) Component.default.prepare?.(app) diff --git a/core/parcel-bundler/src/create-ideal-graph.ts b/core/parcel-bundler/src/create-ideal-graph.ts index a6c5d52f2..f12d8b389 100644 --- a/core/parcel-bundler/src/create-ideal-graph.ts +++ b/core/parcel-bundler/src/create-ideal-graph.ts @@ -1,7 +1,7 @@ +import invariant from "assert" import { ALL_EDGE_TYPES, ContentGraph, Graph, NodeId } from "@parcel/graph" import type { Asset, Dependency, MutableBundleGraph } from "@parcel/types" import { DefaultMap, setEqual, setIntersect, setUnion } from "@parcel/utils" -import invariant from "assert" import nullthrows from "nullthrows" import { canMerge } from "./can-merge" @@ -9,11 +9,13 @@ import { createBundle } from "./create-bundle" import { getReachableBundleRoots } from "./get-reachable-bundle-root" import { removeBundle } from "./remove-bundle" import { + dependencyPriorityEdges, + type Bundle, type BundleRoot, - type ResolvedBundlerConfig, - dependencyPriorityEdges + type DependencyBundleGraph, + type IdealGraph, + type ResolvedBundlerConfig } from "./types" -import type { Bundle, DependencyBundleGraph, IdealGraph } from "./types" export function createIdealGraph( assetGraph: MutableBundleGraph, diff --git a/core/parcel-bundler/src/decorate-legacy-graph.ts b/core/parcel-bundler/src/decorate-legacy-graph.ts index 44bacd230..708496404 100644 --- a/core/parcel-bundler/src/decorate-legacy-graph.ts +++ b/core/parcel-bundler/src/decorate-legacy-graph.ts @@ -1,10 +1,10 @@ +import invariant from "assert" import { ALL_EDGE_TYPES, NodeId } from "@parcel/graph" import type { BundleGroup, Bundle as LegacyBundle, MutableBundleGraph } from "@parcel/types" -import invariant from "assert" import nullthrows from "nullthrows" import type { Bundle, IdealGraph } from "./types" diff --git a/core/parcel-bundler/src/get-entry-by-target.ts b/core/parcel-bundler/src/get-entry-by-target.ts index 95325da9b..8667c05ca 100644 --- a/core/parcel-bundler/src/get-entry-by-target.ts +++ b/core/parcel-bundler/src/get-entry-by-target.ts @@ -1,7 +1,7 @@ // @ts-nocheck +import invariant from "assert" import type { Asset, Dependency, MutableBundleGraph } from "@parcel/types" import { DefaultMap } from "@parcel/utils" -import invariant from "assert" export function getEntryByTarget( bundleGraph: MutableBundleGraph diff --git a/core/parcel-bundler/src/remove-bundle.ts b/core/parcel-bundler/src/remove-bundle.ts index 3422b9fc0..fb9f65d1c 100644 --- a/core/parcel-bundler/src/remove-bundle.ts +++ b/core/parcel-bundler/src/remove-bundle.ts @@ -1,7 +1,7 @@ +import invariant from "assert" import type { Graph, NodeId } from "@parcel/graph" import type { Asset, Dependency } from "@parcel/types" import type { DefaultMap } from "@parcel/utils" -import invariant from "assert" import nullthrows from "nullthrows" import type { Bundle } from "./types" diff --git a/core/parcel-config/package.json b/core/parcel-config/package.json index 694efd998..c3afb3050 100644 --- a/core/parcel-config/package.json +++ b/core/parcel-config/package.json @@ -1,6 +1,6 @@ { "name": "@plasmohq/parcel-config", - "version": "0.38.4", + "version": "0.39.0", "license": "MIT", "repository": { "type": "git", diff --git a/core/parcel-core/src/index.ts b/core/parcel-core/src/index.ts index c4faf7f92..6200125b7 100644 --- a/core/parcel-core/src/index.ts +++ b/core/parcel-core/src/index.ts @@ -3,29 +3,31 @@ * MIT License */ +import invariant from "assert" import { createWorkerFarm } from "@parcel/core" -import ParcelConfig from "@parcel/core/lib/ParcelConfig" -import ReporterRunner from "@parcel/core/lib/ReporterRunner" -import RequestTracker, { - getWatcherOptions, - requestGraphEdgeTypes -} from "@parcel/core/lib/RequestTracker" import dumpGraphToGraphViz from "@parcel/core/lib/dumpGraphToGraphViz" +import ParcelConfig from "@parcel/core/lib/ParcelConfig" import { toProjectPath } from "@parcel/core/lib/projectPath" import { assetFromValue } from "@parcel/core/lib/public/Asset" import { PackagedBundle } from "@parcel/core/lib/public/Bundle" import BundleGraph from "@parcel/core/lib/public/BundleGraph" +import ReporterRunner from "@parcel/core/lib/ReporterRunner" import createParcelBuildRequest from "@parcel/core/lib/requests/ParcelBuildRequest" import { loadParcelConfig } from "@parcel/core/lib/requests/ParcelConfigRequest" import createValidationRequest from "@parcel/core/lib/requests/ValidationRequest" +import RequestTracker, { + getWatcherOptions, + requestGraphEdgeTypes +} from "@parcel/core/lib/RequestTracker" import { BuildAbortError, registerCoreWithSerializer } from "@parcel/core/lib/utils" -import type { Diagnostic } from "@parcel/diagnostic" -import ThrowableDiagnostic, { anyToDiagnostic } from "@parcel/diagnostic" -import { ValueEmitter } from "@parcel/events" -import { Disposable } from "@parcel/events" +import ThrowableDiagnostic, { + anyToDiagnostic, + type Diagnostic +} from "@parcel/diagnostic" +import { Disposable, ValueEmitter } from "@parcel/events" import { init as initHash } from "@parcel/hash" import logger from "@parcel/logger" import { init as initSourcemaps } from "@parcel/source-map" @@ -33,17 +35,16 @@ import type { AsyncSubscription, BuildEvent, BuildSuccessEvent, - PackagedBundle as IPackagedBundle, - InitialParcelOptions + InitialParcelOptions, + PackagedBundle as IPackagedBundle } from "@parcel/types" import { PromiseQueue } from "@parcel/utils" import { type Options as ParcelWatcherOptions } from "@parcel/watcher" // eslint-disable-next-line no-unused-vars import { AbortController } from "abortcontroller-polyfill/dist/cjs-ponyfill" -import invariant from "assert" import nullthrows from "nullthrows" -import { type ResolvedOptions, resolveOptions } from "./resolve-options" +import { resolveOptions, type ResolvedOptions } from "./resolve-options" registerCoreWithSerializer() diff --git a/core/parcel-core/src/resolve-options.ts b/core/parcel-core/src/resolve-options.ts index 5b56ad22b..7d858bef2 100644 --- a/core/parcel-core/src/resolve-options.ts +++ b/core/parcel-core/src/resolve-options.ts @@ -3,11 +3,11 @@ * MIT License */ +import path from "path" import { FSCache, LMDBCache } from "@parcel/cache" import { toProjectPath } from "@parcel/core/lib/projectPath" import { getResolveFrom } from "@parcel/core/lib/requests/ParcelConfigRequest" -import type { FileSystem } from "@parcel/fs" -import { NodeFS } from "@parcel/fs" +import { NodeFS, type FileSystem } from "@parcel/fs" import { hashString } from "@parcel/hash" import { NodePackageManager } from "@parcel/package-manager" import type { @@ -17,7 +17,6 @@ import type { InitialServerOptions } from "@parcel/types" import { getRootDir, isGlob, relativePath, resolveConfig } from "@parcel/utils" -import path from "path" // Default cache directory name const LOCK_FILE_NAMES = ["yarn.lock", "package-lock.json", "pnpm-lock.yaml"] diff --git a/core/parcel-packager/src/index.ts b/core/parcel-packager/src/index.ts index ff94d41e3..48b41aad4 100644 --- a/core/parcel-packager/src/index.ts +++ b/core/parcel-packager/src/index.ts @@ -5,10 +5,10 @@ * Based on: https://github.com/parcel-bundler/parcel/tree/v2/packages/packagers/webextension * MIT License */ +import assert from "assert" import { Packager } from "@parcel/plugin" import type { Asset } from "@parcel/types" import { replaceURLReferences } from "@parcel/utils" -import assert from "assert" import type { ExtensionManifest } from "@plasmo/constants" import { vLog } from "@plasmo/utils/logging" diff --git a/core/parcel-resolver-post/src/handle-ts-path.ts b/core/parcel-resolver-post/src/handle-ts-path.ts index abf9e1278..5bcf0e80a 100644 --- a/core/parcel-resolver-post/src/handle-ts-path.ts +++ b/core/parcel-resolver-post/src/handle-ts-path.ts @@ -7,8 +7,8 @@ * MIT License */ -import { loadConfig } from "@parcel/utils" import { dirname, extname, join, resolve } from "path" +import { loadConfig } from "@parcel/utils" import type { CompilerOptions } from "typescript" import { isReadable } from "@plasmo/utils/fs" diff --git a/core/parcel-resolver-post/src/utils.ts b/core/parcel-resolver-post/src/utils.ts index 1eb6523fb..84676d092 100644 --- a/core/parcel-resolver-post/src/utils.ts +++ b/core/parcel-resolver-post/src/utils.ts @@ -1,8 +1,8 @@ -import type { ResolveResult } from "@parcel/types" import { statSync } from "fs" import { resolve } from "path" +import type { ResolveResult } from "@parcel/types" -import { type ResolverResult, relevantExtensionList } from "./shared" +import { relevantExtensionList, type ResolverResult } from "./shared" const WEBPACK_IMPORT_REGEX = /\S+-loader\S*!\S+/g diff --git a/core/parcel-resolver/package.json b/core/parcel-resolver/package.json index 1ca1ab491..a7d06a593 100644 --- a/core/parcel-resolver/package.json +++ b/core/parcel-resolver/package.json @@ -36,7 +36,7 @@ "crc-32": "1.2.2", "crypto-browserify": "3.12.0", "domain-browser": "4.22.0", - "esbuild": "0.18.12", + "esbuild": "0.18.13", "events": "3.3.0", "https-browserify": "1.0.0", "os-browserify": "0.3.0", diff --git a/core/parcel-resolver/src/handle-absolute-root.ts b/core/parcel-resolver/src/handle-absolute-root.ts index 57821c091..f6aeebdc0 100644 --- a/core/parcel-resolver/src/handle-absolute-root.ts +++ b/core/parcel-resolver/src/handle-absolute-root.ts @@ -1,10 +1,10 @@ import { extname, isAbsolute, resolve } from "path" import { - type ResolverProps, - type ResolverResult, relevantExtensionList, - resolveSourceIndex + resolveSourceIndex, + type ResolverProps, + type ResolverResult } from "./shared" export async function handleAbsoluteRoot({ diff --git a/core/parcel-resolver/src/handle-alias.ts b/core/parcel-resolver/src/handle-alias.ts index 12e0e2425..7738bc561 100644 --- a/core/parcel-resolver/src/handle-alias.ts +++ b/core/parcel-resolver/src/handle-alias.ts @@ -2,7 +2,7 @@ import { resolve } from "path" import { isReadable } from "@plasmo/utils/fs" -import { type ResolverProps, type ResolverResult, state } from "./shared" +import { state, type ResolverProps, type ResolverResult } from "./shared" export async function handleAlias({ specifier diff --git a/core/parcel-resolver/src/handle-plasmo-internal.ts b/core/parcel-resolver/src/handle-plasmo-internal.ts index 3c4c6a302..6cf23da09 100644 --- a/core/parcel-resolver/src/handle-plasmo-internal.ts +++ b/core/parcel-resolver/src/handle-plasmo-internal.ts @@ -1,10 +1,10 @@ import { resolve } from "path" import { - type ResolverProps, - type ResolverResult, resolveSourceIndex, - state + state, + type ResolverProps, + type ResolverResult } from "./shared" const resolveByPrefix = (specifier = "", prefix = "", prefixPath = "") => { diff --git a/core/parcel-resolver/src/handle-polyfill.ts b/core/parcel-resolver/src/handle-polyfill.ts index 987fde8ee..fa4a21cef 100644 --- a/core/parcel-resolver/src/handle-polyfill.ts +++ b/core/parcel-resolver/src/handle-polyfill.ts @@ -1,4 +1,4 @@ -import { type ResolverProps, type ResolverResult, state } from "./shared" +import { state, type ResolverProps, type ResolverResult } from "./shared" export async function handlePolyfill({ specifier diff --git a/core/parcel-resolver/src/handle-remote-caching.ts b/core/parcel-resolver/src/handle-remote-caching.ts index ec984b34f..26d6f8722 100644 --- a/core/parcel-resolver/src/handle-remote-caching.ts +++ b/core/parcel-resolver/src/handle-remote-caching.ts @@ -1,14 +1,14 @@ -import { hashString } from "@parcel/hash" import { resolve } from "path" +import { hashString } from "@parcel/hash" import { injectEnv } from "@plasmo/utils/env" import { vLog } from "@plasmo/utils/logging" import { - type ResolverProps, - type ResolverResult, relevantExtensionList, - state + state, + type ResolverProps, + type ResolverResult } from "./shared" const cookCode = async (target: URL, code: string) => { diff --git a/core/parcel-resolver/src/handle-tilde-src.ts b/core/parcel-resolver/src/handle-tilde-src.ts index b1e7162b8..7cb1c560e 100644 --- a/core/parcel-resolver/src/handle-tilde-src.ts +++ b/core/parcel-resolver/src/handle-tilde-src.ts @@ -1,11 +1,11 @@ import { extname, resolve } from "path" import { - type ResolverProps, - type ResolverResult, relevantExtensionList, relevantExtensionSet, - resolveSourceIndex + resolveSourceIndex, + type ResolverProps, + type ResolverResult } from "./shared" export async function handleTildeSrc({ diff --git a/core/parcel-resolver/src/shared.ts b/core/parcel-resolver/src/shared.ts index 40cce261d..8e840f43e 100644 --- a/core/parcel-resolver/src/shared.ts +++ b/core/parcel-resolver/src/shared.ts @@ -1,10 +1,10 @@ +import { statSync } from "fs" +import { join, resolve } from "path" import type { Resolver } from "@parcel/plugin" import type { ResolveResult } from "@parcel/types" import glob from "fast-glob" -import { statSync } from "fs" import { readJson } from "fs-extra" import type { Got } from "got" -import { join, resolve } from "path" import { vLog } from "@plasmo/utils/logging" import { toPosix } from "@plasmo/utils/path" diff --git a/core/parcel-runtime/src/index.ts b/core/parcel-runtime/src/index.ts index 24cbdf6a3..9e8a4437f 100644 --- a/core/parcel-runtime/src/index.ts +++ b/core/parcel-runtime/src/index.ts @@ -1,13 +1,13 @@ -import { Runtime } from "@parcel/plugin" import fs from "fs" import path, { basename, dirname, join } from "path" +import { Runtime } from "@parcel/plugin" import { vLog } from "@plasmo/utils/logging" import { + plasmoRuntimeList, type PlasmoRuntime, - type RuntimeData, - plasmoRuntimeList + type RuntimeData } from "./types" const devRuntimeMap = plasmoRuntimeList.reduce( diff --git a/core/parcel-runtime/src/runtimes/background-service-runtime.ts b/core/parcel-runtime/src/runtimes/background-service-runtime.ts index 78cbb47d1..4a0ad8c13 100644 --- a/core/parcel-runtime/src/runtimes/background-service-runtime.ts +++ b/core/parcel-runtime/src/runtimes/background-service-runtime.ts @@ -9,10 +9,10 @@ import { keepAlive } from "@plasmohq/persistent/background" import type { BackgroundMessage } from "../types" import { - PAGE_PORT_PREFIX, - SCRIPT_PORT_PREFIX, extCtx, - runtimeData + PAGE_PORT_PREFIX, + runtimeData, + SCRIPT_PORT_PREFIX } from "../utils/0-patch-module" import { pollingDevServer } from "../utils/bgsw" import { isDependencyOfBundle } from "../utils/hmr-check" diff --git a/core/parcel-runtime/src/runtimes/page-runtime.ts b/core/parcel-runtime/src/runtimes/page-runtime.ts index c8a323453..365a5f39c 100644 --- a/core/parcel-runtime/src/runtimes/page-runtime.ts +++ b/core/parcel-runtime/src/runtimes/page-runtime.ts @@ -2,8 +2,8 @@ import { vLog } from "@plasmo/utils/logging" import type { BackgroundMessage } from "../types" import { - PAGE_PORT_PREFIX, extCtx, + PAGE_PORT_PREFIX, runtimeData, triggerReload } from "../utils/0-patch-module" diff --git a/core/parcel-runtime/src/runtimes/script-runtime.ts b/core/parcel-runtime/src/runtimes/script-runtime.ts index 929185657..e01b840d3 100644 --- a/core/parcel-runtime/src/runtimes/script-runtime.ts +++ b/core/parcel-runtime/src/runtimes/script-runtime.ts @@ -11,9 +11,9 @@ import { vLog } from "@plasmo/utils/logging" import type { BackgroundMessage } from "../types" import { - SCRIPT_PORT_PREFIX, extCtx, - runtimeData + runtimeData, + SCRIPT_PORT_PREFIX } from "../utils/0-patch-module" import { isDependencyOfBundle } from "../utils/hmr-check" import { injectHmrSocket } from "../utils/inject-socket" diff --git a/core/parcel-transformer-inline-css/src/index.ts b/core/parcel-transformer-inline-css/src/index.ts index 6e630b7b1..d59108804 100644 --- a/core/parcel-transformer-inline-css/src/index.ts +++ b/core/parcel-transformer-inline-css/src/index.ts @@ -6,10 +6,10 @@ * MIT License */ +import { relative } from "path" import { Transformer } from "@parcel/plugin" import { remapSourceLocation } from "@parcel/utils" import { transform } from "lightningcss" -import { relative } from "path" import { getTargets } from "./get-tagets" diff --git a/core/parcel-transformer-manifest/src/handle-deep-loc.ts b/core/parcel-transformer-manifest/src/handle-deep-loc.ts index 853b9cd56..f1bc93032 100644 --- a/core/parcel-transformer-manifest/src/handle-deep-loc.ts +++ b/core/parcel-transformer-manifest/src/handle-deep-loc.ts @@ -1,5 +1,5 @@ -import { getJSONSourceLocation } from "@parcel/diagnostic" import { extname } from "path" +import { getJSONSourceLocation } from "@parcel/diagnostic" import { vLog } from "@plasmo/utils/logging" diff --git a/core/parcel-transformer-manifest/src/handle-dictionaries.ts b/core/parcel-transformer-manifest/src/handle-dictionaries.ts index c5afc198a..44bb6d941 100644 --- a/core/parcel-transformer-manifest/src/handle-dictionaries.ts +++ b/core/parcel-transformer-manifest/src/handle-dictionaries.ts @@ -1,5 +1,5 @@ -import ThrowableDiagnostic, { getJSONSourceLocation } from "@parcel/diagnostic" import path from "path" +import ThrowableDiagnostic, { getJSONSourceLocation } from "@parcel/diagnostic" import { getState } from "./state" diff --git a/core/parcel-transformer-manifest/src/state.ts b/core/parcel-transformer-manifest/src/state.ts index c9b8856fb..febf513a4 100644 --- a/core/parcel-transformer-manifest/src/state.ts +++ b/core/parcel-transformer-manifest/src/state.ts @@ -1,12 +1,12 @@ +import { dirname, resolve } from "path" import type { Mapping } from "@mischnic/json-sourcemap" import type { MutableAsset, PluginOptions, TransformerResult } from "@parcel/types" -import { dirname, resolve } from "path" -import type { MV2Data, ManifestData } from "./schema" +import type { ManifestData, MV2Data } from "./schema" type ExtraAsset = TransformerResult diff --git a/core/parcel-transformer-svelte/src/index.ts b/core/parcel-transformer-svelte/src/index.ts index a346d9d06..ffbf264c4 100644 --- a/core/parcel-transformer-svelte/src/index.ts +++ b/core/parcel-transformer-svelte/src/index.ts @@ -9,7 +9,7 @@ import ThrowableDiagnostic from "@parcel/diagnostic" import { Transformer } from "@parcel/plugin" import { relativeUrl } from "@parcel/utils" -import { type CompileOptions, compile, preprocess } from "svelte/compiler" +import { compile, preprocess, type CompileOptions } from "svelte/compiler" import { convertError } from "./convert-error" import { extendSourceMap } from "./source-map" diff --git a/core/parcel-transformer-svelte/src/source-map.ts b/core/parcel-transformer-svelte/src/source-map.ts index edb600b44..a129889a4 100644 --- a/core/parcel-transformer-svelte/src/source-map.ts +++ b/core/parcel-transformer-svelte/src/source-map.ts @@ -6,8 +6,8 @@ * Copyright (c) 2023 Christoph Hommelsheim * MIT License */ -import SourceMap from "@parcel/source-map" import { dirname, isAbsolute, join } from "path" +import SourceMap from "@parcel/source-map" import type { Options } from "./types" diff --git a/core/parcel-transformer-vue/package.json b/core/parcel-transformer-vue/package.json index aa20f7136..4c68aeb21 100644 --- a/core/parcel-transformer-vue/package.json +++ b/core/parcel-transformer-vue/package.json @@ -1,6 +1,6 @@ { "name": "@plasmohq/parcel-transformer-vue", - "version": "0.4.1", + "version": "0.5.0", "description": "Plasmo Parcel Transformer for Vue", "files": [ "dist" diff --git a/core/parcel-transformer-vue/src/index.ts b/core/parcel-transformer-vue/src/index.ts index e71b985d1..170020e1f 100644 --- a/core/parcel-transformer-vue/src/index.ts +++ b/core/parcel-transformer-vue/src/index.ts @@ -5,10 +5,11 @@ * Based on: https://github.com/parcel-bundler/parcel/tree/v2/packages/transformers/vue * MIT License */ +import { basename, dirname, extname, relative } from "path" import ThrowableDiagnostic, { - type Diagnostic, escapeMarkdown, - md + md, + type Diagnostic } from "@parcel/diagnostic" import { Transformer } from "@parcel/plugin" import SourceMap from "@parcel/source-map" @@ -16,7 +17,6 @@ import type { TransformerResult } from "@parcel/types" import { hashObject } from "@parcel/utils" import * as compiler from "@vue/compiler-sfc" import nullthrows from "nullthrows" -import { basename, dirname, extname, relative } from "path" import semver from "semver" import consolidate from "@plasmohq/consolidate" diff --git a/examples b/examples index a26cdd58a..915ccca4a 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit a26cdd58ac5c90e46e786ac2dd1b71fa0e9c7b97 +Subproject commit 915ccca4a31387d4d7263c9add094fd9fa5813b4 diff --git a/package.json b/package.json index 4eee37628..7df7e1c0e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "publish:cli": "pnpm --filter \"./cli/*\" publish", "publish:cli:lab": "pnpm --filter \"./cli/*\" publish --no-git-checks --tag lab", "publish:lab": "run-s publish:packages publish:cli:lab", - "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "format": "prettier --write \"**/*.{ts,tsx,md,mjs}\"", "### version script usage example": "pnpm v:cli patch", "v:packages": "pnpm --filter \"./packages/**\" --parallel -r exec pnpm version --commit-hooks false --git-tag-version false --workspaces-update", "v:core": "pnpm --filter \"./core/**\" --parallel -r exec pnpm version --commit-hooks false --git-tag-version false --workspaces-update", @@ -36,8 +36,8 @@ } }, "devDependencies": { - "@plasmohq/prettier-plugin-sort-imports": "workspace:*", "@plasmohq/rps": "workspace:*", + "@ianvs/prettier-plugin-sort-imports": "4.1.0", "@types/fs-extra": "11.0.1", "@types/inquirer": "9.0.3", "@types/node": "20.4.2", @@ -47,15 +47,15 @@ "@types/semver": "7.5.0", "@types/uuid": "9.0.2", "@types/ws": "8.5.5", - "esbuild": "0.18.12", - "eslint": "8.44.0", + "esbuild": "0.18.13", + "eslint": "8.45.0", "eslint-config-prettier": "8.8.0", "eslint-plugin-react": "7.32.2", "fs-extra": "11.1.1", "prettier": "3.0.0", - "sharp": "0.32.2", + "sharp": "0.32.3", "tsup": "7.1.0", - "turbo": "1.10.6" + "turbo": "1.10.7" }, "engines": { "npm": ">=9.5.0", diff --git a/packages/gcp-refresh-token b/packages/gcp-refresh-token index 8d84bd988..f729d911f 160000 --- a/packages/gcp-refresh-token +++ b/packages/gcp-refresh-token @@ -1 +1 @@ -Subproject commit 8d84bd988c0f33c94f1cddc6199ae5bcc5f54991 +Subproject commit f729d911f0edde5bfe1b899b696a918d632709e7 diff --git a/packages/init/package.json b/packages/init/package.json index 17b392cc6..69d2333fb 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -1,6 +1,6 @@ { "name": "@plasmohq/init", - "version": "0.6.5", + "version": "0.7.0", "description": "Plasmo init template files", "files": [ "entries", diff --git a/packages/init/templates/.prettierrc.cjs b/packages/init/templates/.prettierrc.cjs deleted file mode 100644 index ee0bf6bd5..000000000 --- a/packages/init/templates/.prettierrc.cjs +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @type {import('prettier').Options} - */ -module.exports = { - printWidth: 80, - tabWidth: 2, - useTabs: false, - semi: false, - singleQuote: false, - trailingComma: "none", - bracketSpacing: true, - bracketSameLine: true, - plugins: [require.resolve("@plasmohq/prettier-plugin-sort-imports")], - importOrder: ["^@plasmohq/(.*)$", "^~(.*)$", "^[./]"], - importOrderSeparation: true, - importOrderSortSpecifiers: true -} diff --git a/packages/permission-ui b/packages/permission-ui index b538ccdf9..86c2466b9 160000 --- a/packages/permission-ui +++ b/packages/permission-ui @@ -1 +1 @@ -Subproject commit b538ccdf9de65a66a296d8ee77d92363e13268c1 +Subproject commit 86c2466b9f6973839dffc590bb5688505cba130e diff --git a/packages/prettier-plugin-sort-imports b/packages/prettier-plugin-sort-imports deleted file mode 160000 index af1983064..000000000 --- a/packages/prettier-plugin-sort-imports +++ /dev/null @@ -1 +0,0 @@ -Subproject commit af1983064c8f87b47d119865fd3a2cd7950bbaa8 diff --git a/packages/puro b/packages/puro index c6438495b..66dc2c636 160000 --- a/packages/puro +++ b/packages/puro @@ -1 +1 @@ -Subproject commit c6438495b58f51a8f3972c445f7b422cb461dbc7 +Subproject commit 66dc2c6367900e1a46aece882fa6107634b3c3b3 diff --git a/packages/rps b/packages/rps index fe73a7e0b..e4619440d 160000 --- a/packages/rps +++ b/packages/rps @@ -1 +1 @@ -Subproject commit fe73a7e0b8c1d752020787398c68064425224d3b +Subproject commit e4619440d66aeaf1862173d3a587d3160465b851 diff --git a/packages/use-hashed-state b/packages/use-hashed-state index 3a833bfd7..3c893f62e 160000 --- a/packages/use-hashed-state +++ b/packages/use-hashed-state @@ -1 +1 @@ -Subproject commit 3a833bfd727d3d51de36313511ba86d0a0fe9f4e +Subproject commit 3c893f62ef13aa3f94f4b1ff7d1a87b69caf12e1 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edc371818..5d5a8880e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,9 +12,9 @@ importers: .: devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@plasmohq/rps': specifier: workspace:* version: link:packages/rps @@ -46,17 +46,17 @@ importers: specifier: 8.5.5 version: 8.5.5 esbuild: - specifier: 0.18.12 - version: 0.18.12 + specifier: 0.18.13 + version: 0.18.13 eslint: - specifier: 8.44.0 - version: 8.44.0 + specifier: 8.45.0 + version: 8.45.0 eslint-config-prettier: specifier: 8.8.0 - version: 8.8.0(eslint@8.44.0) + version: 8.8.0(eslint@8.45.0) eslint-plugin-react: specifier: 7.32.2 - version: 7.32.2(eslint@8.44.0) + version: 7.32.2(eslint@8.45.0) fs-extra: specifier: 11.1.1 version: 11.1.1 @@ -64,14 +64,14 @@ importers: specifier: 3.0.0 version: 3.0.0 sharp: - specifier: 0.32.2 - version: 0.32.2 + specifier: 0.32.3 + version: 0.32.3 tsup: specifier: 7.1.0 version: 7.1.0(@swc/core@1.3.69) turbo: - specifier: 1.10.6 - version: 1.10.6 + specifier: 1.10.7 + version: 1.10.7 api/messaging: dependencies: @@ -221,9 +221,6 @@ importers: '@jest/types': specifier: 29.6.1 version: 29.6.1 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports '@plasmohq/rps': specifier: workspace:* version: link:../../packages/rps @@ -376,8 +373,8 @@ importers: specifier: 7.5.4 version: 7.5.4 sharp: - specifier: 0.32.2 - version: 0.32.2 + specifier: 0.32.3 + version: 0.32.3 tempy: specifier: 3.1.0 version: 3.1.0 @@ -397,6 +394,9 @@ importers: '@plasmo/utils': specifier: workspace:* version: link:../../packages/utils + vue: + specifier: 3.3.4 + version: 3.3.4 core/parcel-bundler: dependencies: @@ -790,8 +790,8 @@ importers: specifier: 4.22.0 version: 4.22.0 esbuild: - specifier: 0.18.12 - version: 0.18.12 + specifier: 0.18.13 + version: 0.18.13 events: specifier: 3.3.0 version: 3.3.0 @@ -1098,6 +1098,43 @@ importers: specifier: 7.1.0 version: 7.1.0(@swc/core@1.3.69) + examples/with-ai: + dependencies: + compromise: + specifier: 14.9.0 + version: 14.9.0 + plasmo: + specifier: workspace:* + version: link:../../cli/plasmo + react: + specifier: 18.2.0 + version: 18.2.0 + react-dom: + specifier: 18.2.0 + version: 18.2.0(react@18.2.0) + devDependencies: + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) + '@types/chrome': + specifier: 0.0.241 + version: 0.0.241 + '@types/node': + specifier: 20.4.2 + version: 20.4.2 + '@types/react': + specifier: 18.2.15 + version: 18.2.15 + '@types/react-dom': + specifier: 18.2.7 + version: 18.2.7 + prettier: + specifier: 3.0.0 + version: 3.0.0 + typescript: + specifier: 5.1.6 + version: 5.1.6 + examples/with-antd: dependencies: '@ant-design/cssinjs': @@ -1116,9 +1153,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1159,9 +1196,9 @@ importers: specifier: 3.0.0 version: 3.0.0 devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1193,9 +1230,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1227,9 +1264,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1261,9 +1298,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1289,9 +1326,9 @@ importers: specifier: workspace:* version: link:../../cli/plasmo devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1317,9 +1354,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1363,9 +1400,9 @@ importers: '@babel/core': specifier: 7.22.9 version: 7.22.9 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1397,9 +1434,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1434,9 +1471,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1474,9 +1511,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1508,9 +1545,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1545,9 +1582,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1585,15 +1622,15 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@jest/globals': specifier: 29.6.1 version: 29.6.1 '@jest/types': specifier: 29.6.1 version: 29.6.1 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports '@testing-library/react': specifier: 14.0.0 version: 14.0.0(react-dom@18.2.0)(react@18.2.0) @@ -1623,7 +1660,7 @@ importers: version: 3.0.0 ts-jest: specifier: 29.1.1 - version: 29.1.1(@babel/core@7.22.9)(@jest/types@29.6.1)(esbuild@0.18.12)(jest@29.6.1)(typescript@5.1.6) + version: 29.1.1(@babel/core@7.22.9)(@jest/types@29.6.1)(esbuild@0.18.13)(jest@29.6.1)(typescript@5.1.6) typescript: specifier: 5.1.6 version: 5.1.6 @@ -1643,9 +1680,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1677,9 +1714,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1711,9 +1748,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1757,9 +1794,9 @@ importers: '@babel/core': specifier: 7.22.9 version: 7.22.9 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1791,9 +1828,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1825,9 +1862,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@plasmohq/rps': specifier: workspace:* version: link:../../packages/rps @@ -1857,7 +1894,7 @@ importers: version: link:../../api/messaging next: specifier: 13.4.9 - version: 13.4.9(react-dom@18.2.0)(react@18.2.0) + version: 13.4.9(@babel/core@7.22.9)(react-dom@18.2.0)(react@18.2.0) plasmo: specifier: workspace:* version: link:../../cli/plasmo @@ -1868,9 +1905,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@plasmohq/rps': specifier: workspace:* version: link:../../packages/rps @@ -1920,9 +1957,9 @@ importers: '@babel/core': specifier: 7.22.9 version: 7.22.9 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1957,9 +1994,9 @@ importers: specifier: 3.3.3 version: 3.3.3 devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -1997,9 +2034,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2023,7 +2060,7 @@ importers: dependencies: next: specifier: 13.4.9 - version: 13.4.9(react-dom@18.2.0)(react@18.2.0) + version: 13.4.9(@babel/core@7.22.9)(react-dom@18.2.0)(react@18.2.0) plasmo: specifier: workspace:* version: link:../../cli/plasmo @@ -2034,9 +2071,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@plasmohq/rps': specifier: workspace:* version: link:../../packages/rps @@ -2074,9 +2111,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2111,9 +2148,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2145,9 +2182,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2188,9 +2225,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2234,9 +2271,9 @@ importers: '@babel/preset-env': specifier: 7.22.9 version: 7.22.9(@babel/core@7.22.9) - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2274,9 +2311,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2311,9 +2348,9 @@ importers: specifier: 6.14.1 version: 6.14.1(react-dom@18.2.0)(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2366,9 +2403,9 @@ importers: specifier: 2.4.2 version: 2.4.2(redux@4.2.1) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2406,9 +2443,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2443,9 +2480,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2477,9 +2514,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2520,9 +2557,9 @@ importers: specifier: 0.97.2 version: 0.97.2(react-dom@18.2.0)(react@18.2.0)(slate@0.94.1) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2554,9 +2591,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2591,9 +2628,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2620,7 +2657,7 @@ importers: version: 8.9.0 next: specifier: 13.4.9 - version: 13.4.9(react-dom@18.2.0)(react@18.2.0) + version: 13.4.9(@babel/core@7.22.9)(react-dom@18.2.0)(react@18.2.0) plasmo: specifier: workspace:* version: link:../../cli/plasmo @@ -2640,9 +2677,9 @@ importers: specifier: 2.2.0 version: 2.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@plasmohq/rps': specifier: workspace:* version: link:../../packages/rps @@ -2683,9 +2720,9 @@ importers: '@babel/core': specifier: 7.22.9 version: 7.22.9 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2726,9 +2763,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2758,11 +2795,11 @@ importers: version: 4.0.5 svelte-preprocess: specifier: 5.0.4 - version: 5.0.4(svelte@4.0.5)(typescript@5.1.6) + version: 5.0.4(@babel/core@7.22.9)(svelte@4.0.5)(typescript@5.1.6) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2788,9 +2825,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2825,9 +2862,9 @@ importers: specifier: 3.3.3 version: 3.3.3 devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2862,9 +2899,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@radix-ui/colors': specifier: 1.0.0 version: 1.0.0 @@ -2905,9 +2942,9 @@ importers: specifier: 3.3.4 version: 3.3.4 devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -2933,9 +2970,9 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../../packages/prettier-plugin-sort-imports + '@ianvs/prettier-plugin-sort-imports': + specifier: 4.1.0 + version: 4.1.0(prettier@3.0.0) '@types/chrome': specifier: 0.0.241 version: 0.0.241 @@ -3003,9 +3040,6 @@ importers: '@plasmo/config': specifier: workspace:* version: link:../config - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../prettier-plugin-sort-imports '@plasmohq/rps': specifier: workspace:* version: link:../rps @@ -3041,9 +3075,6 @@ importers: '@jest/types': specifier: 29.6.1 version: 29.6.1 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../prettier-plugin-sort-imports '@plasmohq/storage': specifier: workspace:* version: link:../../api/storage @@ -3059,9 +3090,6 @@ importers: jest: specifier: 29.6.1 version: 29.6.1(@types/node@20.4.2) - prettier: - specifier: 3.0.0 - version: 3.0.0 react: specifier: 18.2.0 version: 18.2.0 @@ -3075,52 +3103,6 @@ importers: specifier: 5.1.6 version: 5.1.6 - packages/prettier-plugin-sort-imports: - dependencies: - '@babel/core': - specifier: 7.22.9 - version: 7.22.9 - '@babel/generator': - specifier: 7.22.9 - version: 7.22.9 - '@babel/parser': - specifier: 7.22.7 - version: 7.22.7 - '@babel/traverse': - specifier: 7.22.8 - version: 7.22.8 - '@babel/types': - specifier: 7.22.5 - version: 7.22.5 - javascript-natural-sort: - specifier: 0.7.1 - version: 0.7.1 - lodash.clone: - specifier: 4.5.0 - version: 4.5.0 - lodash.isequal: - specifier: 4.5.0 - version: 4.5.0 - devDependencies: - '@types/lodash.clone': - specifier: 4.5.7 - version: 4.5.7 - '@types/lodash.isequal': - specifier: 4.5.6 - version: 4.5.6 - '@types/node': - specifier: 20.4.2 - version: 20.4.2 - prettier: - specifier: 3.0.0 - version: 3.0.0 - tsup: - specifier: 7.1.0 - version: 7.1.0(typescript@5.1.6) - typescript: - specifier: 5.1.6 - version: 5.1.6 - packages/puro: devDependencies: '@jest/globals': @@ -3129,9 +3111,6 @@ importers: '@jest/types': specifier: 29.6.1 version: 29.6.1 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../prettier-plugin-sort-imports '@plasmohq/rps': specifier: workspace:* version: link:../rps @@ -3178,9 +3157,6 @@ importers: specifier: 1.8.1 version: 1.8.1 devDependencies: - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../prettier-plugin-sort-imports '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -3215,9 +3191,6 @@ importers: '@jest/types': specifier: 29.6.1 version: 29.6.1 - '@plasmohq/prettier-plugin-sort-imports': - specifier: workspace:* - version: link:../prettier-plugin-sort-imports '@plasmohq/storage': specifier: workspace:* version: link:../../api/storage @@ -3370,6 +3343,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.18.6 + dev: false /@babel/code-frame@7.22.5: resolution: {integrity: sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==} @@ -3392,19 +3366,19 @@ packages: dependencies: '@ampproject/remapping': 2.2.1 '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 + '@babel/generator': 7.22.9 '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) '@babel/helper-module-transforms': 7.22.5 '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.7 '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 convert-source-map: 1.9.0 debug: 4.3.4 gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: false @@ -3431,16 +3405,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/generator@7.22.5: - resolution: {integrity: sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.5 - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.18 - jsesc: 2.5.2 - dev: false - /@babel/generator@7.22.9: resolution: {integrity: sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==} engines: {node: '>=6.9.0'} @@ -3473,7 +3437,7 @@ packages: '@babel/helper-validator-option': 7.22.5 browserslist: 4.21.9 lru-cache: 5.1.1 - semver: 6.3.0 + semver: 6.3.1 dev: false /@babel/helper-compilation-targets@7.22.9(@babel/core@7.22.9): @@ -3574,10 +3538,10 @@ packages: '@babel/helper-environment-visitor': 7.22.5 '@babel/helper-module-imports': 7.22.5 '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-validator-identifier': 7.22.5 '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color @@ -3640,13 +3604,6 @@ packages: dependencies: '@babel/types': 7.22.5 - /@babel/helper-split-export-declaration@7.22.5: - resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.5 - dev: false - /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} @@ -3657,10 +3614,6 @@ packages: resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} engines: {node: '>=6.9.0'} - /@babel/helper-validator-identifier@7.19.1: - resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} - engines: {node: '>=6.9.0'} - /@babel/helper-validator-identifier@7.22.5: resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} @@ -3682,7 +3635,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color @@ -3702,9 +3655,10 @@ packages: resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.19.1 + '@babel/helper-validator-identifier': 7.22.5 chalk: 2.4.2 js-tokens: 4.0.0 + dev: false /@babel/highlight@7.22.5: resolution: {integrity: sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==} @@ -3720,7 +3674,6 @@ packages: hasBin: true dependencies: '@babel/types': 7.22.5 - dev: false /@babel/parser@7.22.7: resolution: {integrity: sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==} @@ -4845,24 +4798,6 @@ packages: '@babel/parser': 7.22.7 '@babel/types': 7.22.5 - /@babel/traverse@7.22.5: - resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/helper-environment-visitor': 7.22.5 - '@babel/helper-function-name': 7.22.5 - '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/types': 7.22.5 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: false - /@babel/traverse@7.22.8: resolution: {integrity: sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==} engines: {node: '>=6.9.0'} @@ -5029,8 +4964,8 @@ packages: requiresBuild: true optional: true - /@esbuild/android-arm64@0.18.12: - resolution: {integrity: sha512-BMAlczRqC/LUt2P97E4apTBbkvS9JTJnp2DKFbCwpZ8vBvXVbNdqmvzW/OsdtI/+mGr+apkkpqGM8WecLkPgrA==} + /@esbuild/android-arm64@0.18.13: + resolution: {integrity: sha512-j7NhycJUoUAG5kAzGf4fPWfd17N6SM3o1X6MlXVqfHvs2buFraCJzos9vbeWjLxOyBKHyPOnuCuipbhvbYtTAg==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -5046,8 +4981,8 @@ packages: requiresBuild: true optional: true - /@esbuild/android-arm@0.18.12: - resolution: {integrity: sha512-LIxaNIQfkFZbTLb4+cX7dozHlAbAshhFE5PKdro0l+FnCpx1GDJaQ2WMcqm+ToXKMt8p8Uojk/MFRuGyz3V5Sw==} + /@esbuild/android-arm@0.18.13: + resolution: {integrity: sha512-KwqFhxRFMKZINHzCqf8eKxE0XqWlAVPRxwy6rc7CbVFxzUWB2sA/s3hbMZeemPdhN3fKBkqOaFhTbS8xJXYIWQ==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -5063,8 +4998,8 @@ packages: requiresBuild: true optional: true - /@esbuild/android-x64@0.18.12: - resolution: {integrity: sha512-zU5MyluNsykf5cOJ0LZZZjgAHbhPJ1cWfdH1ZXVMXxVMhEV0VZiZXQdwBBVvmvbF28EizeK7obG9fs+fpmS0eQ==} + /@esbuild/android-x64@0.18.13: + resolution: {integrity: sha512-M2eZkRxR6WnWfVELHmv6MUoHbOqnzoTVSIxgtsyhm/NsgmL+uTmag/VVzdXvmahak1I6sOb1K/2movco5ikDJg==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -5080,8 +5015,8 @@ packages: requiresBuild: true optional: true - /@esbuild/darwin-arm64@0.18.12: - resolution: {integrity: sha512-zUZMep7YONnp6954QOOwEBwFX9svlKd3ov6PkxKd53LGTHsp/gy7vHaPGhhjBmEpqXEXShi6dddjIkmd+NgMsA==} + /@esbuild/darwin-arm64@0.18.13: + resolution: {integrity: sha512-f5goG30YgR1GU+fxtaBRdSW3SBG9pZW834Mmhxa6terzcboz7P2R0k4lDxlkP7NYRIIdBbWp+VgwQbmMH4yV7w==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -5097,8 +5032,8 @@ packages: requiresBuild: true optional: true - /@esbuild/darwin-x64@0.18.12: - resolution: {integrity: sha512-ohqLPc7i67yunArPj1+/FeeJ7AgwAjHqKZ512ADk3WsE3FHU9l+m5aa7NdxXr0HmN1bjDlUslBjWNbFlD9y12Q==} + /@esbuild/darwin-x64@0.18.13: + resolution: {integrity: sha512-RIrxoKH5Eo+yE5BtaAIMZaiKutPhZjw+j0OCh8WdvKEKJQteacq0myZvBDLU+hOzQOZWJeDnuQ2xgSScKf1Ovw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -5114,8 +5049,8 @@ packages: requiresBuild: true optional: true - /@esbuild/freebsd-arm64@0.18.12: - resolution: {integrity: sha512-GIIHtQXqgeOOqdG16a/A9N28GpkvjJnjYMhOnXVbn3EDJcoItdR58v/pGN31CHjyXDc8uCcRnFWmqaJt24AYJg==} + /@esbuild/freebsd-arm64@0.18.13: + resolution: {integrity: sha512-AfRPhHWmj9jGyLgW/2FkYERKmYR+IjYxf2rtSLmhOrPGFh0KCETFzSjx/JX/HJnvIqHt/DRQD/KAaVsUKoI3Xg==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -5131,8 +5066,8 @@ packages: requiresBuild: true optional: true - /@esbuild/freebsd-x64@0.18.12: - resolution: {integrity: sha512-zK0b9a1/0wZY+6FdOS3BpZcPc1kcx2G5yxxfEJtEUzVxI6n/FrC2Phsxj/YblPuBchhBZ/1wwn7AyEBUyNSa6g==} + /@esbuild/freebsd-x64@0.18.13: + resolution: {integrity: sha512-pGzWWZJBInhIgdEwzn8VHUBang8UvFKsvjDkeJ2oyY5gZtAM6BaxK0QLCuZY+qoj/nx/lIaItH425rm/hloETA==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -5148,8 +5083,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-arm64@0.18.12: - resolution: {integrity: sha512-JKgG8Q/LL/9sw/iHHxQyVMoQYu3rU3+a5Z87DxC+wAu3engz+EmctIrV+FGOgI6gWG1z1+5nDDbXiRMGQZXqiw==} + /@esbuild/linux-arm64@0.18.13: + resolution: {integrity: sha512-hCzZbVJEHV7QM77fHPv2qgBcWxgglGFGCxk6KfQx6PsVIdi1u09X7IvgE9QKqm38OpkzaAkPnnPqwRsltvLkIQ==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -5165,8 +5100,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-arm@0.18.12: - resolution: {integrity: sha512-y75OijvrBE/1XRrXq1jtrJfG26eHeMoqLJ2dwQNwviwTuTtHGCojsDO6BJNF8gU+3jTn1KzJEMETytwsFSvc+Q==} + /@esbuild/linux-arm@0.18.13: + resolution: {integrity: sha512-4iMxLRMCxGyk7lEvkkvrxw4aJeC93YIIrfbBlUJ062kilUUnAiMb81eEkVvCVoh3ON283ans7+OQkuy1uHW+Hw==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -5182,8 +5117,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-ia32@0.18.12: - resolution: {integrity: sha512-yoRIAqc0B4lDIAAEFEIu9ttTRFV84iuAl0KNCN6MhKLxNPfzwCBvEMgwco2f71GxmpBcTtn7KdErueZaM2rEvw==} + /@esbuild/linux-ia32@0.18.13: + resolution: {integrity: sha512-I3OKGbynl3AAIO6onXNrup/ttToE6Rv2XYfFgLK/wnr2J+1g+7k4asLrE+n7VMhaqX+BUnyWkCu27rl+62Adug==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -5199,8 +5134,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-loong64@0.18.12: - resolution: {integrity: sha512-qYgt3dHPVvf/MgbIBpJ4Sup/yb9DAopZ3a2JgMpNKIHUpOdnJ2eHBo/aQdnd8dJ21X/+sS58wxHtA9lEazYtXQ==} + /@esbuild/linux-loong64@0.18.13: + resolution: {integrity: sha512-8pcKDApAsKc6WW51ZEVidSGwGbebYw2qKnO1VyD8xd6JN0RN6EUXfhXmDk9Vc4/U3Y4AoFTexQewQDJGsBXBpg==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -5216,8 +5151,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-mips64el@0.18.12: - resolution: {integrity: sha512-wHphlMLK4ufNOONqukELfVIbnGQJrHJ/mxZMMrP2jYrPgCRZhOtf0kC4yAXBwnfmULimV1qt5UJJOw4Kh13Yfg==} + /@esbuild/linux-mips64el@0.18.13: + resolution: {integrity: sha512-6GU+J1PLiVqWx8yoCK4Z0GnfKyCGIH5L2KQipxOtbNPBs+qNDcMJr9euxnyJ6FkRPyMwaSkjejzPSISD9hb+gg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -5233,8 +5168,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-ppc64@0.18.12: - resolution: {integrity: sha512-TeN//1Ft20ZZW41+zDSdOI/Os1bEq5dbvBvYkberB7PHABbRcsteeoNVZFlI0YLpGdlBqohEpjrn06kv8heCJg==} + /@esbuild/linux-ppc64@0.18.13: + resolution: {integrity: sha512-pfn/OGZ8tyR8YCV7MlLl5hAit2cmS+j/ZZg9DdH0uxdCoJpV7+5DbuXrR+es4ayRVKIcfS9TTMCs60vqQDmh+w==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -5250,8 +5185,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-riscv64@0.18.12: - resolution: {integrity: sha512-AgUebVS4DoAblBgiB2ACQ/8l4eGE5aWBb8ZXtkXHiET9mbj7GuWt3OnsIW/zX+XHJt2RYJZctbQ2S/mDjbp0UA==} + /@esbuild/linux-riscv64@0.18.13: + resolution: {integrity: sha512-aIbhU3LPg0lOSCfVeGHbmGYIqOtW6+yzO+Nfv57YblEK01oj0mFMtvDJlOaeAZ6z0FZ9D13oahi5aIl9JFphGg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -5267,8 +5202,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-s390x@0.18.12: - resolution: {integrity: sha512-dJ3Rb3Ei2u/ysSXd6pzleGtfDdc2MuzKt8qc6ls8vreP1G3B7HInX3i7gXS4BGeVd24pp0yqyS7bJ5NHaI9ing==} + /@esbuild/linux-s390x@0.18.13: + resolution: {integrity: sha512-Pct1QwF2sp+5LVi4Iu5Y+6JsGaV2Z2vm4O9Dd7XZ5tKYxEHjFtb140fiMcl5HM1iuv6xXO8O1Vrb1iJxHlv8UA==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -5284,8 +5219,8 @@ packages: requiresBuild: true optional: true - /@esbuild/linux-x64@0.18.12: - resolution: {integrity: sha512-OrNJMGQbPaVyHHcDF8ybNSwu7TDOfX8NGpXCbetwOSP6txOJiWlgQnRymfC9ocR1S0Y5PW0Wb1mV6pUddqmvmQ==} + /@esbuild/linux-x64@0.18.13: + resolution: {integrity: sha512-zTrIP0KzYP7O0+3ZnmzvUKgGtUvf4+piY8PIO3V8/GfmVd3ZyHJGz7Ht0np3P1wz+I8qJ4rjwJKqqEAbIEPngA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -5301,8 +5236,8 @@ packages: requiresBuild: true optional: true - /@esbuild/netbsd-x64@0.18.12: - resolution: {integrity: sha512-55FzVCAiwE9FK8wWeCRuvjazNRJ1QqLCYGZVB6E8RuQuTeStSwotpSW4xoRGwp3a1wUsaVCdYcj5LGCASVJmMg==} + /@esbuild/netbsd-x64@0.18.13: + resolution: {integrity: sha512-I6zs10TZeaHDYoGxENuksxE1sxqZpCp+agYeW039yqFwh3MgVvdmXL5NMveImOC6AtpLvE4xG5ujVic4NWFIDQ==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -5318,8 +5253,8 @@ packages: requiresBuild: true optional: true - /@esbuild/openbsd-x64@0.18.12: - resolution: {integrity: sha512-qnluf8rfb6Y5Lw2tirfK2quZOBbVqmwxut7GPCIJsM8lc4AEUj9L8y0YPdLaPK0TECt4IdyBdBD/KRFKorlK3g==} + /@esbuild/openbsd-x64@0.18.13: + resolution: {integrity: sha512-W5C5nczhrt1y1xPG5bV+0M12p2vetOGlvs43LH8SopQ3z2AseIROu09VgRqydx5qFN7y9qCbpgHLx0kb0TcW7g==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -5335,8 +5270,8 @@ packages: requiresBuild: true optional: true - /@esbuild/sunos-x64@0.18.12: - resolution: {integrity: sha512-+RkKpVQR7bICjTOPUpkTBTaJ4TFqQBX5Ywyd/HSdDkQGn65VPkTsR/pL4AMvuMWy+wnXgIl4EY6q4mVpJal8Kg==} + /@esbuild/sunos-x64@0.18.13: + resolution: {integrity: sha512-X/xzuw4Hzpo/yq3YsfBbIsipNgmsm8mE/QeWbdGdTTeZ77fjxI2K0KP3AlhZ6gU3zKTw1bKoZTuKLnqcJ537qw==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -5352,8 +5287,8 @@ packages: requiresBuild: true optional: true - /@esbuild/win32-arm64@0.18.12: - resolution: {integrity: sha512-GNHuciv0mFM7ouzsU0+AwY+7eV4Mgo5WnbhfDCQGtpvOtD1vbOiRjPYG6dhmMoFyBjj+pNqQu2X+7DKn0KQ/Gw==} + /@esbuild/win32-arm64@0.18.13: + resolution: {integrity: sha512-4CGYdRQT/ILd+yLLE5i4VApMPfGE0RPc/wFQhlluDQCK09+b4JDbxzzjpgQqTPrdnP7r5KUtGVGZYclYiPuHrw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -5369,8 +5304,8 @@ packages: requiresBuild: true optional: true - /@esbuild/win32-ia32@0.18.12: - resolution: {integrity: sha512-kR8cezhYipbbypGkaqCTWIeu4zID17gamC8YTPXYtcN3E5BhhtTnwKBn9I0PJur/T6UVwIEGYzkffNL0lFvxEw==} + /@esbuild/win32-ia32@0.18.13: + resolution: {integrity: sha512-D+wKZaRhQI+MUGMH+DbEr4owC2D7XnF+uyGiZk38QbgzLcofFqIOwFs7ELmIeU45CQgfHNy9Q+LKW3cE8g37Kg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -5386,8 +5321,8 @@ packages: requiresBuild: true optional: true - /@esbuild/win32-x64@0.18.12: - resolution: {integrity: sha512-O0UYQVkvfM/jO8a4OwoV0mAKSJw+mjWTAd1MJd/1FCX6uiMdLmMRPK/w6e9OQ0ob2WGxzIm9va/KG0Ja4zIOgg==} + /@esbuild/win32-x64@0.18.13: + resolution: {integrity: sha512-iVl6lehAfJS+VmpF3exKpNQ8b0eucf5VWfzR8S7xFve64NBNz2jPUgx1X93/kfnkfgP737O+i1k54SVQS7uVZA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -5395,13 +5330,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.44.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.45.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.44.0 + eslint: 8.45.0 eslint-visitor-keys: 3.4.1 dev: true @@ -5416,7 +5351,7 @@ packages: dependencies: ajv: 6.12.6 debug: 4.3.4 - espree: 9.6.0 + espree: 9.6.1 globals: 13.20.0 ignore: 5.2.4 import-fresh: 3.3.0 @@ -5987,6 +5922,26 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@ianvs/prettier-plugin-sort-imports@4.1.0(prettier@3.0.0): + resolution: {integrity: sha512-IAXeTLU24k6mRPa6mFbW1qZJ/j0m3OeH44wyijWyr+YqqdNtBnfHxAntOAATS9iDfrT01NesKGsdzqnXdDQa/A==} + peerDependencies: + '@vue/compiler-sfc': '>=3.0.0' + prettier: 2 || 3 + peerDependenciesMeta: + '@vue/compiler-sfc': + optional: true + dependencies: + '@babel/core': 7.22.9 + '@babel/generator': 7.22.9 + '@babel/parser': 7.22.7 + '@babel/traverse': 7.22.8 + '@babel/types': 7.22.5 + prettier: 3.0.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + dev: true + /@inboxsdk/core@1.2.1(kefir@3.8.8): resolution: {integrity: sha512-tIHD1McAGQ5tBUCCKLB1Y3uIIjSvTxFBZhBVLLH5RbcJGgbkbEWgPhr8ielC2C/8K1Wo3qU5OZLjpOP61VxjAA==} dependencies: @@ -9230,20 +9185,9 @@ packages: '@types/node': 20.4.2 dev: false - /@types/lodash.clone@4.5.7: - resolution: {integrity: sha512-jugWYM+xBUQCpWbn7p6BSbf8bRMHtJYnEIGZYngbStaU0aN4VFgAAkGgsc+MtHuepBOmjyUGiGv+dHnQQIGLZA==} - dependencies: - '@types/lodash': 4.14.195 - dev: true - - /@types/lodash.isequal@4.5.6: - resolution: {integrity: sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg==} - dependencies: - '@types/lodash': 4.14.195 - dev: true - /@types/lodash@4.14.195: resolution: {integrity: sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==} + dev: false /@types/long@4.0.2: resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==} @@ -9398,14 +9342,12 @@ packages: '@vue/shared': 3.3.4 estree-walker: 2.0.2 source-map-js: 1.0.2 - dev: false /@vue/compiler-dom@3.3.4: resolution: {integrity: sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==} dependencies: '@vue/compiler-core': 3.3.4 '@vue/shared': 3.3.4 - dev: false /@vue/compiler-sfc@3.3.4: resolution: {integrity: sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==} @@ -9420,37 +9362,32 @@ packages: magic-string: 0.30.0 postcss: 8.4.24 source-map-js: 1.0.2 - dev: false /@vue/compiler-ssr@3.3.4: resolution: {integrity: sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==} dependencies: '@vue/compiler-dom': 3.3.4 '@vue/shared': 3.3.4 - dev: false /@vue/reactivity-transform@3.3.4: resolution: {integrity: sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.7 '@vue/compiler-core': 3.3.4 '@vue/shared': 3.3.4 estree-walker: 2.0.2 - magic-string: 0.30.0 - dev: false + magic-string: 0.30.1 /@vue/reactivity@3.3.4: resolution: {integrity: sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==} dependencies: '@vue/shared': 3.3.4 - dev: false /@vue/runtime-core@3.3.4: resolution: {integrity: sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==} dependencies: '@vue/reactivity': 3.3.4 '@vue/shared': 3.3.4 - dev: false /@vue/runtime-dom@3.3.4: resolution: {integrity: sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==} @@ -9458,7 +9395,6 @@ packages: '@vue/runtime-core': 3.3.4 '@vue/shared': 3.3.4 csstype: 3.1.2 - dev: false /@vue/server-renderer@3.3.4(vue@3.3.4): resolution: {integrity: sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==} @@ -9468,11 +9404,9 @@ packages: '@vue/compiler-ssr': 3.3.4 '@vue/shared': 3.3.4 vue: 3.3.4 - dev: false /@vue/shared@3.3.4: resolution: {integrity: sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==} - dev: false /abab@2.0.6: resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} @@ -9916,7 +9850,7 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} engines: {node: '>=10', npm: '>=6'} dependencies: - '@babel/runtime': 7.22.0 + '@babel/runtime': 7.22.6 cosmiconfig: 7.1.0 resolve: 1.22.2 dev: false @@ -10397,6 +10331,10 @@ packages: /caniuse-lite@1.0.30001515: resolution: {integrity: sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==} + /caniuse-lite@1.0.30001516: + resolution: {integrity: sha512-Wmec9pCBY8CWbmI4HsjBeQLqDTqV91nFVR83DnZpYyRnPI1wePDsTg0bGLPC5VU/3OIZV1fmxEea1b+tFKe86g==} + dev: false + /capital-case@1.0.4: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} dependencies: @@ -10702,6 +10640,15 @@ packages: - supports-color dev: false + /compromise@14.9.0: + resolution: {integrity: sha512-sQXVgbZkSIB3JWMFH4GUfAiiEWH8LIy7hoT9U+MB5E0EP22ayWuNRDrxyt+kUdzaQU19KOaCkTTRPzHCYeDylQ==} + engines: {node: '>=12.0.0'} + dependencies: + efrt: 2.7.0 + grad-school: 0.0.5 + suffix-thumb: 5.0.2 + dev: false + /compute-scroll-into-view@1.0.20: resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==} dev: false @@ -11364,6 +11311,11 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false + /efrt@2.7.0: + resolution: {integrity: sha512-/RInbCy1d4P6Zdfa+TMVsf/ufZVotat5hCw3QXmWtjU+3pFEOvOQ7ibo3aIxyCJw2leIeAMjmPj+1SLJiCpdrQ==} + engines: {node: '>=12.0.0'} + dev: false + /electron-to-chromium@1.4.445: resolution: {integrity: sha512-++DB+9VK8SBJwC+X1zlMfJ1tMA3F0ipi39GdEp+x3cV2TyBihqAgad8cNMWtLDEkbH39nlDQP7PfGrDr3Dr7HA==} @@ -11586,34 +11538,34 @@ packages: '@esbuild/win32-ia32': 0.18.10 '@esbuild/win32-x64': 0.18.10 - /esbuild@0.18.12: - resolution: {integrity: sha512-XuOVLDdtsDslXStStduT41op21Ytmf4/BDS46aa3xPJ7X5h2eMWBF1oAe3QjUH3bDksocNXgzGUZ7XHIBya6Tg==} + /esbuild@0.18.13: + resolution: {integrity: sha512-vhg/WR/Oiu4oUIkVhmfcc23G6/zWuEQKFS+yiosSHe4aN6+DQRXIfeloYGibIfVhkr4wyfuVsGNLr+sQU1rWWw==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.18.12 - '@esbuild/android-arm64': 0.18.12 - '@esbuild/android-x64': 0.18.12 - '@esbuild/darwin-arm64': 0.18.12 - '@esbuild/darwin-x64': 0.18.12 - '@esbuild/freebsd-arm64': 0.18.12 - '@esbuild/freebsd-x64': 0.18.12 - '@esbuild/linux-arm': 0.18.12 - '@esbuild/linux-arm64': 0.18.12 - '@esbuild/linux-ia32': 0.18.12 - '@esbuild/linux-loong64': 0.18.12 - '@esbuild/linux-mips64el': 0.18.12 - '@esbuild/linux-ppc64': 0.18.12 - '@esbuild/linux-riscv64': 0.18.12 - '@esbuild/linux-s390x': 0.18.12 - '@esbuild/linux-x64': 0.18.12 - '@esbuild/netbsd-x64': 0.18.12 - '@esbuild/openbsd-x64': 0.18.12 - '@esbuild/sunos-x64': 0.18.12 - '@esbuild/win32-arm64': 0.18.12 - '@esbuild/win32-ia32': 0.18.12 - '@esbuild/win32-x64': 0.18.12 + '@esbuild/android-arm': 0.18.13 + '@esbuild/android-arm64': 0.18.13 + '@esbuild/android-x64': 0.18.13 + '@esbuild/darwin-arm64': 0.18.13 + '@esbuild/darwin-x64': 0.18.13 + '@esbuild/freebsd-arm64': 0.18.13 + '@esbuild/freebsd-x64': 0.18.13 + '@esbuild/linux-arm': 0.18.13 + '@esbuild/linux-arm64': 0.18.13 + '@esbuild/linux-ia32': 0.18.13 + '@esbuild/linux-loong64': 0.18.13 + '@esbuild/linux-mips64el': 0.18.13 + '@esbuild/linux-ppc64': 0.18.13 + '@esbuild/linux-riscv64': 0.18.13 + '@esbuild/linux-s390x': 0.18.13 + '@esbuild/linux-x64': 0.18.13 + '@esbuild/netbsd-x64': 0.18.13 + '@esbuild/openbsd-x64': 0.18.13 + '@esbuild/sunos-x64': 0.18.13 + '@esbuild/win32-arm64': 0.18.13 + '@esbuild/win32-ia32': 0.18.13 + '@esbuild/win32-x64': 0.18.13 dev: true /escalade@3.1.1: @@ -11653,16 +11605,16 @@ packages: source-map: 0.6.1 dev: true - /eslint-config-prettier@8.8.0(eslint@8.44.0): + /eslint-config-prettier@8.8.0(eslint@8.45.0): resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.44.0 + eslint: 8.45.0 dev: true - /eslint-plugin-react@7.32.2(eslint@8.44.0): + /eslint-plugin-react@7.32.2(eslint@8.45.0): resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} engines: {node: '>=4'} peerDependencies: @@ -11672,7 +11624,7 @@ packages: array.prototype.flatmap: 1.3.1 array.prototype.tosorted: 1.1.1 doctrine: 2.1.0 - eslint: 8.44.0 + eslint: 8.45.0 estraverse: 5.3.0 jsx-ast-utils: 3.3.3 minimatch: 3.1.2 @@ -11686,8 +11638,8 @@ packages: string.prototype.matchall: 4.0.8 dev: true - /eslint-scope@7.2.0: - resolution: {integrity: sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==} + /eslint-scope@7.2.1: + resolution: {integrity: sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: esrecurse: 4.3.0 @@ -11699,12 +11651,12 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.44.0: - resolution: {integrity: sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==} + /eslint@8.45.0: + resolution: {integrity: sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.44.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0) '@eslint-community/regexpp': 4.5.1 '@eslint/eslintrc': 2.1.0 '@eslint/js': 8.44.0 @@ -11717,9 +11669,9 @@ packages: debug: 4.3.4 doctrine: 3.0.0 escape-string-regexp: 4.0.0 - eslint-scope: 7.2.0 + eslint-scope: 7.2.1 eslint-visitor-keys: 3.4.1 - espree: 9.6.0 + espree: 9.6.1 esquery: 1.5.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 @@ -11729,7 +11681,6 @@ packages: globals: 13.20.0 graphemer: 1.4.0 ignore: 5.2.4 - import-fresh: 3.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -11741,14 +11692,13 @@ packages: natural-compare: 1.4.0 optionator: 0.9.3 strip-ansi: 6.0.1 - strip-json-comments: 3.1.1 text-table: 0.2.0 transitivePeerDependencies: - supports-color dev: true - /espree@9.6.0: - resolution: {integrity: sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==} + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: acorn: 8.10.0 @@ -11782,7 +11732,6 @@ packages: /estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - dev: false /estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} @@ -12492,6 +12441,11 @@ packages: /graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + /grad-school@0.0.5: + resolution: {integrity: sha512-rXunEHF9M9EkMydTBux7+IryYXEZinRk6g8OBOGDBzo/qWJjhTxy86i5q7lQYpCLHN8Sqv1XX3OIOc7ka2gtvQ==} + engines: {node: '>=8.0.0'} + dev: false + /graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true @@ -13360,10 +13314,6 @@ packages: '@pkgjs/parseargs': 0.11.0 dev: true - /javascript-natural-sort@0.7.1: - resolution: {integrity: sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==} - dev: false - /jest-changed-files@29.5.0: resolution: {integrity: sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -14420,17 +14370,9 @@ packages: resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} dev: false - /lodash.clone@4.5.0: - resolution: {integrity: sha512-GhrVeweiTD6uTmmn5hV/lzgCQhccwReIVRLHp7LT4SopOjqEZ5BbX8b5WWEtAKasjmy8hR7ZPwsYlxRCku5odg==} - dev: false - /lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} - /lodash.isequal@4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - dev: false - /lodash.memoize@4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} dev: true @@ -14530,14 +14472,12 @@ packages: engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 - dev: false /magic-string@0.30.1: resolution: {integrity: sha512-mbVKXPmS0z0G4XqFDCTllmDQ6coZzn94aMlb0o/A4HEHJCKcanlDZwYJgwnkmgD3jyWhUgj9VsPrfd972yPffA==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 - dev: false /make-dir@2.1.0: resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} @@ -15466,7 +15406,7 @@ packages: resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} dev: false - /next@13.4.9(react-dom@18.2.0)(react@18.2.0): + /next@13.4.9(@babel/core@7.22.9)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-vtefFm/BWIi/eWOqf1GsmKG3cjKw1k3LjuefKRcL3iiLl3zWzFdPG3as6xtxrGO6gwTzzaO1ktL4oiHt/uvTjA==} engines: {node: '>=16.8.0'} hasBin: true @@ -15487,11 +15427,11 @@ packages: '@next/env': 13.4.9 '@swc/helpers': 0.5.1 busboy: 1.6.0 - caniuse-lite: 1.0.30001515 + caniuse-lite: 1.0.30001516 postcss: 8.4.14 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.1(react@18.2.0) + styled-jsx: 5.1.1(@babel/core@7.22.9)(react@18.2.0) watchpack: 2.4.0 zod: 3.21.4 optionalDependencies: @@ -15976,7 +15916,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.21.4 + '@babel/code-frame': 7.22.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -16217,7 +16157,6 @@ packages: nanoid: 3.3.6 picocolors: 1.0.0 source-map-js: 1.0.2 - dev: false /postcss@8.4.26: resolution: {integrity: sha512-jrXHFF8iTloAenySjM/ob3gSj7pCu0Ji49hnjqzsgSRa50hkWCKD0HQ+gMNJkW38jBI68MpAAg7ZWwHwX8NMMw==} @@ -17757,11 +17696,6 @@ packages: hasBin: true dev: false - /semver@6.3.0: - resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} - hasBin: true - dev: false - /semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true @@ -17866,8 +17800,8 @@ packages: resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} dev: false - /sharp@0.32.2: - resolution: {integrity: sha512-e4hyWKtU7ks/rLmoPys476zhpQnLqPJopz4+5b6OPeyJfvCTInAp0pe5tGhstjsNdUvDLrUVGEwevewYdZM8Eg==} + /sharp@0.32.3: + resolution: {integrity: sha512-i1gFPiNqyqxC4ouVvCKj5G8WfPIMeeSxpKcMrjic6NY4e8zktW7bIdqHPc3FCG+pNKU/XCEabKA57hhvZi8UmQ==} engines: {node: '>=14.15.0'} requiresBuild: true dependencies: @@ -18382,7 +18316,7 @@ packages: - supports-color dev: false - /styled-jsx@5.1.1(react@18.2.0): + /styled-jsx@5.1.1(@babel/core@7.22.9)(react@18.2.0): resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} engines: {node: '>= 12.0.0'} peerDependencies: @@ -18395,6 +18329,7 @@ packages: babel-plugin-macros: optional: true dependencies: + '@babel/core': 7.22.9 client-only: 0.0.1 react: 18.2.0 dev: false @@ -18428,6 +18363,10 @@ packages: resolution: {integrity: sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==} dev: false + /suffix-thumb@5.0.2: + resolution: {integrity: sha512-I5PWXAFKx3FYnI9a+dQMWNqTxoRt6vdBdb0O+BJ1sxXCWtSoQCusc13E58f+9p4MYx/qCnEMkD5jac6K2j3dgA==} + dev: false + /superjson@1.12.4: resolution: {integrity: sha512-vkpPQAxdCg9SLfPv5GPC5fnGrui/WryktoN9O5+Zif/14QIMjw+RITf/5LbBh+9QpBFb3KNvJth+puz2H8o6GQ==} engines: {node: '>=10'} @@ -18457,7 +18396,7 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - /svelte-preprocess@5.0.4(svelte@4.0.5)(typescript@5.1.6): + /svelte-preprocess@5.0.4(@babel/core@7.22.9)(svelte@4.0.5)(typescript@5.1.6): resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==} engines: {node: '>= 14.10.0'} requiresBuild: true @@ -18495,6 +18434,7 @@ packages: typescript: optional: true dependencies: + '@babel/core': 7.22.9 '@types/pug': 2.0.6 detect-indent: 6.1.0 magic-string: 0.27.0 @@ -18872,7 +18812,7 @@ packages: yargs-parser: 21.1.1 dev: true - /ts-jest@29.1.1(@babel/core@7.22.9)(@jest/types@29.6.1)(esbuild@0.18.12)(jest@29.6.1)(typescript@5.1.6): + /ts-jest@29.1.1(@babel/core@7.22.9)(@jest/types@29.6.1)(esbuild@0.18.13)(jest@29.6.1)(typescript@5.1.6): resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -18896,7 +18836,7 @@ packages: '@babel/core': 7.22.9 '@jest/types': 29.6.1 bs-logger: 0.2.6 - esbuild: 0.18.12 + esbuild: 0.18.13 fast-json-stable-stringify: 2.1.0 jest: 29.6.1(@types/node@20.4.2) jest-util: 29.6.1 @@ -18999,65 +18939,65 @@ packages: dependencies: safe-buffer: 5.2.1 - /turbo-darwin-64@1.10.6: - resolution: {integrity: sha512-s2Gc7i9Ud+H9GDcrGJjPIyscJfzDGQ6il4Sl2snfvwngJs4/TaqKuBoX3HNt/7F4NiFRs7ZhlLV1/Yu9zGBRhw==} + /turbo-darwin-64@1.10.7: + resolution: {integrity: sha512-N2MNuhwrl6g7vGuz4y3fFG2aR1oCs0UZ5HKl8KSTn/VC2y2YIuLGedQ3OVbo0TfEvygAlF3QGAAKKtOCmGPNKA==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-darwin-arm64@1.10.6: - resolution: {integrity: sha512-tgl70t5PBLyRcNTdP9N6NjvdvQ5LUk8Z60JGUhBhnc+oCOdA4pltrDJNPyel3tQAXXt1dDpl8pp9vUrbwoVyGg==} + /turbo-darwin-arm64@1.10.7: + resolution: {integrity: sha512-WbJkvjU+6qkngp7K4EsswOriO3xrNQag7YEGRtfLoDdMTk4O4QTeU6sfg2dKfDsBpTidTvEDwgIYJhYVGzrz9Q==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-linux-64@1.10.6: - resolution: {integrity: sha512-h7eyAA3xtAVpamcYJYUwe0xm0LWdbv7/I7QiM09AZ67TTNpyUgqW8giFN3h793BHEQ2Rcnk9FNkpIbjWBbyamg==} + /turbo-linux-64@1.10.7: + resolution: {integrity: sha512-x1CF2CDP1pDz/J8/B2T0hnmmOQI2+y11JGIzNP0KtwxDM7rmeg3DDTtDM/9PwGqfPotN9iVGgMiMvBuMFbsLhg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-linux-arm64@1.10.6: - resolution: {integrity: sha512-8cZhOeLqu3QZ27yLd6bw4FNaB8y5pLdWeRLJeiWHkIb/cptKnRKJFP+keBJzJi8ovaMqdBpabrxiBRN2lhau5Q==} + /turbo-linux-arm64@1.10.7: + resolution: {integrity: sha512-JtnBmaBSYbs7peJPkXzXxsRGSGBmBEIb6/kC8RRmyvPAMyqF8wIex0pttsI+9plghREiGPtRWv/lfQEPRlXnNQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-windows-64@1.10.6: - resolution: {integrity: sha512-qx5jcfCJodN1Mh0KtSVQau7pK8CxDvtif7+joPHI2HbQPAADgdUl0LHfA5tFHh6aWgfvhxbvIXqJd6v7Mqkj9g==} + /turbo-windows-64@1.10.7: + resolution: {integrity: sha512-7A/4CByoHdolWS8dg3DPm99owfu1aY/W0V0+KxFd0o2JQMTQtoBgIMSvZesXaWM57z3OLsietFivDLQPuzE75w==} cpu: [x64] os: [win32] requiresBuild: true dev: true optional: true - /turbo-windows-arm64@1.10.6: - resolution: {integrity: sha512-vTQaRG3/s2XTreOBr6J9HKFtjzusvwGQg0GtuW2+9Z7fizdzP8MuhaDbN6FhKHcWC81PQPD61TBIKTVTsYOEZg==} + /turbo-windows-arm64@1.10.7: + resolution: {integrity: sha512-D36K/3b6+hqm9IBAymnuVgyePktwQ+F0lSXr2B9JfAdFPBktSqGmp50JNC7pahxhnuCLj0Vdpe9RqfnJw5zATA==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /turbo@1.10.6: - resolution: {integrity: sha512-0/wbjw4HvmPP1abVWHTdeFRfCA9cn5oxCPP5bDixagLzvDgGWE3xfdlsyGmq779Ekr9vjtDPgC2Y4JlXEhyryw==} + /turbo@1.10.7: + resolution: {integrity: sha512-xm0MPM28TWx1e6TNC3wokfE5eaDqlfi0G24kmeHupDUZt5Wd0OzHFENEHMPqEaNKJ0I+AMObL6nbSZonZBV2HA==} hasBin: true requiresBuild: true optionalDependencies: - turbo-darwin-64: 1.10.6 - turbo-darwin-arm64: 1.10.6 - turbo-linux-64: 1.10.6 - turbo-linux-arm64: 1.10.6 - turbo-windows-64: 1.10.6 - turbo-windows-arm64: 1.10.6 + turbo-darwin-64: 1.10.7 + turbo-darwin-arm64: 1.10.7 + turbo-linux-64: 1.10.7 + turbo-linux-arm64: 1.10.7 + turbo-windows-64: 1.10.7 + turbo-windows-arm64: 1.10.7 dev: true /type-check@0.4.0: @@ -19416,7 +19356,6 @@ packages: '@vue/runtime-dom': 3.3.4 '@vue/server-renderer': 3.3.4(vue@3.3.4) '@vue/shared': 3.3.4 - dev: false /w3c-xmlserializer@4.0.0: resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} diff --git a/scripts/move-prettier-cjs-to-mjs.bash b/scripts/move-prettier-cjs-to-mjs.bash new file mode 100755 index 000000000..527166862 --- /dev/null +++ b/scripts/move-prettier-cjs-to-mjs.bash @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# a bash script that traverse the examples directory and mv all prettier cjs files to mjs + +dir="examples" + +# Use a for loop to traverse the directory +for subdir in $(find $dir -type d); do + # Check if the file exists + if [ -f "$subdir/.prettierrc.cjs" ]; then + # If the file exists, rename it + mv "$subdir/.prettierrc.cjs" "$subdir/.prettierrc.mjs" + echo "Renamed .prettierrc.cjs to .prettierrc.mjs in directory $subdir" + fi +done