Skip to content

chore: rename npm package to emberdb, add oidc trusted publishing#332

Merged
kacy merged 4 commits intomainfrom
fix/deps-and-ci
Feb 27, 2026
Merged

chore: rename npm package to emberdb, add oidc trusted publishing#332
kacy merged 4 commits intomainfrom
fix/deps-and-ci

Conversation

@kacy
Copy link
Owner

@kacy kacy commented Feb 27, 2026

summary

  • renames the npm package from ember-ts to emberdb (the ember-ts name was blocked by npm as too similar to ember-try)
  • adds id-token: write permission and --provenance flag to the npm publish job so it works with npm's trusted publishing (OIDC — no token needed)
  • adds environment: npm to the job, matching the trusted publisher config in npm

what was tested

  • package manually published as emberdb@0.1.0 from local machine
  • npm trusted publisher configured for repo kacy/ember, workflow release.yml, environment npm

setup required

create the npm environment in GitHub repo settings (Settings → Environments → New environment → npm). no protection rules needed.

kacy added 4 commits February 26, 2026 22:13
COMMAND (with COUNT, INFO, DOCS, LIST subcommands) provides the static
command metadata that client libraries like jedis, lettuce, and redis-py
call on connect for capability discovery. without it many clients refuse
to operate.

HINCRBYFLOAT follows the same pattern as HINCRBY and INCRBYFLOAT: it
increments a hash field's float value atomically, creating the field at 0
if absent. persisted to AOF as an HSET with the resulting value to avoid
float drift during replay.

both commands are wired through protocol parse, shard dispatch, execute,
and the CLI command table.
implements the sorted set store variants. each command computes the
corresponding set operation (union/intersection/diff) and writes the
result to a destination key, replacing whatever was there before.

routing follows the same pattern as SUNIONSTORE/SINTERSTORE/SDIFFSTORE:
all input keys and dest must land on the same shard, and we route to
dest's shard. aof persistence records a DEL+ZADD pair so recovery is
idempotent. keyspace notifications fire on dest with the FLAG_Z flag.

8 new unit tests cover basic behaviour, score summing, dest overwrite,
empty-result removal, and wrong-type error propagation.
…at updates

- add docker quickstart to readme (one-liner to get running immediately)
- helm: add persistence pvc support with emptyDir warning for production
- helm: use http /health probe when metrics port is configured
- add npm publish job to release workflow for ember-ts
- update compatibility.md: HINCRBYFLOAT, ZUNIONSTORE/ZINTERSTORE/ZDIFFSTORE, FLUSHALL, COMMAND introspection all marked ✓
- expand MULTI/EXEC cross-shard atomicity caveat with hash tag tip
@kacy kacy merged commit 8404809 into main Feb 27, 2026
@kacy kacy deleted the fix/deps-and-ci branch February 27, 2026 03:32
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