Skip to content

chore: migrate docsearch and imagescript to npm/jsr imports#3732

Merged
bartlomieju merged 4 commits into
mainfrom
chore/migrate-docsearch-imagescript-imports
Mar 28, 2026
Merged

chore: migrate docsearch and imagescript to npm/jsr imports#3732
bartlomieju merged 4 commits into
mainfrom
chore/migrate-docsearch-imagescript-imports

Conversation

@bartlomieju

Copy link
Copy Markdown
Contributor

Summary

  • docsearch: Replaced esm.sh URL with npm:@docsearch/js@^3.5.2. Added a type cast workaround in SearchButton.tsx since Deno's type checker treats this npm package as CJS (missing "type": "module").
  • imagescript: Replaced deno.land/x URL with jsr:@matmen/imagescript@^1.3.0. Clean swap, no code changes needed.

These were legacy URL-based imports from before Deno had native npm: and jsr: support.

Test plan

  • deno check --allow-import passes for both affected files
  • deno task ok passes (fmt, lint, types, 506 tests)

🤖 Generated with Claude Code

Replace legacy URL-based imports with proper registry imports:
- docsearch: esm.sh URL → npm:@docsearch/js
- imagescript: deno.land/x URL → jsr:@matmen/imagescript

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bartlomieju bartlomieju force-pushed the chore/migrate-docsearch-imagescript-imports branch from 6c9b345 to 33ca329 Compare March 28, 2026 11:34
@bartlomieju bartlomieju enabled auto-merge (squash) March 28, 2026 11:41
@bartlomieju bartlomieju merged commit 220368a into main Mar 28, 2026
9 checks passed
@bartlomieju bartlomieju deleted the chore/migrate-docsearch-imagescript-imports branch March 28, 2026 11:44
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.

2 participants