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

Upgrade to Deno 2 #17

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Upgrade to Deno 2 #17

merged 6 commits into from
Nov 11, 2024

Conversation

ThomasOrs
Copy link
Member

Summary

Important

Breaking Changes:

  • Install now requires the --global flag
  • Compiler plugins can no longer use window and must now use globalThis
  • Deno 2 Deprecations
    • Moved from deno.serve to deno.serveHTTP
    • Removed window and replaced with globalThis
    • Changed from ImportMap to deno.json
  • Updated Yargs to the latest version which uses globalThis instead of window
  • Enabled Deno lint
  • Upgraded standard modules
  • Switched from using hardcoded paths to github to pulling fixed versions of dash-compiler

Update yargs
Yargs updated to use globalThis rather than window
Enable deno lint
Upgrade to standard modules
Stop using hardcoded github paths
Update to serve from servehttp
Upgrade build scripts
Copy link

stackblitz bot commented Nov 10, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@outercloudstudio
Copy link
Member

After doing some testing, I found that running deno gave me some errors about not having jsr: or npm: before some of the package names, so I fixed that and everything seems to be working fine now. :shipit:

@outercloudstudio outercloudstudio merged commit 14f11e7 into main Nov 11, 2024
@outercloudstudio outercloudstudio deleted the next/Deno2Upgrade branch November 11, 2024 18:55
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