-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
140 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"extends": [ | ||
"./node_modules/@lokalise/biome-config/configs/biome-base.jsonc", | ||
"./node_modules/@lokalise/biome-config/configs/biome-package.jsonc" | ||
] | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"extends": [ | ||
"./node_modules/@lokalise/biome-config/configs/biome-base.jsonc", | ||
"./node_modules/@lokalise/biome-config/configs/biome-package.jsonc" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,79 @@ | ||
{ | ||
"name": "@lokalise/fastify-extras", | ||
"version": "21.6.0", | ||
"description": "Opinionated set of fastify plugins, commonly used in Lokalise", | ||
"author": { | ||
"name": "Lokalise", | ||
"url": "https://lokalise.com/" | ||
}, | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/lokalise/fastify-extras.git" | ||
}, | ||
"keywords": [ | ||
"fastify", | ||
"newrelic", | ||
"bugsnag", | ||
"request-context", | ||
"request-id", | ||
"split-io" | ||
], | ||
"homepage": "https://github.com/lokalise/fastify-extras", | ||
"files": [ | ||
"dist/**", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "commonjs", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "shx rm -rf ./dist && tsc", | ||
"test": "vitest", | ||
"test:coverage": "vitest --coverage", | ||
"test:ci": "npm run lint && npm run test:coverage", | ||
"lint": "biome check . && tsc --project tsconfig.lint.json --noEmit", | ||
"lint:fix": "biome check --write", | ||
"docker:start": "docker compose -f docker-compose.yml up --build -d redis && docker compose -f docker-compose.yml up --build -d wait_for_redis", | ||
"docker:stop": "docker compose -f docker-compose.yml down", | ||
"version": "auto-changelog -p && git add CHANGELOG.md" | ||
}, | ||
"dependencies": { | ||
"@bugsnag/js": "^7.22.7", | ||
"@supercharge/promise-pool": "^3.2.0", | ||
"@lokalise/error-utils": "^1.4.0", | ||
"@lokalise/background-jobs-common": "^4.0.1", | ||
"@splitsoftware/splitio": "^10.25.2", | ||
"@amplitude/analytics-node": "^1.3.5", | ||
"fastify-metrics": "^11.0.0", | ||
"fastify-plugin": "^4.5.1", | ||
"toad-cache": "^3.7.0", | ||
"tslib": "^2.6.2" | ||
}, | ||
"peerDependencies": { | ||
"fastify": "^4.24.3", | ||
"@fastify/jwt": "^8.0.1", | ||
"newrelic": ">=11.13.0", | ||
"pino": "^9.0.0", | ||
"zod": "^3.22.4", | ||
"bullmq": "^5.8.4", | ||
"ioredis": "^5.4.1" | ||
}, | ||
"devDependencies": { | ||
"@lokalise/backend-http-client": "^2.0.1", | ||
"@biomejs/biome": "^1.8.3", | ||
"@lokalise/biome-config": "^1.3.0", | ||
"@lokalise/node-core": "^11.2.0", | ||
"@types/newrelic": "^9.14.4", | ||
"@types/node": "^22.1.0", | ||
"@amplitude/analytics-types": "^2.5.0", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"auto-changelog": "^2.4.0", | ||
"bullmq": "^5.12.0", | ||
"ioredis": "^5.4.1", | ||
"fastify": "^4.28.1", | ||
"newrelic": "12.0.0", | ||
"pino": "^9.1.0", | ||
"pino-pretty": "^11.2.1", | ||
"shx": "^0.3.4", | ||
"typescript": "^5.5.4", | ||
"vitest": "^2.0.5", | ||
"zod": "^3.23.8" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
"name": "@lokalise/fastify-extras", | ||
"version": "21.6.0", | ||
"description": "Opinionated set of fastify plugins, commonly used in Lokalise", | ||
"author": { | ||
"name": "Lokalise", | ||
"url": "https://lokalise.com/" | ||
}, | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/lokalise/fastify-extras.git" | ||
}, | ||
"keywords": ["fastify", "newrelic", "bugsnag", "request-context", "request-id", "split-io"], | ||
"homepage": "https://github.com/lokalise/fastify-extras", | ||
"files": ["dist/**", "LICENSE", "README.md"], | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "commonjs", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "shx rm -rf ./dist && tsc", | ||
"test": "vitest", | ||
"test:coverage": "vitest --coverage", | ||
"test:ci": "npm run lint && npm run test:coverage", | ||
"lint": "biome check . && tsc --project tsconfig.lint.json --noEmit", | ||
"lint:fix": "biome check --write", | ||
"docker:start": "docker compose -f docker-compose.yml up --build -d redis && docker compose -f docker-compose.yml up --build -d wait_for_redis", | ||
"docker:stop": "docker compose -f docker-compose.yml down", | ||
"version": "auto-changelog -p && git add CHANGELOG.md" | ||
}, | ||
"dependencies": { | ||
"@bugsnag/js": "^7.25.0", | ||
"@supercharge/promise-pool": "^3.2.0", | ||
"@lokalise/error-utils": "^2.0.0", | ||
"@lokalise/background-jobs-common": "^7.0.0", | ||
"@splitsoftware/splitio": "^10.27.0", | ||
"@amplitude/analytics-node": "^1.3.5", | ||
"fastify-metrics": "^11.0.0", | ||
"fastify-plugin": "^4.5.1", | ||
"toad-cache": "^3.7.0", | ||
"tslib": "^2.6.3" | ||
}, | ||
"peerDependencies": { | ||
"fastify": "^4.24.3", | ||
"@fastify/jwt": "^8.0.1", | ||
"newrelic": ">=11.13.0", | ||
"pino": "^9.0.0", | ||
"zod": "^3.22.4", | ||
"bullmq": "^5.8.4", | ||
"ioredis": "^5.4.1" | ||
}, | ||
"devDependencies": { | ||
"@lokalise/backend-http-client": "^2.0.1", | ||
"@biomejs/biome": "^1.8.3", | ||
"@lokalise/biome-config": "^1.4.0", | ||
"@lokalise/node-core": "^11.2.0", | ||
"@types/newrelic": "^9.14.4", | ||
"@types/node": "^22.1.0", | ||
"@amplitude/analytics-types": "^2.5.0", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"auto-changelog": "^2.4.0", | ||
"bullmq": "^5.12.0", | ||
"ioredis": "^5.4.1", | ||
"fastify": "^4.28.1", | ||
"newrelic": "12.0.0", | ||
"pino": "^9.1.0", | ||
"pino-pretty": "^11.2.1", | ||
"shx": "^0.3.4", | ||
"typescript": "^5.5.4", | ||
"vitest": "^2.0.5", | ||
"zod": "^3.23.8" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"module": "commonjs", | ||
"target": "ES2022", | ||
"lib": ["ES2022", "dom"], | ||
"sourceMap": true, | ||
"declaration": true, | ||
"declarationMap": false, | ||
"types": ["node", "vitest/globals"], | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"strictNullChecks": true, | ||
"importHelpers": true, | ||
"baseUrl": ".", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["lib/**/*.ts"], | ||
"exclude": ["lib/**/*.spec.ts", "lib/**/*.test.ts"] | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"module": "commonjs", | ||
"target": "ES2022", | ||
"lib": ["ES2022", "dom"], | ||
"sourceMap": true, | ||
"declaration": true, | ||
"declarationMap": false, | ||
"types": ["node", "vitest/globals"], | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"strictNullChecks": true, | ||
"importHelpers": true, | ||
"baseUrl": ".", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["lib/**/*.ts"], | ||
"exclude": ["lib/**/*.spec.ts", "lib/**/*.test.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": ["./tsconfig.json"], | ||
"include": ["lib/**/*", "test/**/*", "vitest.config.mts"], | ||
"exclude": [] | ||
"extends": ["./tsconfig.json"], | ||
"include": ["lib/**/*", "test/**/*", "vitest.config.mts"], | ||
"exclude": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
import { defineConfig } from "vitest/config"; | ||
import { defineConfig } from 'vitest/config' | ||
|
||
// biome-ignore lint/style/noDefaultExport: vite expects default export | ||
export default defineConfig({ | ||
test: { | ||
globals: true, | ||
watch: false, | ||
poolOptions: { | ||
threads: { | ||
singleThread: true, | ||
}, | ||
}, | ||
pool: 'threads', | ||
environment: "node", | ||
reporters: ["verbose"], | ||
coverage: { | ||
provider: "v8", | ||
include: ["lib/**/*.ts"], | ||
exclude: [ | ||
"lib/**/*.spec.ts", | ||
"lib/types.ts", | ||
"lib/index.ts", | ||
"lib/errors/publicErrors.ts", | ||
], | ||
reporter: ["text"], | ||
all: true, | ||
thresholds: { | ||
lines: 65, | ||
functions: 80, | ||
branches: 85, | ||
statements: 65, | ||
}, | ||
}, | ||
}, | ||
}); | ||
test: { | ||
globals: true, | ||
watch: false, | ||
poolOptions: { | ||
threads: { | ||
singleThread: true, | ||
}, | ||
}, | ||
pool: 'threads', | ||
environment: 'node', | ||
reporters: ['verbose'], | ||
coverage: { | ||
provider: 'v8', | ||
include: ['lib/**/*.ts'], | ||
exclude: ['lib/**/*.spec.ts', 'lib/types.ts', 'lib/index.ts', 'lib/errors/publicErrors.ts'], | ||
reporter: ['text'], | ||
all: true, | ||
thresholds: { | ||
lines: 65, | ||
functions: 80, | ||
branches: 85, | ||
statements: 65, | ||
}, | ||
}, | ||
}, | ||
}) |