Skip to content

Add TypeScript definitions (2.2.1) - #19

Merged
wmantly merged 3 commits into
masterfrom
ts-bindings
Jul 18, 2026
Merged

wmantly merged 3 commits into
masterfrom
ts-bindings

Conversation

@wmantly

@wmantly wmantly commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds types/jq-repeat.d.ts: full TypeScript definitions augmenting the jQuery globals — JQRepeat.RepeatList<T> (typed methods, Partial<T> update overloads, hooks, parseKeys), $.scope (incl. has()/onNew), $.jqRepeat, and the scope* jQuery helper methods
  • Compile-only type test (types/jq-repeat.test-d.ts) checked in strict mode via npm run test:types, wired into CI and prepublishOnly
  • Ships in the npm tarball via the types field + files entry; README TypeScript section
  • Bumps version to 2.2.1 with its own CHANGELOG entry (2.2.0 already published)

Test plan

  • npm test — 64 passing
  • npm run test:types — tsc strict, clean
  • npm pack --dry-run — types/ included

🤖 Generated with Claude Code

wmantly and others added 3 commits July 18, 2026 10:35
types/jq-repeat.d.ts augments the jQuery globals with JQRepeat.RepeatList<T>,
$.scope, $.jqRepeat, and the scope* helpers. Wired into package.json (types
field, shipped in the tarball), compile-checked via `npm run test:types`
(strict mode) in CI and prepublishOnly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A lockless `npm install` on CI pulled a newer html-encoding-sniffer whose
ESM-only dependency breaks require() on Node 18/20. Commit the known-good
lockfile, switch CI and publish workflows to `npm ci` with caching, and move
the test matrix to Node 20/22/24 (18 is EOL; jsdom 27 needs >= 20).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@wmantly
wmantly merged commit 2241fce into master Jul 18, 2026
3 checks passed
@wmantly
wmantly deleted the ts-bindings branch July 18, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant