mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 19:11:32 +03:00
48ebcfc778
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [stripe](https://redirect.github.com/stripe/stripe-node) | [`^16.0.0` -> `^17.0.0`](https://renovatebot.com/diffs/npm/stripe/16.12.0/17.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/stripe/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/stripe/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/stripe/16.12.0/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/stripe/16.12.0/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>stripe/stripe-node (stripe)</summary> ### [`v17.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1700---2024-10-01) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.12.0...v17.0.0) - [#​2192](https://redirect.github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. ##### ⚠️ Breaking changes due to changes in the Stripe API - Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert` - Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead - Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`. ##### ⚠️ Other Breaking changes in the SDK - Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are: - max retries: `1` -> `2` - max timeout (seconds): `2` -> `5` ##### Additions - Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` - Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams` - Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code` - Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` - Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) - Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). - Add method [rawRequest()](https://redirect.github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. ##### Changes - Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional - [#​2195](https://redirect.github.com/stripe/stripe-node/pull/2195) Remove parseSnapshotEvent - [#​2188](https://redirect.github.com/stripe/stripe-node/pull/2188) Revert "Add raw_request ([#​2185](https://redirect.github.com/stripe/stripe-node/issues/2185))" - [#​2185](https://redirect.github.com/stripe/stripe-node/pull/2185) Add raw_request Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url. Example: ```node import Stripe from 'stripe'; const stripe = new Stripe('sk_test_...'); const response = await stripe.rawRequest( 'POST', '/v1/beta_endpoint', { param: 123 }, { apiVersion: '2022-11-15; feature_beta=v3' } ); ``` </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:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
193 lines
5.7 KiB
JSON
193 lines
5.7 KiB
JSON
{
|
|
"name": "@affine/server",
|
|
"private": true,
|
|
"version": "0.17.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:coverage": "c8 ava --concurrency 1 --serial",
|
|
"postinstall": "prisma generate",
|
|
"data-migration": "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",
|
|
"predeploy:ts": "yarn prisma migrate deploy && node --loader ts-node/esm/transpile-only.mjs ./src/data/index.ts run"
|
|
},
|
|
"dependencies": {
|
|
"@apollo/server": "^4.10.2",
|
|
"@aws-sdk/client-s3": "^3.620.0",
|
|
"@fal-ai/serverless-client": "^0.14.0",
|
|
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.19.0",
|
|
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.2.0",
|
|
"@google-cloud/opentelemetry-resource-util": "^2.2.0",
|
|
"@nestjs/apollo": "^12.1.0",
|
|
"@nestjs/common": "^10.3.7",
|
|
"@nestjs/core": "^10.3.7",
|
|
"@nestjs/event-emitter": "^2.0.4",
|
|
"@nestjs/graphql": "^12.1.1",
|
|
"@nestjs/platform-express": "^10.3.7",
|
|
"@nestjs/platform-socket.io": "^10.3.7",
|
|
"@nestjs/schedule": "^4.0.1",
|
|
"@nestjs/throttler": "6.2.1",
|
|
"@nestjs/websockets": "^10.3.7",
|
|
"@node-rs/argon2": "^2.0.0",
|
|
"@node-rs/crc32": "^1.10.0",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/core": "^1.25.0",
|
|
"@opentelemetry/exporter-prometheus": "^0.53.0",
|
|
"@opentelemetry/exporter-zipkin": "^1.25.0",
|
|
"@opentelemetry/host-metrics": "^0.35.2",
|
|
"@opentelemetry/instrumentation": "^0.53.0",
|
|
"@opentelemetry/instrumentation-graphql": "^0.43.0",
|
|
"@opentelemetry/instrumentation-http": "^0.53.0",
|
|
"@opentelemetry/instrumentation-ioredis": "^0.43.0",
|
|
"@opentelemetry/instrumentation-nestjs-core": "^0.40.0",
|
|
"@opentelemetry/instrumentation-socket.io": "^0.42.0",
|
|
"@opentelemetry/resources": "^1.25.0",
|
|
"@opentelemetry/sdk-metrics": "^1.25.0",
|
|
"@opentelemetry/sdk-node": "^0.53.0",
|
|
"@opentelemetry/sdk-trace-node": "^1.25.0",
|
|
"@opentelemetry/semantic-conventions": "^1.25.0",
|
|
"@prisma/client": "^5.15.0",
|
|
"@prisma/instrumentation": "^5.15.0",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"cookie-parser": "^1.4.6",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"fast-xml-parser": "^4.4.0",
|
|
"get-stream": "^9.0.1",
|
|
"graphql": "^16.8.1",
|
|
"graphql-scalars": "^1.23.0",
|
|
"graphql-upload": "^16.0.2",
|
|
"html-validate": "^8.20.1",
|
|
"ioredis": "^5.3.2",
|
|
"is-mobile": "^4.0.0",
|
|
"keyv": "^5.0.0",
|
|
"lodash-es": "^4.17.21",
|
|
"mixpanel": "^0.18.0",
|
|
"mustache": "^4.2.0",
|
|
"nanoid": "^5.0.7",
|
|
"nest-commander": "^3.12.5",
|
|
"nestjs-throttler-storage-redis": "^0.5.0",
|
|
"nodemailer": "^6.9.13",
|
|
"on-headers": "^1.0.2",
|
|
"openai": "^4.33.0",
|
|
"piscina": "^4.5.1",
|
|
"prisma": "^5.12.1",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"ses": "^1.4.1",
|
|
"socket.io": "^4.7.5",
|
|
"stripe": "^17.0.0",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.4.5",
|
|
"yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@affine-test/kit": "workspace:*",
|
|
"@affine/server-native": "workspace:*",
|
|
"@nestjs/testing": "^10.3.7",
|
|
"@types/cookie-parser": "^1.4.7",
|
|
"@types/express": "^4.17.21",
|
|
"@types/graphql-upload": "^16.0.7",
|
|
"@types/keyv": "^4.2.0",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mixpanel": "^2.14.8",
|
|
"@types/mustache": "^4.2.5",
|
|
"@types/node": "^20.12.7",
|
|
"@types/nodemailer": "^6.4.14",
|
|
"@types/on-headers": "^1.0.3",
|
|
"@types/sinon": "^17.0.3",
|
|
"@types/supertest": "^6.0.2",
|
|
"ava": "^6.1.2",
|
|
"c8": "^10.0.0",
|
|
"nodemon": "^3.1.0",
|
|
"sinon": "^19.0.0",
|
|
"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": {
|
|
"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"
|
|
}
|
|
}
|