skillex 0.2.2 → 0.2.3
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/CHANGELOG.md +5 -0
- package/dist/install.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.3] - 2026-04-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- `skillex list` and all catalog commands no longer fail with `owner/repo` when a lockfile was written by an older version that used the placeholder default source — the placeholder is now silently replaced by `lgili/skillex`
|
|
14
|
+
|
|
10
15
|
## [0.2.2] - 2026-04-08
|
|
11
16
|
|
|
12
17
|
### Added
|
package/dist/install.js
CHANGED
|
@@ -673,11 +673,14 @@ function normalizeLockfile(existing, source, now) {
|
|
|
673
673
|
installed: existing.installed || {},
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
+
/** Repos that are known placeholder values written by older versions and must be ignored. */
|
|
677
|
+
const PLACEHOLDER_REPOS = new Set(["owner/repo"]);
|
|
676
678
|
function getLockfileSources(existing, fallbackSource) {
|
|
677
679
|
const legacyCatalog = getLegacyCatalog(existing);
|
|
678
680
|
const configuredSources = Array.isArray(existing?.sources)
|
|
679
681
|
? existing.sources
|
|
680
682
|
.filter((entry) => Boolean(entry?.repo))
|
|
683
|
+
.filter((entry) => !PLACEHOLDER_REPOS.has(entry.repo))
|
|
681
684
|
.map((entry) => ({
|
|
682
685
|
repo: entry.repo,
|
|
683
686
|
ref: entry.ref || DEFAULT_REF,
|
|
@@ -687,7 +690,7 @@ function getLockfileSources(existing, fallbackSource) {
|
|
|
687
690
|
if (configuredSources.length > 0) {
|
|
688
691
|
return dedupeSources(configuredSources);
|
|
689
692
|
}
|
|
690
|
-
if (legacyCatalog?.repo) {
|
|
693
|
+
if (legacyCatalog?.repo && !PLACEHOLDER_REPOS.has(legacyCatalog.repo)) {
|
|
691
694
|
return dedupeSources([
|
|
692
695
|
{
|
|
693
696
|
repo: legacyCatalog.repo,
|