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

Introduce @cable_ready/polyfills and sync javascript changes from stimulus_reflex #77

Closed
wants to merge 14 commits into from

Conversation

marcoroth
Copy link
Member

@marcoroth marcoroth commented Nov 3, 2020

Type of PR

Feature

Description

This PR applies all of the changes from stimulusreflex/stimulus_reflex#340, stimulusreflex/stimulus_reflex#315 (reverted) and stimulusreflex/stimulus_reflex#345 to cable_ready.

This includes:

  • Introduce lerna for multiple npm packages handling
  • Introduce @cable_ready/polyfills
  • Move javascript/ to packages/@cable_ready/core

Why should this be added

Applies everything to the cable_ready JavaScript part that was introduced to the stimulus_reflex JavaScript part. Including the same structure for multiple npm packages and polyfills package for the support of CableReady in older browsers.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

Introduce `@cable_ready/polyfills`

Move javascript/ to packages/@cable_ready/core

Introduce microbundle for the package builds

Applies all of the changes from stimulusreflex/stimulus_reflex#340, stimulusreflex/stimulus_reflex#315 and stimulusreflex/stimulus_reflex#345 to cable_ready
marcoroth added a commit to marcoroth/stimulus_reflex that referenced this pull request Nov 3, 2020
@marcoroth
Copy link
Member Author

marcoroth commented Nov 3, 2020

We still need to clarify if and how we need to polyfill these:

  • Notification
  • XPathResult
  • element.style

caniuse.com says the first two are not compatible with IE11.

@marcoroth
Copy link
Member Author

marcoroth commented Dec 12, 2020

Okay, it looks like Notification and XPathResult aren't simple to polyfill - at least I found no good solution for it.
I would say we leave them out for now. So we can merge this.

@marcoroth marcoroth marked this pull request as ready for review December 12, 2020 19:43
@marcoroth marcoroth mentioned this pull request Dec 13, 2020
@leastbad
Copy link
Contributor

Is https://adodson.com/notification.js/ a possible solution for Notification?

marcoroth added a commit to cableready/polyfills that referenced this pull request May 5, 2021
@marcoroth
Copy link
Member Author

Closing in favor of #165.

@marcoroth marcoroth closed this Jan 5, 2022
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