uom-types 2.0.0 → 3.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uom-types",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Typesafe units with no runtime overhead.",
5
5
  "keywords": [
6
6
  "uom",
@@ -39,25 +39,23 @@
39
39
  },
40
40
  "./functions/higher-order": {
41
41
  "types": {
42
- "import": "./dist/functions-ho.d.mts",
43
- "require": "./dist/functions-ho.d.cts"
42
+ "import": "./dist/functions-higher-order.d.mts",
43
+ "require": "./dist/functions-higher-order.d.cts"
44
44
  },
45
- "import": "./dist/functions-ho.mjs",
46
- "require": "./dist/functions-ho.cjs"
45
+ "import": "./dist/functions-higher-order.mjs",
46
+ "require": "./dist/functions-higher-order.cjs"
47
47
  },
48
- "./si-units": {
48
+ "./units": {
49
49
  "types": {
50
- "import": "./dist/si-units.d.mts",
51
- "require": "./dist/si-units.d.cts"
50
+ "import": "./dist/units.d.mts",
51
+ "require": "./dist/units.d.cts"
52
52
  }
53
53
  },
54
- "./si-units/converters": {
54
+ "./units/converters": {
55
55
  "types": {
56
- "import": "./dist/si-units-converters.d.mts",
57
- "require": "./dist/si-units-converters.d.cts"
58
- },
59
- "import": "./dist/si-units-converters.mjs",
60
- "require": "./dist/si-units-converters.cjs"
56
+ "import": "./dist/units-converters.d.mts",
57
+ "require": "./dist/units-converters.d.cts"
58
+ }
61
59
  }
62
60
  },
63
61
  "files": [
@@ -67,10 +65,13 @@
67
65
  "README.md"
68
66
  ],
69
67
  "scripts": {
70
- "build": "pnpm run build:node && pnpm run build-post",
71
- "build-post": "node --no-warnings=ExperimentalWarning --loader=ts-paths-esm-loader/transpile-only --experimental-specifier-resolution=node ./scripts/post-build.ts",
68
+ "build": "pnpm run build-pre && pnpm run build:node",
69
+ "build-pre": "pnpm run generate-files",
72
70
  "build:node": "rimraf dist && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
73
71
  "cz": "git-cz",
72
+ "docs": "typedoc",
73
+ "docs:serve": "http-serve docs/generated",
74
+ "generate-files": "node --no-warnings=ExperimentalWarning --loader=ts-paths-esm-loader/transpile-only --experimental-specifier-resolution=node ./scripts/generate-files.ts",
74
75
  "lint": "pnpm run lint:js && pnpm run lint:md && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling",
75
76
  "lint:js": "eslint .",
76
77
  "lint:js-fix": "eslint . --fix",
@@ -81,68 +82,80 @@
81
82
  "lint:prettier": "prettier \"**/*\" --ignore-unknown --list-different",
82
83
  "lint:prettier-fix": "prettier \"**/*\" --ignore-unknown --write",
83
84
  "lint:spelling": "cspell \"**\" \".github/**/*\"",
84
- "prepare": "husky install",
85
- "release": "pnpm run release:semantic",
86
- "release:semantic": "semantic-release",
87
- "test": "pnpm run test:js && pnpm run test:types",
88
- "test:js": "c8 ava",
85
+ "prepare": "husky install && pnpm run generate-files",
86
+ "test": "pnpm run test-pre && pnpm run test:js && pnpm run test:types && pnpm run test:types-coverage",
87
+ "test-pre": "pnpm run build",
88
+ "test:js": "vitest --coverage --run",
89
+ "test:js:watch": "vitest",
89
90
  "test:types": "tsd -t './dist/index.d.mts' -f 'tests/**/*.test-d.ts'",
91
+ "test:types-coverage": "type-coverage --project tsconfig.build.json --at-least",
92
+ "test:types-coverage:report": "typescript-coverage-report --project tsconfig.build.json",
90
93
  "type-check": "tsc --noEmit"
91
94
  },
