@npmcli/template-oss 4.10.0 → 4.11.0

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.
@@ -52,5 +52,6 @@ module.exports = (gh) => {
52
52
  pull: (number) => url('pull', number),
53
53
  commit: (sha) => url('commit', sha),
54
54
  compare: (a, b) => a ? url('compare', `${a.toString()}...${b.toString()}`) : null,
55
+ release: (tag) => url('releases', 'tag', tag.toString()),
55
56
  }
56
57
  }
@@ -99,7 +99,6 @@ module.exports = class extends NodeWorkspace {
99
99
  this.releasesByPackage.set(packageName, {
100
100
  path,
101
101
  component,
102
- currentTag: releasesByPath[path]?.tag,
103
102
  })
104
103
  }
105
104
 
@@ -139,9 +138,9 @@ module.exports = class extends NodeWorkspace {
139
138
  // Update notes with a link to each workspaces release notes
140
139
  // now that we have all of the releases in a single pull request
141
140
  release.notes = release.notes.replace(WORKSPACE_DEP, (_, depName, depVersion) => {
142
- const { currentTag, path, component } = this.releasesByPackage.get(depName)
141
+ const { path, component } = this.releasesByPackage.get(depName)
143
142
 
144
- const url = this.gh.compare(currentTag, new TagName(
143
+ const url = this.gh.release(new TagName(
145
144
  depVersion,
146
145
  component,
147
146
  this.repositoryConfig[path].tagSeparator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/content/index.js",
6
6
  "bin": {
@@ -76,8 +76,7 @@
76
76
  "test-ignore": "^(workspace/test-workspace)/"
77
77
  },
78
78
  "templateOSS": {
79
- "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
80
- "npmSpec": "8"
79
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten."
81
80
  },
82
81
  "engines": {
83
82
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0"