Files
AFFiNE-Mirror/packages/backend/server/package.json
renovate 97e448fc57 chore: bump up html-validate version to v9 (#9242)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [html-validate](https://html-validate.org) ([source](https://gitlab.com/html-validate/html-validate)) | [`^8.27.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/html-validate/8.29.0/9.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/html-validate/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/html-validate/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/html-validate/8.29.0/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/html-validate/8.29.0/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>html-validate/html-validate (html-validate)</summary>

### [`v9.0.0`](https://gitlab.com/html-validate/html-validate/blob/HEAD/CHANGELOG.md#900-2024-12-23)

[Compare Source](https://gitlab.com/html-validate/html-validate/compare/v8.29.0...v9.0.0)

##### ⚠ BREAKING CHANGES

-   **meta:** The deprecated metadata property expressions have been removed
    and can be replaced with callback functions. This gives greater control for the
    metadata author, provides better IDE support and is more reusable when querying
    the metadata directly.

-   **api:** `Config.merge(..)` will return a `Promise` when used with an
    async loader or resolver.

-   **config:** This change affects all users. The following deprecated
    configuration presets has been removed:

    -   `htmlvalidate:recommended`
    -   `htmlvalidate:document`
    -   `html-validate:a17y`

-   **cli:** CLI uses ESM (with `esmResolver`). For most part this shouldn't
    affect anything but in some cases you might need slight configuration
    migration. See Migration Guide for details.

refactor(cli): use ESM in CLI

-   **deps:** Requires NodeJS v18 or later.
-   **api:** The deprecated `tag:open` and `tag:close` events has been
    removed, use `tag:begin` and `tag:end` instead.
-   **api:** The `Config.resolve()` method can return a `Promise` if any
    underlying loader or resolver has returned a `Promise`.

It is recommended to assume it returns a `Promise` and always `await` the
result:

```diff
-const resolved = config.resolve();
+const resolved = await config.resolve();
```

If you need synchronous code ensure the configuration, the loader and the
resolver all returns synchronous results, e.g. the `staticResolver` with
synchronous code.

-   **api:** The `HtmlValidate.getConfigurationSchema()` method is now async
    and returns a `Promise`. If you use this method you need to await the result:

```diff
-const schema = htmlvalidate.getConfigurationSchema();
+const schema = await htmlvalidate.getConfigurationSchema();
```

-   **api:** If you are writing your own transformers they may now
    optionally return a `Promise`. If you are using `test-utils` to write unit tests
    you must now resolve the promise.

```diff
 import { transformSource } from "html-validate/test-utils";

-const result = transformSource(transformer, source);
+const result = await transformSource(transformer, source);
```

This is no matter if your transformer is actually async or not.

-   **api:** The `CLI.isIgnored(..)` method has been removed from the public
    API. There is no replacement. If you need this method open an issue describing
    the use-case.
-   **api:** If you are using the `CLI` class most methods are now async and
    returns `Promise`. There is no synchronous version of these API calls.
-   **api:** `Config.fromFile(..)` and `Config.fromObject(..)` will return a
    Promise when used with an async loader or resolver.
-   **api:** `ConfigLoader` methods can optionally return a `Promise` for
    async operation. For most use-cases this will not require any changes.
-   **api:** The `ConfigLoader.globalConfig` property has been replaced with
    `ConfigLoader.getGlobalConfig()` (async) and
    `ConfigLoader.getGlobalConfigSync()` (sync).
-   **api:** The redundant and deprecated `Config.init()` method has been
    removed.

Remove any calls to the method:

```diff
 const config = Config.fromObject({ /* ... */ });
-config.init();
```

##### Features

-   **api:** `CLI.isIgnored()` made private ([9e3679a](9e3679a13a))
-   **api:** `CLI` methods async and return Promise ([677c73e](677c73e51a))
-   **api:** `Config.fromFile` and `Config.fromObject` can return `Promise` ([b126361](b126361701))
-   **api:** `Config.merge(..)` can return `Promise` ([cccb313](cccb313c67))
-   **api:** `Config.resolve()` can return `Promise` ([09159f3](09159f39c5))
-   **api:** `ConfigLoader`s can optionally return `Promise` for async operation ([6041581](6041581eb8))
-   **api:** `FileSystemConfigLoader` uses `esmResolver` by default ([dd4cfb1](dd4cfb1e1b))
-   **api:** `HtmlValidate.getConfigurationSchema()` returns promise ([f10ec1a](f10ec1a650))
-   **api:** allow transformers to return single source ([fd126da](fd126dab3f))
-   **api:** new `esmResolver` using `import(..)` (available for both nodejs and browser) ([81b4777](81b4777083)), closes [#&#8203;230](https://gitlab.com/html-validate/html-validate/issues/230)
-   **api:** remove deprecated `Config.init()` ([0bd8ab7](0bd8ab787a))
-   **api:** remove deprecated `tag:open` and `tag:close` events ([88ac65e](88ac65ee6b))
-   **api:** replace `ConfigLoader.globalConfig` with `ConfigLoader.getGlobalConfig()` ([a64935a](a64935af91))
-   **api:** resolvers may optionally return `Promise` for async operation ([fe3c6a6](fe3c6a6362))
-   **api:** transformers may optionally return `Promise` for async operation ([823da19](823da1998e))
-   **cli:** cli uses esm (with `esmResolver`) ([3e4759e](3e4759e4a3))
-   **config:** remove deprecated configuration presets ([dbf5cf4](dbf5cf405b))
-   **config:** support `.htmlvalidate.mjs` configuration files ([0ffd9b5](0ffd9b5f0e)), closes [#&#8203;125](https://gitlab.com/html-validate/html-validate/issues/125)
-   **deps:** require node 18 or later ([d4f3bcb](d4f3bcb0a6))
-   **meta:** remove deprecated property expressions ([a77043c](a77043cff3))

</details>

---

### Configuration

📅 **Schedule**: 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:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-12-23 04:02:52 +00:00

195 lines
5.8 KiB
JSON

{
"name": "@affine/server",
"private": true,
"version": "0.18.0",
"description": "Affine Node.js server",
"type": "module",
"bin": {
"run-test": "./scripts/run-test.ts"
},
"scripts": {
"build": "tsc",
"start": "node --loader ts-node/esm/transpile-only.mjs ./src/index.ts",
"dev": "nodemon ./src/index.ts",
"test": "ava --concurrency 1 --serial",
"test:copilot": "ava \"tests/**/copilot-*.spec.ts\"",
"test:coverage": "c8 ava --concurrency 1 --serial",
"test:copilot:coverage": "c8 ava --timeout=5m \"tests/**/copilot-*.spec.ts\"",
"postinstall": "prisma generate",
"data-migration": "NODE_ENV=script node --loader ts-node/esm/transpile-only.mjs ./src/data/index.ts",
"predeploy": "yarn prisma migrate deploy && node --import ./scripts/register.js ./dist/data/index.js run"
},
"dependencies": {
"@apollo/server": "^4.11.2",
"@aws-sdk/client-s3": "^3.709.0",
"@fal-ai/serverless-client": "^0.15.0",
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.20.0",
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.4.1",
"@google-cloud/opentelemetry-resource-util": "^2.4.0",
"@nestjs/apollo": "^12.2.2",
"@nestjs/common": "^10.4.15",
"@nestjs/core": "^10.4.15",
"@nestjs/event-emitter": "^2.1.1",
"@nestjs/graphql": "^12.2.2",
"@nestjs/platform-express": "^10.4.15",
"@nestjs/platform-socket.io": "^10.4.15",
"@nestjs/schedule": "^4.1.2",
"@nestjs/throttler": "6.3.0",
"@nestjs/websockets": "^10.4.15",
"@node-rs/argon2": "^2.0.2",
"@node-rs/crc32": "^1.10.6",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/exporter-prometheus": "^0.57.0",
"@opentelemetry/exporter-zipkin": "^1.29.0",
"@opentelemetry/host-metrics": "^0.35.4",
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/instrumentation-graphql": "^0.47.0",
"@opentelemetry/instrumentation-http": "^0.57.0",
"@opentelemetry/instrumentation-ioredis": "^0.47.0",
"@opentelemetry/instrumentation-nestjs-core": "^0.44.0",
"@opentelemetry/instrumentation-socket.io": "^0.46.0",
"@opentelemetry/resources": "^1.29.0",
"@opentelemetry/sdk-metrics": "^1.29.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.29.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"@prisma/client": "^5.22.0",
"@prisma/instrumentation": "^5.22.0",
"@socket.io/redis-adapter": "^8.3.0",
"cookie-parser": "^1.4.7",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"fast-xml-parser": "^4.5.0",
"get-stream": "^9.0.1",
"graphql": "^16.9.0",
"graphql-scalars": "^1.24.0",
"graphql-upload": "^17.0.0",
"html-validate": "^9.0.0",
"ioredis": "^5.4.1",
"is-mobile": "^5.0.0",
"keyv": "^5.2.2",
"lodash-es": "^4.17.21",
"mixpanel": "^0.18.0",
"mustache": "^4.2.0",
"nanoid": "^5.0.9",
"nest-commander": "^3.15.0",
"nestjs-throttler-storage-redis": "^0.5.1",
"nodemailer": "^6.9.16",
"on-headers": "^1.0.2",
"openai": "^4.76.2",
"piscina": "^5.0.0-alpha.0",
"prisma": "^5.22.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"ses": "^1.10.0",
"socket.io": "^4.8.1",
"stripe": "^17.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch",
"zod": "^3.24.1"
},
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/server-native": "workspace:*",
"@nestjs/testing": "^10.4.15",
"@types/cookie-parser": "^1.4.8",
"@types/express": "^4.17.21",
"@types/graphql-upload": "^17.0.0",
"@types/keyv": "^4.2.0",
"@types/lodash-es": "^4.17.12",
"@types/mixpanel": "^2.14.9",
"@types/mustache": "^4.2.5",
"@types/node": "^20.17.10",
"@types/nodemailer": "^6.4.17",
"@types/on-headers": "^1.0.3",
"@types/sinon": "^17.0.3",
"@types/supertest": "^6.0.2",
"ava": "^6.2.0",
"c8": "^10.1.3",
"nodemon": "^3.1.7",
"sinon": "^19.0.2",
"supertest": "^7.0.0"
},
"ava": {
"timeout": "1m",
"extensions": {
"ts": "module"
},
"workerThreads": false,
"nodeArguments": [
"--trace-sigint",
"--loader",
"ts-node/esm/transpile-only.mjs",
"--es-module-specifier-resolution=node"
],
"watchMode": {
"ignoreChanges": [
"static/**",
"**/*.gen.*"
]
},
"files": [
"**/__tests__/**/*.spec.ts",
"tests/**/*.spec.ts",
"tests/**/*.e2e.ts"
],
"require": [
"./src/prelude.ts"
],
"environmentVariables": {
"TS_NODE_PROJECT": "./tests/tsconfig.json",
"NODE_ENV": "test",
"MAILER_HOST": "0.0.0.0",
"MAILER_PORT": "1025",
"MAILER_USER": "noreply@toeverything.info",
"MAILER_PASSWORD": "affine",
"MAILER_SENDER": "noreply@toeverything.info",
"FEATURES_EARLY_ACCESS_PREVIEW": "false",
"DEPLOYMENT_TYPE": "affine"
}
},
"nodemonConfig": {
"exec": "node",
"script": "./src/index.ts",
"nodeArgs": [
"--loader",
"ts-node/esm.mjs",
"--es-module-specifier-resolution=node"
],
"ignore": [
"**/__tests__/**",
"**/dist/**",
"*.gen.*"
],
"env": {
"NODE_ENV": "development",
"AFFINE_SERVER_EXTERNAL_URL": "http://localhost:8080",
"TS_NODE_TRANSPILE_ONLY": true,
"TS_NODE_PROJECT": "./tsconfig.json",
"DEBUG": "affine:*",
"FORCE_COLOR": true,
"DEBUG_COLORS": true
},
"delay": 1000
},
"c8": {
"reporter": [
"text",
"lcov"
],
"report-dir": ".coverage",
"exclude": [
"scripts",
"node_modules",
"**/*.spec.ts",
"**/*.e2e.ts"
]
},
"stableVersion": "0.5.3",
"installConfig": {
"hoistingLimits": "workspaces"
}
}