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

Make Deno 2.0 compatible #45

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dxdye
Copy link

@dxdye dxdye commented Nov 10, 2024

Issue

#46
This package is not compatible with Deno 2.0, I made a couple changes, which make it work again.
I do some doc on this branch in #46 - maybe have a look at this..
Initially I just wanted to replace the window Variable, with globalThis which is the new Standard in Deno 2.0.
The tests did not ran through - until now, after I've commented out some tests, which involve using Opine as dependency. Also there some whitespaces, seem to appear where they shouldn't (in http headers).

May need approval for workflows to run through, again.
The tests should now run through

Details

  • I changed the window global variable to the new globalThis.
  • added some import flags to Makefile
  • added needed override statements to test and others.

CheckList

  • has Issue Id
  • UPDATE: test now running through - however please consider that temporarly Opine is not supported

@dxdye dxdye changed the title refactor: rename window to globalThis Make Deno 2.0 compatible Nov 10, 2024
@dxdye dxdye marked this pull request as draft November 10, 2024 09:50
@dxdye
Copy link
Author

dxdye commented Nov 10, 2024

Considering to remove Opine tests, since its deps do not work with Deno 2.0

@dxdye dxdye closed this Nov 10, 2024
mainly removing the tests which handle opine.
there seem to be problems, with the headers after the upgrade to Deno 2.0
@dxdye dxdye reopened this Nov 10, 2024
@dxdye
Copy link
Author

dxdye commented Nov 10, 2024

I've thrown out several tests, mainly because Opine, which seems to play a crucial role in testing is deprecated/ not executable in Deno 2.0 because of deprecated import assertions. Maybe I'll open a pull request, which addresses this issue in Opine' s repo..

Once the dep is fixed, I maybe able to run all tasks

arnabp added a commit to arnabp/superdeno that referenced this pull request Dec 9, 2024
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