diff --git a/CHANGELOG.md b/CHANGELOG.md index 5099f83bd9..e5e8082cbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,14 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2020-XX-XX +- [change] Update sharetribe-scripts (our fork of create-react-app) to v4.0.0. In addition to + changes that CRA@v4 brought along, + + - We started to use`*.module.css` naming pattern for styles that use CSS Modules preprocessor. + - We also turned on live CSS Custom Properties (CSS Variables). + + Read the PR for more info: [#1374](https://github.com/sharetribe/ftw-daily/pull/1374) + ## [v6.5.0] 2020-11-16 - [add] Add support for Google login. This works in the same way as Facebook flow so you can check diff --git a/package.json b/package.json index 883a446945..3dba10bea7 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "license": "Apache-2.0", "dependencies": { + "@babel/runtime": "^7.11.2", "@formatjs/intl-relativetimeformat": "^4.2.1", "@mapbox/polyline": "^1.1.1", "@sentry/browser": "5.20.1", @@ -52,17 +53,17 @@ "react-moment-proptypes": "^1.6.0", "react-redux": "^7.2.1", "react-router-dom": "^5.2.0", + "react-with-direction": "^1.3.1", "redux": "^4.0.5", "redux-thunk": "^2.3.0", "seedrandom": "^3.0.5", "sharetribe-flex-sdk": "1.13.0", - "sharetribe-scripts": "3.4.4", + "sharetribe-scripts": "4.0.0", "smoothscroll-polyfill": "^0.4.0", "source-map-support": "^0.5.9", "url": "^0.11.0" }, "devDependencies": { - "babel-jest": "24.9.0", "bfj": "^7.0.2", "chalk": "^v4.1.0", "concurrently": "^5.3.0", diff --git a/server/env.js b/server/env.js index 6e9506c869..b09a280f05 100644 --- a/server/env.js +++ b/server/env.js @@ -15,11 +15,11 @@ if (!NODE_ENV) { // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use var dotenvFiles = [ `.env.${NODE_ENV}.local`, - `.env.${NODE_ENV}`, // Don't include `.env.local` for `test` environment // since normally you expect tests to produce the same // results for everyone - NODE_ENV !== 'test' && `env.local`, + NODE_ENV !== 'test' && `.env.local`, + `.env.${NODE_ENV}`, '.env', ].filter(Boolean); diff --git a/src/components/ActivityFeed/ActivityFeed.js b/src/components/ActivityFeed/ActivityFeed.js index 5bf2498acc..173add0bac 100644 --- a/src/components/ActivityFeed/ActivityFeed.js +++ b/src/components/ActivityFeed/ActivityFeed.js @@ -31,7 +31,7 @@ import { import { propTypes } from '../../util/types'; import * as log from '../../util/log'; -import css from './ActivityFeed.css'; +import css from './ActivityFeed.module.css'; const Message = props => { const { message, intl } = props; diff --git a/src/components/ActivityFeed/ActivityFeed.css b/src/components/ActivityFeed/ActivityFeed.module.css similarity index 98% rename from src/components/ActivityFeed/ActivityFeed.css rename to src/components/ActivityFeed/ActivityFeed.module.css index d710ab3113..ec60914e9d 100644 --- a/src/components/ActivityFeed/ActivityFeed.css +++ b/src/components/ActivityFeed/ActivityFeed.module.css @@ -1,4 +1,4 @@ -@import '../../marketplace.css'; +@import '../../styles/propertySets.css'; .root { margin: 0; diff --git a/src/components/ActivityFeed/__snapshots__/ActivityFeed.test.js.snap b/src/components/ActivityFeed/__snapshots__/ActivityFeed.test.js.snap index 0e0fbac97d..b12d2c5ea9 100644 --- a/src/components/ActivityFeed/__snapshots__/ActivityFeed.test.js.snap +++ b/src/components/ActivityFeed/__snapshots__/ActivityFeed.test.js.snap @@ -2,79 +2,119 @@ exports[`ActivityFeed matches snapshot 1`] = `