Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: cleanup defineEnv and docs #434

Merged
merged 3 commits into from
Feb 10, 2025
Merged

refactor!: cleanup defineEnv and docs #434

merged 3 commits into from
Feb 10, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 10, 2025

Improve docs + defineEnv usage:

  • Rewrote env.ts with defineEnv more readable. preset is dynamically generated.
  • Remove internal node/nodeless and enable nodeCompat by default. nodeCompat: false can be used to have a similar effect to node preset
  • Added npmShims option to allow opt-out from npm shims
  • Preset type directly extends Environment and both are marked as deep readonly.
  • breaking remove buffer/index.js alias

/cc @vicb iterating quickly on this but please check and any feedback is more than welcome 🙏🏼

@pi0 pi0 requested a review from vicb February 10, 2025 22:43
@pi0 pi0 marked this pull request as ready for review February 10, 2025 22:43
@pi0 pi0 merged commit 4e36629 into main Feb 10, 2025
2 checks passed
@pi0 pi0 deleted the refactor/cleanup-define branch February 10, 2025 22:44
This was referenced Feb 10, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 12, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
vicb added a commit to cloudflare/workers-sdk that referenced this pull request Feb 13, 2025
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