@digitraffic/common 2026.2.23-1 → 2026.3.2-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/README.md +3 -8
- package/package.json +39 -32
package/README.md
CHANGED
|
@@ -42,19 +42,14 @@ Format code
|
|
|
42
42
|
|
|
43
43
|
## Update deps
|
|
44
44
|
|
|
45
|
-
To update all dependencies to the latest versions
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
pnpm up
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
If you want to ignore the version ranges in package.json and install the
|
|
52
|
-
absolute latest versions:
|
|
45
|
+
This project uses exact dependency versions (no semver ranges). To update all dependencies to the latest versions:
|
|
53
46
|
|
|
54
47
|
```bash
|
|
55
48
|
pnpm up --latest
|
|
56
49
|
```
|
|
57
50
|
|
|
51
|
+
After updating, run `pnpm audit` to check for vulnerabilities. If vulnerabilities exist in transitive dependencies, you may need to add overrides in `package.json` and/or exclusions in `.npmrc`. See [DEPENDENCY_OVERRIDES.md](./DEPENDENCY_OVERRIDES.md) for details.
|
|
52
|
+
|
|
58
53
|
## How to use
|
|
59
54
|
|
|
60
55
|
In package.json dependencies:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitraffic/common",
|
|
3
|
-
"version": "2026.2
|
|
3
|
+
"version": "2026.3.2-1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"repository": {
|
|
@@ -107,18 +107,34 @@
|
|
|
107
107
|
"dist/**/*.js",
|
|
108
108
|
"dist/**/*.d.ts"
|
|
109
109
|
],
|
|
110
|
+
"scripts": {
|
|
111
|
+
"build": "heft build --clean",
|
|
112
|
+
"build:watch": "heft build-watch",
|
|
113
|
+
"format:check": "biome check ",
|
|
114
|
+
"format:check-staged": "biome check --staged",
|
|
115
|
+
"format:fix": "biome check --write",
|
|
116
|
+
"format:fix-staged": "biome check --staged --write",
|
|
117
|
+
"format:package-json": "sort-package-json",
|
|
118
|
+
"prepublishOnly": "pnpm build && pnpm test",
|
|
119
|
+
"setup": "pnpm install; node --experimental-strip-types scripts/setup-digitraffic-common.ts",
|
|
120
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' heft test --clean --max-workers=1",
|
|
121
|
+
"test:inspect": "node --inspect-brk --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand",
|
|
122
|
+
"test:jest": "node --trace-warnings --experimental-vm-modules --max-old-space-size=1536 --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand --verbose",
|
|
123
|
+
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --max-workers=1",
|
|
124
|
+
"test:watch:no-coverage": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --disable-code-coverage --max-workers=1"
|
|
125
|
+
},
|
|
110
126
|
"devDependencies": {
|
|
111
127
|
"@aws-sdk/client-api-gateway": "3.995.0",
|
|
112
128
|
"@aws-sdk/client-s3": "3.995.0",
|
|
113
129
|
"@aws-sdk/client-secrets-manager": "3.995.0",
|
|
114
130
|
"@aws-sdk/client-sns": "3.995.0",
|
|
115
131
|
"@aws-sdk/lib-storage": "3.995.0",
|
|
116
|
-
"@biomejs/biome": "2.
|
|
132
|
+
"@biomejs/biome": "2.4.4",
|
|
117
133
|
"@date-fns/tz": "1.4.1",
|
|
118
134
|
"@jest/globals": "30.2.0",
|
|
119
|
-
"@rushstack/heft": "1.
|
|
120
|
-
"@rushstack/heft-jest-plugin": "1.
|
|
121
|
-
"@rushstack/heft-typescript-plugin": "1.
|
|
135
|
+
"@rushstack/heft": "1.2.3",
|
|
136
|
+
"@rushstack/heft-jest-plugin": "1.2.3",
|
|
137
|
+
"@rushstack/heft-typescript-plugin": "1.2.3",
|
|
122
138
|
"@smithy/fetch-http-handler": "5.3.9",
|
|
123
139
|
"@smithy/types": "4.12.0",
|
|
124
140
|
"@types/aws-lambda": "8.10.160",
|
|
@@ -128,10 +144,10 @@
|
|
|
128
144
|
"@types/jest": "30.0.0",
|
|
129
145
|
"@types/lodash-es": "4.17.12",
|
|
130
146
|
"@types/madge": "5.0.3",
|
|
131
|
-
"@types/node": "25.0
|
|
132
|
-
"aws-cdk-lib": "2.
|
|
147
|
+
"@types/node": "25.3.0",
|
|
148
|
+
"aws-cdk-lib": "2.239.0",
|
|
133
149
|
"change-case": "5.4.4",
|
|
134
|
-
"constructs": "10.
|
|
150
|
+
"constructs": "10.5.1",
|
|
135
151
|
"date-fns": "4.1.0",
|
|
136
152
|
"es-toolkit": "1.44.0",
|
|
137
153
|
"etag": "1.8.1",
|
|
@@ -139,13 +155,13 @@
|
|
|
139
155
|
"jest": "30.2.0",
|
|
140
156
|
"jest-junit": "16.0.0",
|
|
141
157
|
"ky": "1.14.3",
|
|
142
|
-
"lefthook": "2.
|
|
158
|
+
"lefthook": "2.1.1",
|
|
143
159
|
"lodash-es": "4.17.23",
|
|
144
160
|
"madge": "8.0.0",
|
|
145
161
|
"pg-native": "3.5.2",
|
|
146
|
-
"pg-promise": "12.
|
|
147
|
-
"pg-query-stream": "4.
|
|
148
|
-
"rimraf": "6.1.
|
|
162
|
+
"pg-promise": "12.6.1",
|
|
163
|
+
"pg-query-stream": "4.12.0",
|
|
164
|
+
"rimraf": "6.1.3",
|
|
149
165
|
"sort-package-json": "3.6.1",
|
|
150
166
|
"ts-jest": "29.4.6",
|
|
151
167
|
"typescript": "5.9.3",
|
|
@@ -153,11 +169,11 @@
|
|
|
153
169
|
"zod": "4.3.6"
|
|
154
170
|
},
|
|
155
171
|
"peerDependencies": {
|
|
156
|
-
"@aws-sdk/client-api-gateway": "3.
|
|
157
|
-
"@aws-sdk/client-s3": "3.
|
|
158
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
159
|
-
"@aws-sdk/client-sns": "3.
|
|
160
|
-
"@aws-sdk/lib-storage": "3.
|
|
172
|
+
"@aws-sdk/client-api-gateway": "3.975.0",
|
|
173
|
+
"@aws-sdk/client-s3": "3.975.0",
|
|
174
|
+
"@aws-sdk/client-secrets-manager": "3.975.0",
|
|
175
|
+
"@aws-sdk/client-sns": "3.975.0",
|
|
176
|
+
"@aws-sdk/lib-storage": "3.975.0",
|
|
161
177
|
"@date-fns/tz": "1.4.1",
|
|
162
178
|
"@smithy/fetch-http-handler": "5.3.9",
|
|
163
179
|
"@smithy/node-http-handler": "4.4.8",
|
|
@@ -176,19 +192,10 @@
|
|
|
176
192
|
"engines": {
|
|
177
193
|
"node": ">=24 <25"
|
|
178
194
|
},
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"format:fix": "biome check --write",
|
|
185
|
-
"format:fix-staged": "biome check --staged --write",
|
|
186
|
-
"format:package-json": "sort-package-json",
|
|
187
|
-
"setup": "pnpm install; node --experimental-strip-types scripts/setup-digitraffic-common.ts",
|
|
188
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules' heft test --clean --max-workers=1",
|
|
189
|
-
"test:inspect": "node --inspect-brk --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand",
|
|
190
|
-
"test:jest": "node --trace-warnings --experimental-vm-modules --max-old-space-size=1536 --expose-gc ./node_modules/jest/bin/jest.js --detectOpenHandles --forceExit --coverage --coverageDirectory=output/coverage/jest --logHeapUsage --runInBand --verbose",
|
|
191
|
-
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --max-workers=1",
|
|
192
|
-
"test:watch:no-coverage": "NODE_OPTIONS='--experimental-vm-modules' heft test-watch --disable-code-coverage --max-workers=1"
|
|
195
|
+
"pnpm": {
|
|
196
|
+
"overrides": {
|
|
197
|
+
"fast-xml-parser": "5.3.8",
|
|
198
|
+
"ajv": "8.18.0"
|
|
199
|
+
}
|
|
193
200
|
}
|
|
194
|
-
}
|
|
201
|
+
}
|