Skip to content

Add numcodecs namespace and built-in shuffle/delta codecs#385

Merged
manzt merged 1 commit intomainfrom
push-xstqlqntwvrs
Apr 9, 2026
Merged

Add numcodecs namespace and built-in shuffle/delta codecs#385
manzt merged 1 commit intomainfrom
push-xstqlqntwvrs

Conversation

@manzt
Copy link
Copy Markdown
Owner

@manzt manzt commented Apr 9, 2026

V2 filters and compressors are now looked up under a numcodecs. prefix in the codec registry, matching zarr-python's naming convention. This separates the v2-specific codec namespace from v3 codecs and makes it clear where these codecs come from.

Existing codecs that serve both v2 and v3 (blosc, zstd, gzip, zlib, etc.) are registered under both names so nothing breaks. Adds numcodecs.shuffle and numcodecs.delta as built-in codecs since these are commonly requested v2 filters (#311, #315) and are trivial pure-JS implementations.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 9, 2026

🦋 Changeset detected

Latest commit: 54dd6c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
zarrita Minor
@zarrita/ndarray Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@manzt manzt added the enhancement New feature or request label Apr 9, 2026
@manzt manzt force-pushed the push-xstqlqntwvrs branch 2 times, most recently from 0fb168a to 05e81df Compare April 9, 2026 03:34
V2 filters and compressors are now looked up under a `numcodecs.` prefix
in the codec registry, matching zarr-python's naming convention. This
separates the v2-specific codec namespace from v3 codecs and makes it
clear where these codecs come from.

Existing codecs that serve both v2 and v3 (blosc, zstd, gzip, zlib, etc.)
are registered under both names so nothing breaks. Adds `numcodecs.shuffle`
and `numcodecs.delta` as built-in codecs since these are commonly requested
v2 filters (#311, #315) and are trivial pure-JS implementations.
@manzt manzt force-pushed the push-xstqlqntwvrs branch from 05e81df to 54dd6c1 Compare April 9, 2026 03:41
@manzt manzt merged commit 717a483 into main Apr 9, 2026
2 checks passed
@manzt manzt deleted the push-xstqlqntwvrs branch April 9, 2026 03:42
@github-actions github-actions Bot mentioned this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant