@devopsplaybook.io/otel-utils-fastify 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,5 +11,6 @@ jobs:
11
11
  uses: devopsplaybook-io/common-utils/.github/workflows/reusable-npm-merge.yml@main
12
12
  with:
13
13
  npm_package_name: "@devopsplaybook.io/otel-utils-fastify"
14
+ node_version: "22"
14
15
  secrets:
15
16
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -20,5 +20,6 @@ jobs:
20
20
  uses: devopsplaybook-io/common-utils/.github/workflows/reusable-npm-pr.yml@main
21
21
  with:
22
22
  npm_package_name: "@devopsplaybook.io/otel-utils-fastify"
23
+ node_version: "22"
23
24
  secrets:
24
25
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md CHANGED
@@ -122,5 +122,5 @@ The span is stored in a `WeakMap` rather than as a property on the request objec
122
122
  ## Build
123
123
 
124
124
  ```bash
125
- npm run build # tsc → dist/
125
+ npm run build # tsc → dist/, then type-checks the spec files (tsc --noEmit)
126
126
  ```
package/jest.config.js CHANGED
@@ -2,12 +2,15 @@ module.exports = {
2
2
  moduleFileExtensions: ["ts", "js"],
3
3
  transform: {
4
4
  "^.+\\.(ts|tsx)$": [
5
- "ts-jest",
5
+ "@swc/jest",
6
6
  {
7
- tsconfig: "tsconfig.spec.json",
7
+ jsc: {
8
+ target: "es2019",
9
+ },
8
10
  },
9
11
  ],
10
12
  },
13
+ coverageProvider: "v8",
11
14
  testMatch: ["/**/src/**/*.spec.(ts|js)"],
12
15
  testPathIgnorePatterns: ["/node_modules/", "/dist/"],
13
16
  testEnvironment: "node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopsplaybook.io/otel-utils-fastify",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "description": "Utility to simplify integration with Open Telemetry for Fastify API Server",
5
5
  "keywords": [
6
6
  "Open Telemetry",
@@ -15,12 +15,12 @@
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
17
  "scripts": {
18
- "build": "tsc",
19
- "lint": "eslint src",
18
+ "build": "tsc && tsc -p tsconfig.spec.json --noEmit",
19
+ "lint": "oxlint src",
20
20
  "test": "jest --coverage"
21
21
  },
22
22
  "dependencies": {
23
- "@devopsplaybook.io/otel-utils": "^1.1.5",
23
+ "@devopsplaybook.io/otel-utils": "^1.2.0",
24
24
  "@opentelemetry/api": "^1.9.1",
25
25
  "@opentelemetry/core": "^2.11.0",
26
26
  "@opentelemetry/sdk-trace-base": "^2.11.0",
@@ -28,15 +28,13 @@
28
28
  "fastify": "^5.12.5"
29
29
  },
30
30
  "devDependencies": {
31
- "@eslint/js": "^10.0.1",
31
+ "@swc/core": "^1.16.2",
32
+ "@swc/jest": "^0.2.39",
32
33
  "@types/jest": "^30.0.0",
33
34
  "@types/node": "^26.6.2",
34
- "eslint": "^10.11.0",
35
35
  "jest": "^30.5.2",
36
- "ts-jest": "^29.4.12",
37
- "ts-node": "^10.9.2",
38
- "typescript": "^6.0.3",
39
- "typescript-eslint": "^8.70.0"
36
+ "oxlint": "^1.83.0",
37
+ "typescript": "^7.0.2"
40
38
  },
41
39
  "publishConfig": {
42
40
  "access": "public"
@@ -3,5 +3,6 @@
3
3
  "compilerOptions": {
4
4
  "types": ["jest", "node"]
5
5
  },
6
- "include": ["src/**/*.spec.ts"]
6
+ "include": ["src/**/*.spec.ts"],
7
+ "exclude": []
7
8
  }
package/eslint.config.mjs DELETED
@@ -1,11 +0,0 @@
1
- // @ts-check
2
-
3
- import eslint from "@eslint/js";
4
- import tseslint from "typescript-eslint";
5
-
6
- export default tseslint.config(
7
- { ignores: ["dist/", "node_modules/"] },
8
- eslint.configs.recommended,
9
- ...tseslint.configs.strict,
10
- ...tseslint.configs.stylistic,
11
- );