mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 10:10:42 +08:00
2bd920fea6
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@inquirer/prompts](https://redirect.github.com/SBoudrias/Inquirer.js/blob/main/packages/prompts/README.md) ([source](https://redirect.github.com/SBoudrias/Inquirer.js)) | [`^7.10.1` → `^8.0.0`](https://renovatebot.com/diffs/npm/@inquirer%2fprompts/7.10.1/8.5.0) |  |  | --- ### Release Notes <details> <summary>SBoudrias/Inquirer.js (@​inquirer/prompts)</summary> ### [`v8.5.0`](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.4.3...5ca6d1101d5d3f8fb066cd5b389bccfdafbbe0c0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.4.3...@inquirer/prompts@8.5.0) ### [`v8.4.3`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.4.3) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.4.2...@inquirer/prompts@8.4.3) - Fix: Windows rendering bug - Fix: Preserve exact literal types in `choices` array (Typescript only) - Fix: Allow input `default` value to be of type `undefined` (Typescript only) - Bump dependencies ### [`v8.4.2`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.4.2) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.4.1...@inquirer/prompts@8.4.2) - Fix: some Windows terminals would freeze and not react to keypresses. ### [`v8.4.1`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.4.1) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.4.0...@inquirer/prompts@8.4.1) - Improve `expand` prompt type inferrence. ### [`v8.4.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.4.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.3.2...@inquirer/prompts@8.4.0) - Feat: Added a loading message while validating editor prompt input. - Type improvement: Better type inference with checkbox, search and expand prompts. - Fix: `editor` prompt not always properly handling editor path on windows. ### [`v8.3.2`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.3.2) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.3.1...@inquirer/prompts@8.3.2) - Fix broken 8.3.1 release process. ### [`v8.3.1`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.3.1) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.3.0...@inquirer/prompts@8.3.1) - Bump dependencies ### [`v8.3.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.3.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.2.1...@inquirer/prompts@8.3.0) - Fix: Keypresses happening before a prompt is rendered are now ignored. - Fix (checkbox): Element who're both checked and disabled are now always included in the returned array. - Feat (select/checkbox): Cursor will now hover disabled options of the list; but they still cannot be interacted with. This prevents the cursor jumping ahead in ways that can be confusing. - Feat: various new theme options to make all prompts content localizable. Finally, see our new [`@inquirer/i18n` package](https://redirect.github.com/SBoudrias/Inquirer.js/tree/main/packages/i18n)! ### [`v8.2.1`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.2.1) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.2.0...@inquirer/prompts@8.2.1) - chore: Switch `wrap-ansi` with `fast-wrap-ansi` ### [`v8.2.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.2.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.1.0...@inquirer/prompts@8.2.0) - feat(`search`): Add support for `default`. - feat(`rawlist`): Add support for `description` of choices. That information is displayed under the list when the choice is highlighted. - Bump dependencies ### [`v8.1.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.1.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.0.2...@inquirer/prompts@8.1.0) - Feat: `rawlist` now supports `default` option. - Fix: `select` now infer return type properly when passing a `choices` array of string literals. ### [`v8.0.2`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.0.2) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.0.1...@inquirer/prompts@8.0.2) - Fix Typescript not discovering types when `moduleResolution` is set to `commonjs` (you probably want to fix that in your project if it's still in your tsconfig) ### [`v8.0.1`](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.0.0...@inquirer/prompts@8.0.1) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.0.0...@inquirer/prompts@8.0.1) ### [`v8.0.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/%40inquirer/prompts%408.0.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@7.10.1...@inquirer/prompts@8.0.0) ### Release Notes #### 🚨 Breaking Changes This is a major release that modernizes the codebase for Node.js ≥ 20. ##### ESM Only - No More CommonJS Support **Impact:** All packages are now ESM-only. CommonJS imports are no longer supported. If you're on modern Node versions (≥ 20), this should be transparent and have no impact. ##### Node.js Version Requirement **Minimum Node.js version is now 20.x** Node.js versions below 20 are no longer supported. Please upgrade to Node.js 20 or later. Node min versions: `>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0` ##### Deprecated APIs Removed The following deprecated APIs have been removed after being deprecated in previous releases: ##### `list` prompt alias removed (affects `inquirer` package only) The `list` alias has been removed from the `inquirer` package. This only impacts users of the legacy `inquirer` package, not users of `@inquirer/prompts` or individual prompt packages. ```js // ❌ No longer available (inquirer package only) import inquirer from 'inquirer'; const answer = await inquirer.prompt([ { type: 'list', name: 'choice', message: 'Pick one:', choices: ['a', 'b'] } ]); // ✅ Use 'select' instead import inquirer from 'inquirer'; const answer = await inquirer.prompt([ { type: 'select', name: 'choice', message: 'Pick one:', choices: ['a', 'b'] } ]); ``` ##### `helpMode` theme property removed ```js // ❌ No longer available const answer = await select({ theme: { helpMode: 'never' } }); // ✅ Use theme.style.keysHelpTip instead const answer = await select({ theme: { style: { keysHelpTip: () => undefined // or your custom styling function } } }); ``` This affects the following prompts: - `@inquirer/checkbox` - `@inquirer/search` - `@inquirer/select` ##### `instructions` config property removed ```js // ❌ No longer available const answer = await checkbox({ instructions: 'Custom instructions' }); // ✅ Use theme.style.keysHelpTip instead const answer = await checkbox({ theme: { style: { keysHelpTip: (text) => 'Custom instructions' } } }); ``` This affects the following prompts: - `@inquirer/checkbox` - `@inquirer/search` - `@inquirer/select` ##### `cancel()` method removed The `cancel()` method on prompt return custom `Promise` has been removed. ```js // ❌ No longer available const answerPromise = input({ message: 'Name?' }); answerPromise.cancel(); const answer = await answerPromise; // ✅ Use AbortSignal instead const controller = new AbortController(); const answer = await input( { message: 'Name?' }, { signal: controller.signal } ); controller.abort(); ``` ##### Color Library Change: yoctocolors → Node.js `styleText` **Internal change:** The project now uses Node.js built-in `util.styleText()` instead of the `yoctocolors` package for terminal colors. This makes Inquirer smaller and reduces risks of vulnerabilities coming from transitive dependencies. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5NC4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
177 lines
5.7 KiB
JSON
177 lines
5.7 KiB
JSON
{
|
|
"name": "@affine/server",
|
|
"private": true,
|
|
"version": "0.26.3",
|
|
"description": "Affine Node.js server",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "affine bundle -p @affine/server",
|
|
"dev": "nodemon ./src/index.ts",
|
|
"dev:mail": "email dev -d src/mails",
|
|
"test": "ava --concurrency 1 --serial",
|
|
"test:copilot": "ava \"src/__tests__/copilot/copilot-*.spec.ts\"",
|
|
"test:coverage": "c8 ava --concurrency 1 --serial",
|
|
"test:copilot:coverage": "c8 ava --timeout=5m \"src/__tests__/copilot/copilot-*.spec.ts\"",
|
|
"e2e": "cross-env TEST_MODE=e2e ava --serial",
|
|
"e2e:coverage": "cross-env TEST_MODE=e2e c8 ava --serial",
|
|
"data-migration": "cross-env NODE_ENV=development SERVER_FLAVOR=script r ./src/index.ts",
|
|
"init": "yarn prisma migrate dev && yarn data-migration run",
|
|
"seed": "r ./src/seed/index.ts",
|
|
"genconfig": "r ./scripts/genconfig.ts",
|
|
"cli": "cross-env SERVER_FLAVOR=script node ./dist/main.js",
|
|
"predeploy": "yarn prisma migrate deploy && yarn cli run",
|
|
"postinstall": "prisma generate"
|
|
},
|
|
"dependencies": {
|
|
"@affine/s3-compat": "workspace:*",
|
|
"@affine/server-native": "workspace:*",
|
|
"@apollo/server": "^5.5.1",
|
|
"@as-integrations/express5": "^1.1.2",
|
|
"@google-cloud/opentelemetry-cloud-trace-exporter": "^3.0.0",
|
|
"@google-cloud/opentelemetry-resource-util": "^3.0.0",
|
|
"@inquirer/prompts": "^8.0.0",
|
|
"@nestjs-cls/transactional": "^3.2.0",
|
|
"@nestjs-cls/transactional-adapter-prisma": "^1.3.4",
|
|
"@nestjs/apollo": "^13.2.4",
|
|
"@nestjs/bullmq": "^11.0.4",
|
|
"@nestjs/common": "^11.1.18",
|
|
"@nestjs/core": "^11.1.18",
|
|
"@nestjs/graphql": "^13.2.5",
|
|
"@nestjs/platform-express": "^11.1.18",
|
|
"@nestjs/platform-socket.io": "^11.1.18",
|
|
"@nestjs/schedule": "^6.1.1",
|
|
"@nestjs/throttler": "^6.5.0",
|
|
"@nestjs/websockets": "^11.1.18",
|
|
"@node-rs/argon2": "^2.0.2",
|
|
"@node-rs/crc32": "^1.10.6",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/core": "^2.7.1",
|
|
"@opentelemetry/exporter-prometheus": "^0.218.0",
|
|
"@opentelemetry/exporter-zipkin": "^2.7.1",
|
|
"@opentelemetry/host-metrics": "^0.38.3",
|
|
"@opentelemetry/instrumentation": "^0.218.0",
|
|
"@opentelemetry/instrumentation-graphql": "^0.66.0",
|
|
"@opentelemetry/instrumentation-http": "^0.218.0",
|
|
"@opentelemetry/instrumentation-ioredis": "^0.66.0",
|
|
"@opentelemetry/instrumentation-nestjs-core": "^0.64.0",
|
|
"@opentelemetry/instrumentation-socket.io": "^0.65.0",
|
|
"@opentelemetry/resources": "^2.7.1",
|
|
"@opentelemetry/sdk-metrics": "^2.7.1",
|
|
"@opentelemetry/sdk-node": "^0.218.0",
|
|
"@opentelemetry/sdk-trace-node": "^2.7.1",
|
|
"@opentelemetry/semantic-conventions": "^1.38.0",
|
|
"@prisma/client": "^6.6.0",
|
|
"@prisma/instrumentation": "^6.7.0",
|
|
"@queuedash/api": "^3.16.0",
|
|
"@react-email/components": "^0.5.7",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"bullmq": "5.53.0",
|
|
"commander": "^13.1.0",
|
|
"cookie-parser": "^1.4.7",
|
|
"cross-env": "^10.1.0",
|
|
"date-fns": "^4.0.0",
|
|
"dotenv": "^16.4.7",
|
|
"eventemitter2": "^6.4.9",
|
|
"exa-js": "^2.4.0",
|
|
"express": "^5.0.1",
|
|
"fast-xml-parser": "^5.8.0",
|
|
"get-stream": "^9.0.1",
|
|
"google-auth-library": "^10.2.0",
|
|
"graphql": "^16.13.2",
|
|
"graphql-scalars": "^1.24.0",
|
|
"graphql-upload": "^17.0.0",
|
|
"html-validate": "^9.0.0",
|
|
"htmlrewriter": "^0.0.12",
|
|
"http-errors": "^2.0.0",
|
|
"ioredis": "^5.8.2",
|
|
"is-mobile": "^5.0.0",
|
|
"jose": "^6.1.3",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"lodash-es": "^4.17.23",
|
|
"mustache": "^4.2.0",
|
|
"nanoid": "^5.1.6",
|
|
"nest-winston": "^1.9.7",
|
|
"nestjs-cls": "^6.0.0",
|
|
"nodemailer": "^8.0.4",
|
|
"on-headers": "^1.1.0",
|
|
"piscina": "^5.1.4",
|
|
"prisma": "^6.6.0",
|
|
"react": "^19.2.1",
|
|
"react-dom": "19.2.1",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.2",
|
|
"semver": "^7.7.4",
|
|
"ses": "^1.15.0",
|
|
"socket.io": "^4.8.1",
|
|
"stripe": "^17.7.0",
|
|
"tldts": "^7.0.19",
|
|
"winston": "^3.17.0",
|
|
"yjs": "^13.6.27",
|
|
"zod": "^3.25.76",
|
|
"zod-to-json-schema": "^3.20.0"
|
|
},
|
|
"devDependencies": {
|
|
"@affine-tools/cli": "workspace:*",
|
|
"@affine-tools/utils": "workspace:*",
|
|
"@affine/graphql": "workspace:*",
|
|
"@affine/realtime": "workspace:*",
|
|
"@faker-js/faker": "^10.1.0",
|
|
"@nestjs/swagger": "^11.2.7",
|
|
"@nestjs/testing": "patch:@nestjs/testing@npm%3A11.1.18#~/.yarn/patches/@nestjs-testing-npm-11.1.18-32c0f6af12.patch",
|
|
"@types/cookie-parser": "^1.4.8",
|
|
"@types/express": "^5.0.1",
|
|
"@types/express-serve-static-core": "^5.0.6",
|
|
"@types/graphql-upload": "^17.0.0",
|
|
"@types/http-errors": "^2.0.4",
|
|
"@types/jsonwebtoken": "^9.0.9",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mustache": "^4.2.5",
|
|
"@types/node": "^22.0.0",
|
|
"@types/nodemailer": "^8.0.0",
|
|
"@types/on-headers": "^1.0.3",
|
|
"@types/react": "^19.0.1",
|
|
"@types/semver": "^7.7.1",
|
|
"@types/sinon": "^21.0.0",
|
|
"@types/supertest": "^7.0.0",
|
|
"ava": "^7.0.0",
|
|
"c8": "^10.1.3",
|
|
"nodemon": "^3.1.14",
|
|
"react-email": "^4.3.2",
|
|
"sinon": "^21.0.1",
|
|
"socket.io-client": "^4.8.3",
|
|
"supertest": "^7.1.4",
|
|
"typescript": "^5.9.3",
|
|
"why-is-node-running": "^3.2.2"
|
|
},
|
|
"nodemonConfig": {
|
|
"exec": "node",
|
|
"ignore": [
|
|
"**/__tests__/**",
|
|
"**/dist/**",
|
|
"*.gen.*"
|
|
],
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"AFFINE_ENV": "dev",
|
|
"AFFINE_SERVER_EXTERNAL_URL": "http://localhost:8080",
|
|
"DEBUG": "affine:*",
|
|
"FORCE_COLOR": true,
|
|
"DEBUG_COLORS": true
|
|
},
|
|
"delay": 1000
|
|
},
|
|
"c8": {
|
|
"reporter": [
|
|
"text-summary",
|
|
"lcov"
|
|
],
|
|
"report-dir": ".coverage",
|
|
"exclude": [
|
|
"scripts",
|
|
"node_modules",
|
|
"**/*.spec.ts",
|
|
"**/*.e2e.ts"
|
|
]
|
|
}
|
|
}
|