Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Export on the correct scope for each environment. #945

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

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

jaapz
Copy link
Contributor

@jaapz jaapz commented Oct 8, 2018

Description

RequireJS and CommonJS now export on the exports module. window
exports in these environments are now removed no longer available.

Other environments still export on the window.

This fixes #643.

I think you should pay special attention to the fact that exporting to the window object is now gone on RequireJS and CommonJS exports, as they now correctly export just in their preferred exports module. This is probably a major breaking change, might be good to update the readme or whatever.

Do you need me to update a changelog too, before merging? I also ran npm build so the files in the dist directory are also updated.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (npm test)
  • Extended the README / documentation, if necessary

RequireJS and CommonJS now export on the `exports` module. `window`
exports in these environments are now removed no longer available.

Other environments still export on the `window`.
@coveralls
Copy link

coveralls commented Oct 8, 2018

Coverage Status

Coverage decreased (-0.02%) to 65.23% when pulling 8710a01 on AdvancedClimateSystems:develop into 7d9ac26 on gridstack:develop.

@jaapz
Copy link
Contributor Author

jaapz commented Oct 8, 2018

Coveralls is reporting decreased coverage because I added a new argument to the module factory, which is not covered by tests.

@radiolips radiolips merged commit c6c5fe9 into gridstack:develop Feb 6, 2019
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.

When used in browserify, gridstack is not correctly exported, which breaks the gridstack jquery drag plugin
3 participants