bibliothecary 12.1.5 → 12.1.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/bibliothecary/parsers/npm.rb +7 -3
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28a553f3ccc80b401878d7d1f05d9b2ca1504e52fc0705b101759665391f8316
|
4
|
+
data.tar.gz: db49351f1c52f112c5936a787135fe185bc4b4b9aab6ea02376fbe85735db512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a63120979de0f7f661383b6c7efafda1acc0787821eae36164bb7469fc35bf5f9028cab9cf1c53e1289d30103c57cbc064bdc9cffc91feb48745744359a0ac73
|
7
|
+
data.tar.gz: 802a1ee3a8031b6b47f29f369cf8cade92e835784cbb35e7abaf25a6035160bc35043fa8fb23b47c7720b6e54139eb0f607d176f772a40869ddc030687e95bd3
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [12.1.6] - 2025-04-29
|
17
|
+
|
18
|
+
### Added
|
19
|
+
|
20
|
+
### Changed
|
21
|
+
|
22
|
+
- Use JSON.parser.parse() in bun.lock parser to work around overriden JSON.parse() method.
|
23
|
+
- Don't raise an error in pnpm-lock.yaml v9 parser if devDependencies isn't found.
|
24
|
+
|
25
|
+
### Removed
|
26
|
+
|
16
27
|
## [12.1.5] - 2025-03-17
|
17
28
|
|
18
29
|
### Added
|
@@ -324,8 +324,8 @@ module Bibliothecary
|
|
324
324
|
end
|
325
325
|
|
326
326
|
def self.parse_v9_pnpm_lock(parsed_contents, _source = nil)
|
327
|
-
dependencies = parsed_contents.fetch("importers", {}).fetch(".", {}).fetch("dependencies")
|
328
|
-
dev_dependencies = parsed_contents.fetch("importers", {}).fetch(".", {}).fetch("devDependencies")
|
327
|
+
dependencies = parsed_contents.fetch("importers", {}).fetch(".", {}).fetch("dependencies", {})
|
328
|
+
dev_dependencies = parsed_contents.fetch("importers", {}).fetch(".", {}).fetch("devDependencies", {})
|
329
329
|
dependency_mapping = dependencies.merge(dev_dependencies)
|
330
330
|
|
331
331
|
# "dependencies" is in "packages" for < v9 and in "snapshots" for >= v9
|
@@ -395,7 +395,11 @@ module Bibliothecary
|
|
395
395
|
end
|
396
396
|
|
397
397
|
def self.parse_bun_lock(file_contents, options: {})
|
398
|
-
|
398
|
+
# The stdlib JSON gem 2.8+ supports trailing commas.
|
399
|
+
# The Oj gem does not support them as of writing, and will override
|
400
|
+
# JSON.parse() if Oj.mimic_json/optimize_rails has been called. Luckily
|
401
|
+
# JSON.parser is not overridden by Oj, so use it to call parse directly.
|
402
|
+
manifest = JSON.parser.parse(file_contents, allow_trailing_comma: true)
|
399
403
|
source = options.fetch(:filename, nil)
|
400
404
|
|
401
405
|
dev_deps = manifest.dig("workspaces", "", "devDependencies")&.keys&.to_set
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.1.
|
4
|
+
version: 12.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: commander
|