Skip to content

Commit bd091ac

Browse files
feat(deps): use version ranges for direct dependencies (#26)
A library shouldn't pin direct dependencies to allow consumers to upgrade to newer transient dependency versions, e.g. for security patches. Dev dependencies should continue to be pinned. See also [Renovate Docs](https://docs.renovatebot.com/dependency-pinning/#ranges-for-libraries). Our Renovate config applies the same approach: https://github.com/emartech/json-logger-js/blob/28f846bff85afbb4d8755fad83bbcde868fb28b4/renovate.json#L6
1 parent 28f846b commit bd091ac

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,27 @@
1616
"access": "public"
1717
},
1818
"author": "Emartech",
19-
"engines": {
20-
"node": ">=14"
19+
"repository": {
20+
"type": "git",
21+
"url": "git+https://github.com/emartech/json-logger-js.git"
22+
},
23+
"bugs": {
24+
"url": "https://github.com/emartech/json-logger-js/issues"
2125
},
26+
"homepage": "https://github.com/emartech/json-logger-js#readme",
2227
"license": "MIT",
2328
"keywords": [
2429
"log",
2530
"logging",
2631
"debug",
2732
"json"
2833
],
34+
"engines": {
35+
"node": ">=14"
36+
},
37+
"dependencies": {
38+
"lodash": "^4.17.21"
39+
},
2940
"devDependencies": {
3041
"@types/chai": "4.3.3",
3142
"@types/lodash": "4.14.198",
@@ -50,16 +61,5 @@
5061
"sinon-chai": "3.7.0",
5162
"ts-node": "10.9.1",
5263
"typescript": "4.8.4"
53-
},
54-
"repository": {
55-
"type": "git",
56-
"url": "git+https://github.com/emartech/json-logger-js.git"
57-
},
58-
"bugs": {
59-
"url": "https://github.com/emartech/json-logger-js/issues"
60-
},
61-
"homepage": "https://github.com/emartech/json-logger-js#readme",
62-
"dependencies": {
63-
"lodash": "4.17.21"
6464
}
6565
}

0 commit comments

Comments
 (0)