92
95
  "devDependencies": {
93
- "@commitlint/cli": "17.6.6",
94
- "@commitlint/config-conventional": "17.6.6",
96
+ "@commitlint/cli": "17.6.7",
97
+ "@commitlint/config-conventional": "17.6.7",
95
98
  "@cspell/dict-cryptocurrencies": "3.0.1",
96
- "@rebeccastevens/eslint-config": "1.7.8",
99
+ "@rebeccastevens/eslint-config": "2.0.3",
100
+ "@rollup/plugin-replace": "5.0.2",
97
101
  "@rollup/plugin-typescript": "11.1.2",
98
102
  "@semantic-release/changelog": "6.0.3",
99
103
  "@semantic-release/commit-analyzer": "10.0.1",
100
104
  "@semantic-release/git": "10.0.1",
101
- "@semantic-release/github": "9.0.3",
105
+ "@semantic-release/github": "9.0.4",
102
106
  "@semantic-release/npm": "10.0.4",
103
107
  "@semantic-release/release-notes-generator": "11.0.4",
104
- "@types/node": "18.15.11",
108
+ "@types/node": "18.17.3",
105
109
  "@types/rollup-plugin-auto-external": "2.0.2",
106
- "@typescript-eslint/eslint-plugin": "5.61.0",
107
- "@typescript-eslint/parser": "5.61.0",
108
- "ava": "5.3.1",
109
- "c8": "8.0.0",
110
+ "@typescript-eslint/eslint-plugin": "6.2.1",
111
+ "@typescript-eslint/parser": "6.2.1",
112
+ "@vitest/coverage-v8": "0.34.1",
110
113
  "commitizen": "4.3.0",
111
- "cspell": "6.31.1",
114
+ "cspell": "6.31.2",
112
115
  "cz-conventional-changelog": "3.3.0",
113
- "eslint": "8.44.0",
114
- "eslint-config-prettier": "8.8.0",
116
+ "eslint": "8.46.0",
117
+ "eslint-config-prettier": "9.0.0",
115
118
  "eslint-import-resolver-typescript": "3.5.5",
116
- "eslint-plugin-ava": "14.0.0",
117
119
  "eslint-plugin-eslint-comments": "3.2.0",
118
- "eslint-plugin-functional": "5.0.8",
119
- "eslint-plugin-import": "2.27.5",
120
- "eslint-plugin-jsdoc": "46.4.3",
121
- "eslint-plugin-markdown": "3.0.0",
120
+ "eslint-plugin-functional": "6.0.0",
121
+ "eslint-plugin-import": "2.28.0",
122
+ "eslint-plugin-jsdoc": "46.4.6",
123
+ "eslint-plugin-markdown": "3.0.1",
122
124
  "eslint-plugin-n": "16.0.1",
123
125
  "eslint-plugin-optimize-regex": "1.2.1",
124
- "eslint-plugin-prettier": "5.0.0-alpha.1",
126
+ "eslint-plugin-prettier": "5.0.0",
125
127
  "eslint-plugin-promise": "6.1.1",
126
- "eslint-plugin-sonarjs": "0.19.0",
127
- "eslint-plugin-unicorn": "47.0.0",
128
+ "eslint-plugin-sonarjs": "0.20.0",
129
+ "eslint-plugin-unicorn": "48.0.1",
130
+ "eslint-plugin-vitest": "0.2.8",
131
+ "http-serve": "1.0.1",
128
132
  "husky": "8.0.3",
129
- "knip": "2.14.3",
133
+ "knip": "2.19.0",
130
134
  "lint-staged": "13.2.3",
131
135
  "markdownlint-cli": "0.35.0",
132
- "prettier": "3.0.0",
133
- "prettier-plugin-packagejson": "2.4.4",
136
+ "prettier": "3.0.1",
137
+ "prettier-plugin-packagejson": "2.4.5",
134
138
  "rimraf": "5.0.1",
135
- "rollup": "3.26.1",
139
+ "rollup": "3.27.2",
136
140
  "rollup-plugin-auto-external": "2.0.0",
137
- "rollup-plugin-dts": "5.3.0",
141
+ "rollup-plugin-dts": "5.3.1",
138
142
  "semantic-release": "21.0.7",
139
143
  "ts-node": "10.9.1",
140
144
  "ts-paths-esm-loader": "1.4.3",
145
+ "ts-plugin-type-coverage": "2.26.0",
146
+ "tsafe": "1.6.4",
141
147
  "tsconfig-paths": "4.2.0",
142
148
  "tsd": "0.28.1",
143
- "typescript": "5.1.6"
149
+ "type-coverage": "2.26.0",
150
+ "typedoc": "0.24.8",
151
+ "typedoc-plugin-coverage": "2.1.0",
152
+ "typedoc-plugin-versions": "0.2.3",
153
+ "typescript": "5.1.6",
154
+ "typescript-coverage-report": "0.8.0",
155
+ "vite-tsconfig-paths": "4.2.0",
156
+ "vitest": "0.34.1"
144
157
  },
145
- "packageManager": "pnpm@8.6.6",
158
+ "packageManager": "pnpm@8.6.12",
146
159
  "engines": {
147
160
  "node": ">=16.0.0"
148
161
  }
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1 +0,0 @@
1
-
@@ -1,5 +0,0 @@
1
- import { Unit } from './index.cjs';
2
-
3
- type Decimal = Unit<{}>;
4
-
5
- export { Decimal };
@@ -1,5 +0,0 @@
1
- import { Unit } from './index.mjs';
2
-
3
- type Decimal = Unit<{}>;
4
-
5
- export { Decimal };