@devopsplaybook.io/otel-utils 1.1.5-beta.26.446ba0f → 1.2.0-beta.27.0b19743

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"
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"
23
+ node_version: "22"
23
24
  secrets:
24
25
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
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",
3
- "version": "1.1.5-beta.26.446ba0f",
3
+ "version": "1.2.0-beta.27.0b19743",
4
4
  "description": "Utility to simplify integration with Open Telemetry",
5
5
  "keywords": [
6
6
  "Open",
@@ -15,8 +15,8 @@
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
  "dependencies": ""
22
22
  },
@@ -40,16 +40,14 @@
40
40
  "@opentelemetry/semantic-conventions": "^1.43.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@eslint/js": "^10.0.1",
43
+ "@swc/core": "^1.16.2",
44
+ "@swc/jest": "^0.2.39",
44
45
  "@types/jest": "^30.0.0",
45
46
  "@types/node": "^26.6.2",
46
47
  "@types/sqlite3": "^5.1.0",
47
- "eslint": "^10.11.0",
48
48
  "jest": "^30.5.2",
49
- "ts-jest": "^29.4.12",
50
- "ts-node": "^10.9.2",
51
- "typescript": "^6.0.3",
52
- "typescript-eslint": "^8.70.0"
49
+ "oxlint": "^1.83.0",
50
+ "typescript": "^7.0.2"
53
51
  },
54
52
  "publishConfig": {
55
53
  "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
- );