Repository navigation
chore(deps): bump @types/n3 from 1.26.1 to 1.26.6 in the production-dependencies group across 1 directory - #590
Conversation
davidwkeith
left a comment
There was a problem hiding this comment.
Review: changes requested
Blocking: @dwk/rdf no longer typechecks or builds. @types/n3 1.26.6 changes the Writer#end callback's result to string | undefined, which breaks src/turtle.ts:53. The inline comment has the error and a one-line fix. I reproduced it locally: typecheck and build fail on this head and pass on main. Tests still pass (68/68), so only the typecheck and build CI gates will catch it.
CONTRIBUTING.md / PR-convention gaps (Dependabot generated this PR, so whoever pushes the fix should handle these too):
- No changeset.
@types/n3is a runtimedependencyof the publishable@dwk/rdf, and with theturtle.tsfix above this becomes a source change as well. CONTRIBUTING §5 asks for a changeset on user-visible changes to a publishable package. Add apatchchangeset for@dwk/rdf(pnpm changeset). - PR title scope. CONTRIBUTING §6 says the scope is the package name minus
@dwk/.depsis not a package. The repo squash-merges, so the title is what lands ingit log. Suggested title:chore(rdf): bump @types/n3 from 1.26.1 to 1.26.6. Earlier Dependabot merges such as #567 keptchore(deps), so if that's an accepted exception, ignore this. - PR body doesn't use the template.
.github/PULL_REQUEST_TEMPLATE.mdrequires the headingsSummary,Packages affected(@dwk/rdf) andChecklist. The Dependabot body has none of them. Please add them, leaving checklist items that don't apply unchecked with a one-line reason.
Non-blocking: unrelated transitive lockfile churn (rolldown, postcss, a @napi-rs/wasm-runtime downgrade). Details in the file comment.
Generated by Claude Code
| }, | ||
| "dependencies": { | ||
| "@types/n3": "1.26.1", | ||
| "@types/n3": "1.26.6", |
There was a problem hiding this comment.
Blocking: this bump breaks @dwk/rdf typecheck and build. In @types/n3 1.26.6, the Writer#end callback types result as string | undefined, so packages/rdf/src/turtle.ts:53 stops compiling:
src/turtle.ts(53,68): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string | PromiseLike<string>'.
I reproduced it locally: pnpm --filter @dwk/rdf typecheck and build both fail on this head, and both pass on main. The 68 rdf tests still pass, so only the typecheck and build CI gates catch this.
Suggested fix in turtle.ts (n3 always passes a string on success, so the fallback never changes behaviour):
writer.end((error, result) =>
error ? reject(error) : resolve(result ?? ""),
);Because @types/n3 is a runtime dependency here, consumers who install @dwk/rdf get the new types too. The fix belongs in the same PR.
Generated by Claude Code
There was a problem hiding this comment.
Non-blocking: the lockfile changes more than the one package being bumped. It also moves transitive packages that have nothing to do with @types/n3: rolldown 1.1.5 → 1.1.8 (plus all of its platform bindings), @rolldown/pluginutils 1.0.1 → 1.1.1, postcss 8.5.31 → 8.5.33, source-map-js 1.2.2 → 1.2.3, tslib 2.8.1 → 2.9.1, and @napi-rs/wasm-runtime goes down 1.2.5 → 1.1.6 (pulled in by rolldown 1.1.8's wasm binding). pnpm install --frozen-lockfile succeeds and these are build-tool deps, so this probably doesn't matter. Still, check that the build CI job is green before merging, since a toolchain change is mixed into what reads as a types-only bump.
Generated by Claude Code
Bumps the production-dependencies group with 1 update in the / directory: [@types/n3](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/n3). Updates `@types/n3` from 1.26.1 to 1.26.6 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/n3) --- updated-dependencies: - dependency-name: "@types/n3" dependency-version: 1.26.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
aa4724e to
4b09ef5
Compare
Bumps the production-dependencies group with 1 update in the / directory: @types/n3.
Updates
@types/n3from 1.26.1 to 1.26.6Commits