@crashbytes/semantic-text-toolkit 1.0.2 → 1.0.3

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.
@@ -0,0 +1,21 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm test:*)",
5
+ "Bash(git add:*)",
6
+ "Bash(git commit:*)",
7
+ "Bash(git push:*)",
8
+ "Bash(ls:*)",
9
+ "Bash(npm run lint:*)",
10
+ "Bash(npm view:*)",
11
+ "Bash(npm version:*)",
12
+ "Bash(gh run list:*)",
13
+ "Bash(git tag:*)",
14
+ "Bash(gh run watch:*)",
15
+ "Bash(gh run view:*)",
16
+ "Bash(gh secret list:*)",
17
+ "Bash(gh api:*)",
18
+ "Bash(cat:*)"
19
+ ]
20
+ }
21
+ }
@@ -21,9 +21,10 @@ jobs:
21
21
  uses: actions/setup-node@v4
22
22
  with:
23
23
  node-version: ${{ matrix.node-version }}
24
+ cache: 'npm'
24
25
 
25
26
  - name: Install dependencies
26
- run: npm install
27
+ run: npm ci
27
28
 
28
29
  - name: Lint
29
30
  run: npm run lint
@@ -32,11 +33,13 @@ jobs:
32
33
  run: npm run build
33
34
 
34
35
  - name: Test with coverage
35
- run: npm test -- --coverage
36
+ run: npm run test:coverage
36
37
 
37
38
  - name: Upload coverage reports
38
39
  if: matrix.node-version == 20
39
40
  uses: codecov/codecov-action@v4
40
41
  with:
41
- file: ./coverage/lcov.info
42
+ token: ${{ secrets.CODECOV_TOKEN }}
43
+ files: ./coverage/lcov.info
44
+ flags: unittests
42
45
  fail_ci_if_error: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crashbytes/semantic-text-toolkit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Production-grade semantic text analysis with embeddings, similarity, and vector operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,6 +15,7 @@
15
15
  "build": "tsup src/index.ts --format cjs,esm --dts --clean",
16
16
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
17
17
  "test": "jest --passWithNoTests",
18
+ "test:coverage": "jest --coverage --passWithNoTests",
18
19
  "test:watch": "jest --watch",
19
20
  "lint": "eslint src --ext .ts",
20
21
  "prepublishOnly": "npm run build && npm test"
@@ -36,18 +37,18 @@
36
37
  "url": "https://github.com/CrashBytes/contentful-semantic-text-toolkit.git"
37
38
  },
38
39
  "dependencies": {
39
- "@xenova/transformers": "^2.17.1"
40
+ "@xenova/transformers": "^2.17.2"
40
41
  },
41
42
  "devDependencies": {
42
- "@types/jest": "^29.5.12",
43
- "@types/node": "^20.11.19",
44
- "@typescript-eslint/eslint-plugin": "^6.21.0",
45
- "@typescript-eslint/parser": "^6.21.0",
46
- "eslint": "^8.56.0",
47
- "jest": "^29.7.0",
48
- "ts-jest": "^29.1.2",
49
- "tsup": "^8.0.2",
50
- "typescript": "^5.3.3"
43
+ "@types/jest": "^30.0.0",
44
+ "@types/node": "^25.2.2",
45
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
46
+ "@typescript-eslint/parser": "^8.54.0",
47
+ "eslint": "^9.0.0",
48
+ "jest": "^30.2.0",
49
+ "ts-jest": "^29.4.6",
50
+ "tsup": "^8.5.1",
51
+ "typescript": "^5.9.3"
51
52
  },
52
53
  "engines": {
53
54
  "node": ">=16.0.0"