Skip to content

Export on the correct scope for each environment.#945

Merged
radiolips merged 3 commits into
gridstack:developfrom
AdvancedClimateSystems:develop
Feb 6, 2019
Merged

Export on the correct scope for each environment.#945
radiolips merged 3 commits into
gridstack:developfrom
AdvancedClimateSystems:develop

Conversation

@jaapz

@jaapz jaapz commented Oct 8, 2018

Copy link
Copy Markdown
Contributor

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

coveralls commented Oct 8, 2018

Copy link
Copy Markdown

Coverage Status

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

@jaapz

jaapz commented Oct 8, 2018

Copy link
Copy Markdown
Contributor Author

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