Update all AMP devDependencies to their latest versions#12472
Update all AMP devDependencies to their latest versions#12472rsimha merged 1 commit intoampproject:masterfrom rsimha:2017-12-14-UpdateAll
Conversation
|
/to @choumx @erwinmombay |
|
/cc @cramforce |
package.json
Outdated
| "dependencies": { | ||
| "babel-polyfill": "6.26.0", | ||
| "document-register-element": "1.5.0", | ||
| "document-register-element": "1.7.0", |
There was a problem hiding this comment.
im hesitant in updating this without thorough testing (this is the only change here that is not a dev dep)
enough that this change should be in its own PR
There was a problem hiding this comment.
Noted. What does document-register-element do, and what kind of testing must we do? Also, is there any reason these four items must live in dependencies and not devDependencies?
There was a problem hiding this comment.
document-register-element is a polyfill for browsers that don't support custom elements, this is going to be mostly old iOS i believe.
yes, these items are in dependencies and not devDependencies since these are node modules that are compiled with the production runtime (meaning they are included in the code that we serve) and not a tool/development dependency
We just need to understand what changed between 1.5 -> 1.6 -> 1.7 and test on browsers that don't support custom element and ones that do
There was a problem hiding this comment.
Honestly, it might be a clean update but since it affects production code, id rather be cautious
There was a problem hiding this comment.
Gotcha, re: dependencies vs devDependencies.
Here's the commit log for document-register-element. About a dozen code changes between versions 1.5.0 and 1.7.0. @dvoytenko @erwinmombay, think you can look at them and see if you're worried about anything? https://github.com/WebReflection/document-register-element/commits/master
FWIW, out integration_tests shard on Travis now runs tests on 12 browsers, including old versions of iOS. (11.0, 10.0, and 9.0). See https://travis-ci.org/ampproject/amphtml/jobs/318328159
There was a problem hiding this comment.
@erwinmombay I've reverted the change to the document-register-element version. I agree that it should go in as a separate PR that's easy to revert if needed.
PTAL.
| "atob": "2.0.3", | ||
| "autoprefixer": "6.7.0", | ||
| "ava": "0.15.2", | ||
| "autoprefixer": "7.2.3", |
There was a problem hiding this comment.
I'll LGTM, but i'd like autoprefixer, cssnano, postcss, and postcss-import to be on a separate PR (these are all css processing tools that i'd like to manually test or create a golden file for)
There was a problem hiding this comment.
Gotcha. I'll hold off on merging this PR, and first do those upgrades in a separate PR. I'll ping this PR after that. Thanks for the comments!
There was a problem hiding this comment.
@erwinmombay Sent you #12512 with the CSS changes alone.
There was a problem hiding this comment.
Merged and rebased. This PR no longer contains any CSS-related package changes.
|
@erwinmombay This has been rebased on all the previous changes. PTAL. |
|
|
| "react": "16.2.0", | ||
| "react-addons-shallow-compare": "15.6.2", | ||
| "react-dates": "13.0.6", | ||
| "react-dates": "16.0.1", |
There was a problem hiding this comment.
@cvializ should this be in dependencies and not devDependencies? we bundle this with your extension correct?
There was a problem hiding this comment.
Just merged this, but I think it should be moved to dependencies. I'll move it up in a follow up PR right now and revert it to its old 13.0.6 version, and update the documentation.
There was a problem hiding this comment.
It turns out that @cvializ added several packages to package.json in his date picker PR. I've started a new discussion / PR at #12571 to see if this is indeed a concern. It's possible that the only package that needs to move to dependencies is react-dates, since the only import from node_modules in amp-date-picker is here: https://github.com/ampproject/amphtml/blob/master/extensions/amp-date-picker/0.1/amp-date-picker.css
Let's continue this discussion in #12571.
| "gzip-size": "4.1.0", | ||
| "is-running": "2.1.0", | ||
| "jison": "0.4.18", | ||
| "jsdom": "9.2.1", |
There was a problem hiding this comment.
this broke a few live list examples
There was a problem hiding this comment.
@erwinmombay Any chance there's a newer version that fixes the bug? If not, we can roll back and add an exception so this package is manually updated.
This PR does the following:
yarn upgrade --dev --exact --latest. With this, all the packages in AMP'sdevDependenciesare at their latest versions. (The packages independenciesremain unchanged.)yarn checkFull list of packages that were updated, with new versions:
Follow up to #12179, #12450, #12476, #12486, #12499, and #12512
Partial fix for #12181
Fixes #12565