Skip to content

fix: 🎨 Fix dictionary vs wasi env usage inline with rust sdk#30

Merged
godronus merged 1 commit intomasterfrom
fix/dictionary
Apr 16, 2026
Merged

fix: 🎨 Fix dictionary vs wasi env usage inline with rust sdk#30
godronus merged 1 commit intomasterfrom
fix/dictionary

Conversation

@godronus
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 16, 2026 09:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns FastEdge variable access with the Rust SDK by separating “normal” environment variable reads (WASI process.env) from large-value configuration reads (proxy-wasm dictionary host call), and updates the SDK documentation accordingly.

Changes:

  • Update getEnv to read via WASI process.env and add getDictionary for proxy_dictionary_get.
  • Refresh API/docs wording and examples around env vars, dictionary usage, and a few formatting fixes.
  • Clarify some docstrings/comments (e.g., registerRootContext name parameter, header replace semantics).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/quickstart.md Fix markdown table formatting and remove stale example count wording.
docs/SDK_API.md Document getDictionary, clarify env var sizing constraints, and improve a few code/doc snippets.
assembly/runtime.ts Improve doc comments for header replacement and registerRootContext name parameter.
assembly/fastedge/secrets.ts Update docs around secret slot selection semantics (but currently introduces a timestamp unit inconsistency).
assembly/fastedge/dictionary.ts Implement WASI-based getEnv and add/export getDictionary using proxy_dictionary_get.
CLAUDE.md Update architecture notes and example list (but currently does not match repo contents).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assembly/fastedge/secrets.ts
Comment thread assembly/fastedge/secrets.ts
Comment thread CLAUDE.md
@godronus godronus requested a review from ruslanti April 16, 2026 10:27
@godronus godronus merged commit 7545147 into master Apr 16, 2026
5 checks passed
@godronus godronus deleted the fix/dictionary branch April 16, 2026 10:46
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants