-
Notifications
You must be signed in to change notification settings - Fork 378
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
New release v11.0.0 (Update v9.0.0 from upstream aka FTW-hourly) #199
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix undefined REACT_APP_GOOGLE_ANALYTICS_ID
…cters Fix accidental invalid characters
Fixing an old typo
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. - [Release notes](https://github.com/EventSource/eventsource/releases) - [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md) - [Commits](EventSource/eventsource@v1.0.7...v1.1.1) --- updated-dependencies: - dependency-name: eventsource dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…tsource-1.1.1 Bump eventsource from 1.0.7 to 1.1.1
Note: FTW-product already uses this library on ListingPage.
Use react-image-gallery in ImageCarousel
…be first in the CSS build)
- h4, clearfix, marketplaceMessageFontStyles
- used h4, h5, buttonFont, and marketplaceTinyFontStyles - --marketplaceSmallFontStyles was only used here. It's now renamed as smallFontStyles.
- Uses marketplaceModalInMobileBaseStyles - And h2, h4, h5, and marketplacetineyFontStyles. - Button styles are also used for bookButton
- a, button styling classes - Button: composes: button buttonFont buttonText buttonBorders buttonColors from global; - PrimaryButton: composes: button buttonFont buttonText buttonBorders buttonColorsPrimary from global; - SecondaryButton: composes: button buttonFont buttonText buttonBordersSecondary buttonColorsSecondary from global;
- marketplaceModalTitleStyles - marketplaceModalParagraphStyles
- marketplaceModalTitleStyles - marketplaceModalParagraphStyles
- h5, marketplaceInputStyles
- h4, h5, a, marketplaceSearchFilterSublabelFontStyles, marketplaceModalPasswordMargins, marketplaceModalHelperText, marketplaceModalHelperLink, marketplaceModalCloseIcon
- h4, h5, marketplaceSearchFilterSublabelFontStyles
- h4,h5, marketplaceDefaultFontStyles
- h4, h5, button styles
- marketplaceModalFormRootStyles, marketplaceModalPasswordMargins, marketplaceModalBottomWrapper, marketplaceModalBottomWrapperText, marketplaceModalHelperText, marketplaceModalHelperLink
- h3, marketplaceModalPasswordMargin, marketplaceModalHelperText, marketplaceModalHleperLink - inlined h4 styles due to exposed element (p)
- h5, marketplaceInputStyles
Update sharetribe-scripts v5.0.1 -> v6.0.0
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.21.1. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](browserslist/browserslist@4.16.3...4.21.1) --- updated-dependencies: - dependency-name: browserslist dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [moment](https://github.com/moment/moment) from 2.29.3 to 2.29.4. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](moment/moment@2.29.3...2.29.4) --- updated-dependencies: - dependency-name: moment dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1. - [Release notes](https://github.com/sindresorhus/normalize-url/releases) - [Commits](https://github.com/sindresorhus/normalize-url/commits) --- updated-dependencies: - dependency-name: normalize-url dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…nt-2.29.4 Bump moment from 2.29.3 to 2.29.4
…alize-url-4.5.1 Bump normalize-url from 4.5.0 to 4.5.1
…-regex-4.1.1 Bump ansi-regex from 4.1.0 to 4.1.1
…serslist-4.21.1 Bump browserslist from 4.16.3 to 4.21.1
New release: v9.0.0
…9.0.0-from-upstream
Gnito
force-pushed
the
update-v9.0.0-from-upstream
branch
from
July 11, 2022 13:43
e83cd52
to
8831b49
Compare
Gnito
changed the title
Update v9.0.0 from upstream
New release v11.0.0 (Update v9.0.0 from upstream aka FTW-hourly)
Jul 11, 2022
Gnito
force-pushed
the
update-v9.0.0-from-upstream
branch
from
July 11, 2022 13:53
8831b49
to
fc832a4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: THIS IS GOING TO CAUSE A MAJOR VERSION CHANGE TO TEMPLATES.
This PR updates sharetribe-scripts to the next major version.
sharetribe-scripts is a fork of Create React App (CRA) repository and specifically react-scripts is modified to support server-side rendering, code-splitting, and certain PostCSS plugins that we chose to include years ago. (E.g. introduced CSS Modules before CRA took the same approach.)
This update is actually an update from CRA 4.0.2 to v5.0.1
The breaking changes are in v5.0.0
Note: we haven't explored Tailwind support since it would mean a complete rewrite for the FTW templates. In addition, CSS Modules make it easier for customizers to learn a big codebase like FTW (i.e. which component is responsible for a different sections of DOM, etc.).
Consequences
Major updates to Webpack (v4 > v5) and PostCSS (v7 > v8), were the most worksome for FTW templates.
The upper restriction of Node.js engine "version earlier than v17" has been lifted!
Loadable components was updated
You should add
@import
for customMediaQueries.css file.@import '../../styles/customMediaQueries.css';
src/index.js was refactored.
(The order of classes in CSS files affects declaration overrides.)
postcss-apply plugin is not working anymore
It's been deprecated for a long time because W3C decided to not go forward with that feature suggestion
You should migrate away from postcss-apply syntax (aka CSS Property Sets)
However, we have introduced a naive custom version of postcss-apply as a private plugin to give more time to migrate away.
Most of the previous CSS Property Sets are turned into CSS classes in the marketplaceDefaults.css file.
So, most of the time the change is minimal:
Unfortunately, there's one problem that doesn't make it that straightforward. The order of the plain CSS classes in the marketplaceDefaults.css file defines which classes override each other. (The composes feature just includes those class names to DOM element - not their content.) Therefore, if multiple @apply rules are used inside the CSS module class, you need to check if there are overwrites between declarations of those Sets.
Button styling included almost always some overrides. We decided to split buttons styles into smaller chunks that can be combined:
New syntax:
This might be a bit controversial, but it introduces fewer CSS overrides. Of course, you are free to customize this to your liking.
Potential issues that you might encounter if taking an update from upstream
NOTE: You may need to delete your node_modules folder and reinstall your dependencies by running npm install (or yarn) if you encounter errors after upgrading.
Old version of @babel/runtime
Redux has sub-dependency to @babel/runtime. An old version of that package doesn't handle ES Modules well. You might need to call
yarn upgrade redux
afteryarn install
to update Redux sub dependencies to the latest in yarn.lock file.reduxjs/redux#4174
customMediaQueries.css was not @imported in the file that uses them
You should be able to find correct files by grepping files that don't contain "customMediaQueries" but which contain "--viewport".
In OSX, that could be done in Terminal with:
Missing propertySets.css file and your custom CSS Property Sets
You should consider if you want to refactor your custom @apply rules (i.e. migrate away as recommended) or reintroduce / revert the deletion of the propertySets.css file.
Some changes related to naming:
button styles as described before.
--marketplaceLinkStyles
> .a--marketplaceH1FontStyles
> .h1--marketplaceH2FontStyles
> .h2--marketplaceH3FontStyles
> .h3--marketplaceH4FontStyles
> .h4--marketplaceH5FontStyles
> .h5--marketplaceH6FontStyles
> .h6marketplaceTabNavFontStyles was inlined for FTW-daily
marketplaceTabNavHorizontalFontStyles was inlined for FTW-daily
Wrong syntax for CSS Property Sets (postcss-apply)
Some of the definitions of CSS Property Sets in the FTW codebase used a wrong syntax to define them. The previous way how PostCSS v7 parsed CSS files to the AST (Abstract Syntax Tree) didn't care about that, but PostCSS v8 changed the parsing logic.
🚫 Invalid:
✅ Valid:
You should only face this issue if you continue to use CSS Property Sets. However, you should consider them as deprecated and migrate away.
There are a couple of warnings with
yarn run dev
This is hopefully fixed in the next release:
facebook/create-react-app#11862