@anephenix/objection-relations 0.0.6 → 0.0.9

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +18 -16
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # objection-relations
2
2
 
3
- [![Node.js CI](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml/badge.svg)](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/33642d97558a57dc7c1d/maintainability)](https://codeclimate.com/github/anephenix/objection-relations/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/33642d97558a57dc7c1d/test_coverage)](https://codeclimate.com/github/anephenix/objection-relations/test_coverage)
3
+ [![npm version](https://badge.fury.io/js/%40anephenix%2Fobjection-relations.svg)](https://badge.fury.io/js/%40anephenix%2Fobjection-relations) [![Node.js CI](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml/badge.svg)](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/33642d97558a57dc7c1d/maintainability)](https://codeclimate.com/github/anephenix/objection-relations/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/33642d97558a57dc7c1d/test_coverage)](https://codeclimate.com/github/anephenix/objection-relations/test_coverage) [![Socket Badge](https://socket.dev/api/badge/npm/package/@anephenix/objection-relations)](https://socket.dev/npm/package/@anephenix/objection-relations)
4
4
 
5
5
  A relations helper for Objection.js. This provides a convenient way to define
6
6
  relations in the `relationMappings` function on an Objection.js model.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.6",
2
+ "version": "0.0.9",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -16,32 +16,38 @@
16
16
  "pluralize": "^8.0.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@size-limit/preset-small-lib": "^11.1.6",
19
+ "@eslint/js": "^9.19.0",
20
20
  "@types/jest": "^29.5.14",
21
21
  "@types/lodash.snakecase": "^4.1.9",
22
22
  "@types/pluralize": "^0.0.33",
23
+ "eslint": "^9.20.1",
24
+ "globals": "^15.15.0",
23
25
  "husky": "^9.1.7",
24
- "npm-upgrade": "^3.1.0",
26
+ "mocha": "^11.1.0",
27
+ "nyc": "^17.1.0",
25
28
  "size-limit": "^11.1.6",
26
- "tsdx": "^0.14.1",
27
- "tslib": "^2.8.1",
28
- "typescript": "^5.7.3"
29
+ "size-limit-preset-node-lib": "^0.3.0",
30
+ "ts-node": "^10.9.2",
31
+ "typescript": "^5.7.3",
32
+ "typescript-eslint": "^8.24.0"
29
33
  },
30
34
  "author": "Paul Jensen <paul@anephenix.com>",
31
35
  "scripts": {
32
36
  "analyze": "size-limit --why",
33
- "build": "tsdx build --target node",
34
- "lint": "tsdx lint --fix",
37
+ "build": "tsc --project tsconfig.json",
38
+ "cover": "NODE_ENV=test npx nyc --reporter=lcov npm t",
39
+ "lint": "npx eslint .",
35
40
  "prepare-patch-release": "npm run update-changelog && git add CHANGELOG.md && git commit -m \"Updated changelog\" && npm version patch",
36
41
  "publish-patch-release": "npm run prepare-patch-release && git push origin main && git push --tags",
37
42
  "size": "size-limit",
38
43
  "start": "tsdx watch --target node",
39
- "test": "tsdx test --collectCoverage",
40
- "update-changelog": "node scripts/update-changelog.js"
44
+ "test": "NODE_ENV=test npx mocha --require ts-node/register --extensions ts test/**/*",
45
+ "update-changelog": "npx ts-node scripts/update-changelog.ts",
46
+ "prepare": "husky"
41
47
  },
42
48
  "husky": {
43
49
  "hooks": {
44
- "pre-commit": "tsdx lint && tsdx test"
50
+ "pre-commit": "npm run lint && npm test"
45
51
  }
46
52
  },
47
53
  "name": "@anephenix/objection-relations",
@@ -54,11 +60,7 @@
54
60
  },
55
61
  "size-limit": [
56
62
  {
57
- "path": "dist/objection-relations.cjs.production.min.js",
58
- "limit": "10 KB"
59
- },
60
- {
61
- "path": "dist/objection-relations.esm.js",
63
+ "path": "dist/*.js",
62
64
  "limit": "10 KB"
63
65
  }
64
66
  ]