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

Update dependencies #73

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

GMartigny
Copy link

  • Update all outdated dependencies.
  • Name all tests.
  • Fix linting

I encounter an issue with the updated jsDOM dependencies. In order to read localStorage and sessionStorage, jsDOM must have a defined origin (url option). Or else, it throws an exception.

When called without arguments, browser-env puts everything under global (including localStorage and sessionStorage).

A few possibilities:

  • The lib should have a default url ("http://whatever.com")
  • The lib should try/catch (warn ?) these exceptions
  • The lib should let the user deal with exceptions when getting localStorage and sessionStorage
  • ...

What do you think is best ?

Guillaume Martigny and others added 15 commits February 4, 2019 10:45
* Require [email protected]

* Set global properties as getters

Some properties will throw an error when accessed in certain conditions. We don't want to throw these errors, by accessing them when we setup the environemnt. Instead we should create getters for all window properties so they can throw the appropriate errors when accessed by user code.

* Update expectedProperties.json for [email protected]
* Require [email protected]

* Set global properties as getters

Some properties will throw an error when accessed in certain conditions. We don't want to throw these errors, by accessing them when we setup the environemnt. Instead we should create getters for all window properties so they can throw the appropriate errors when accessed by user code.

* Update expectedProperties.json for [email protected]
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a2c269e on GMartigny:updateDependencies into 71aed2b on lukechilds:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a2c269e on GMartigny:updateDependencies into 71aed2b on lukechilds:master.

@GMartigny
Copy link
Author

Sorry, I kind of f***ed up the PR, but it's now up-to-date with master.

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.

3 participants