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

Update v10.1.0 from upstream #89

Merged
merged 50 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
dfd5611
Bump moment-timezone from 0.5.34 to 0.5.35
dependabot[bot] Aug 31, 2022
034fde0
Merge pull request #159 from sharetribe/dependabot/npm_and_yarn/momen…
Gnito Aug 31, 2022
7d981f2
Bump jose from 4.8.1 to 4.9.2
dependabot[bot] Sep 16, 2022
4207b09
Merge pull request #1550 from sharetribe/dependabot/npm_and_yarn/jose…
Gnito Oct 17, 2022
5b775be
add link to flex docs
shareoc Oct 17, 2022
9862aa7
add changelog entry
shareoc Oct 17, 2022
58628af
Merge pull request #1553 from sharetribe/change-default-ToS-and-PP-pa…
Gnito Oct 17, 2022
b212267
new version
shareoc Oct 17, 2022
5754aa2
Merge pull request #1554 from sharetribe/v9.0.2
Gnito Oct 17, 2022
2cd1510
Merge commit '5754aa224655da06908d60c7dea1a3cd12704699' into update-v…
shareoc Oct 17, 2022
0572f27
Merge pull request #162 from sharetribe/update-v9.0.2-from-upstream
Gnito Oct 17, 2022
9bbec3f
add cross-env to support environment variables accross all platforms
shareoc Oct 19, 2022
c3d0eba
shorten dev-server command
shareoc Oct 24, 2022
ea3ada3
add changelog entry
shareoc Nov 15, 2022
6606008
Merge pull request #1555 from sharetribe/install-cross-env
Gnito Dec 29, 2022
22fdb1b
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 29, 2022
bf2f929
Merge pull request #1562 from sharetribe/dependabot/npm_and_yarn/deco…
Gnito Dec 29, 2022
cffb0f8
Bump loader-utils from 2.0.0 to 2.0.4
dependabot[bot] Dec 29, 2022
74fa1e4
Merge pull request #1560 from sharetribe/dependabot/npm_and_yarn/load…
Gnito Dec 29, 2022
da6cc4a
Remove polyfill: array-includes
Gnito Dec 29, 2022
c226d51
Remove polyfill: array.prototype.find
Gnito Dec 29, 2022
16dfc93
Remove polyfill: object.entries
Gnito Dec 29, 2022
4381eb6
Remove polyfill: object.values
Gnito Dec 29, 2022
c43b15d
Remove polyfills for Number: parseFloat, parseInt, isNaN
Gnito Dec 29, 2022
f239dcc
Update changelog
Gnito Dec 29, 2022
2671429
Merge pull request #1565 from sharetribe/remove-unnecessary-polyfills
Gnito Dec 29, 2022
4fbc8c1
Update node engine to use v16.18 (v14 support ends soonish)
Gnito Dec 29, 2022
7693459
Update changelog
Gnito Dec 29, 2022
a14d59e
Merge pull request #1566 from sharetribe/update-node-version
Gnito Dec 29, 2022
40d76ae
Update caniuse-lite (browserlist-db)
Gnito Dec 29, 2022
311fde4
Update changelog
Gnito Dec 29, 2022
91f9b22
Merge pull request #1567 from sharetribe/update-caniuse-lite
Gnito Dec 29, 2022
0ed94a3
Bump passport from 0.5.3 to 0.6.0
dependabot[bot] Dec 29, 2022
ae11008
Merge pull request #1552 from sharetribe/dependabot/npm_and_yarn/pass…
Gnito Dec 29, 2022
6dd2561
Update changelog
Gnito Dec 29, 2022
39a5269
Merge pull request #1568 from sharetribe/update-changelog-about-depen…
Gnito Dec 29, 2022
5c5d2b0
Update readme and changelog
Gnito Dec 29, 2022
0118145
Merge pull request #1569 from sharetribe/update-readme.md
Gnito Dec 29, 2022
25624cf
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 8, 2023
2e4c1fc
Update legacy setup: Norway should use NOK
Gnito Feb 2, 2023
f0ef592
Update changelog
Gnito Feb 2, 2023
4f6b362
Merge pull request #1579 from sharetribe/use-NOK-for-Norway
Gnito Feb 2, 2023
7648722
Merge pull request #1571 from sharetribe/dependabot/npm_and_yarn/json…
Gnito Feb 7, 2023
7af6cef
Bump http-cache-semantics from 4.1.0 to 4.1.1
dependabot[bot] Feb 7, 2023
8e33985
Merge pull request #1580 from sharetribe/dependabot/npm_and_yarn/http…
Gnito Feb 7, 2023
7dcf831
New release: v9.1.0
Gnito Feb 7, 2023
7a2f9b0
Merge pull request #1582 from sharetribe/v9.1.0
Gnito Feb 7, 2023
53e8e05
Merge commit '7a2f9b0557607533097761c063f7f98d7c8bfc1a' into update-v…
Gnito Feb 7, 2023
24f42cb
Merge pull request #169 from sharetribe/update-v9.1.0-from-upstream
Gnito Feb 7, 2023
e085678
Merge commit '24f42cb9a0faef4b90e57956c90154a368cc9c29' into update-v…
Gnito Feb 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
format:
docker:
- image: cimg/node:14.19
- image: cimg/node:16.18
steps:
- checkout
- restore_cache:
Expand All @@ -25,7 +25,7 @@ jobs:
command: yarn run format-ci
test:
docker:
- image: cimg/node:14.19
- image: cimg/node:16.18
steps:
- checkout
- restore_cache:
Expand All @@ -48,7 +48,7 @@ jobs:
command: yarn run test-ci
build:
docker:
- image: cimg/node:14.19
- image: cimg/node:16.18
steps:
- checkout
- restore_cache:
Expand All @@ -71,7 +71,7 @@ jobs:
command: yarn run build
audit:
docker:
- image: cimg/node:14.19
- image: cimg/node:16.18
steps:
- checkout
- restore_cache:
Expand Down
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ way to update this template, but currently, we follow a pattern:

---

## Upcoming version 2022-XX-XX
## Upcoming version 2023-XX-XX

- [fix] When time zone changes, exceptions should be fetch again. (Query boundaries change.)
[#87](https://github.com/sharetribe/ftw-x/pull/87)
Expand Down Expand Up @@ -251,6 +251,44 @@ way to update this template, but currently, we follow a pattern:

[#2](https://github.com/sharetribe/ftw-x/pull/2)

## [v10.1.0] 2023-02-07

### Updates from upstream (FTW-daily v9.1.0)
- [change] Norway's stripe config should use NOK not EUR.
[#1579](https://github.com/sharetribe/ftw-daily/pull/1579)
- [delete] Update README.md after changes in [#1555].
[#1569](https://github.com/sharetribe/ftw-daily/pull/1569)
- [change] Added some dependabot updates earlier: passport-0.6.0, loader-utils-2.0.4,
decode-uri-component-0.2.2
Note: Passport-0.6.0 changed login and logout parameter list.
- [change] Update Browserlist db / caniuse-lite.
[#1567](https://github.com/sharetribe/ftw-daily/pull/1567)
- [change] Update minimum Node version to >=16.18.0. (v14.15 had problems with some libs and v14
support ends soon.) [#1566](https://github.com/sharetribe/ftw-daily/pull/1566)
- [delete] Remove unnecessary polyfills (dependencies might still use these)

- array-includes
- array.prototype.find
- object.entries
- object.values
- Number.parseFloat, Number.parseInt, Number.isNaN

[#1565](https://github.com/sharetribe/ftw-daily/pull/1565)

- [add] Add the cross-env package to better support Windows command prompts
[#1555](https://github.com/sharetribe/ftw-daily/pull/1555)

[v10.1.0]: https://github.com/sharetribe/ftw-product/compare/v10.0.3...v10.1.0

## [v10.0.3] 2022-10-17

### Updates from upstream (FTW-daily v9.0.2)

- [change] Add links to free Privacy Policy and Terms of Service templates
[#1553](https://github.com/sharetribe/ftw-daily/pull/1553)

[v10.0.3]: https://github.com/sharetribe/ftw-product/compare/v10.0.2...v10.0.3

## [v10.0.2] 2022-08-30

### Updates from upstream (FTW-product v10.0.2)
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ reference in Flex Docs.

### For Windows users

Change `export` to `set` in the package.json file if you're using Windows/DOS. You need to do the
change to "dev" and "dev-sever" commands.

```
"dev": "yarn run config-check&&set NODE_ENV=development&& set REACT_APP_DEV_API_SERVER_PORT=3500&&concurrently --kill-others \"yarn run dev-frontend\" \"yarn run dev-backend\""
```

```
"dev-server": "set NODE_ENV=development&& set PORT=4000&& set REACT_APP_MARKETPLACE_ROOT_URL=http://localhost:4000&&yarn run build&&nodemon --watch server server/index.js"
```

We strongly recommend installing
[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/about), if you are
developing on Windows. These templates are made for Unix-like web services which is the most common
Expand Down
19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "10.0.2",
"version": "10.1.0",
"private": true,
"license": "Apache-2.0",
"dependencies": {
Expand All @@ -10,8 +10,6 @@
"@mapbox/polyline": "^1.1.1",
"@sentry/browser": "^6.19.7",
"@sentry/node": "^6.19.7",
"array-includes": "^3.1.5",
"array.prototype.find": "^2.2.0",
"autosize": "^5.0.1",
"basic-auth": "^2.0.1",
"body-parser": "^1.20.0",
Expand All @@ -30,14 +28,12 @@
"final-form-arrays": "^3.0.2",
"full-icu": "^1.4.0",
"helmet": "^4.6.0",
"jose": "4.8.1",
"jose": "4.9.2",
"lodash": "^4.17.21",
"mapbox-gl-multitouch": "^1.0.3",
"moment": "^2.29.4",
"moment-timezone": "^0.5.34",
"object.entries": "^1.1.5",
"object.values": "^1.1.5",
"passport": "^0.5.3",
"moment-timezone": "^0.5.35",
"passport": "^0.6.0",
"passport-facebook": "^3.0.0",
"passport-google-oauth": "^2.0.0",
"path-to-regexp": "^6.2.1",
Expand Down Expand Up @@ -69,6 +65,7 @@
"bfj": "^7.0.2",
"chalk": "^v4.1.2",
"concurrently": "^7.2.0",
"cross-env": "^7.0.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
Expand All @@ -92,7 +89,7 @@
"config-check": "node scripts/config.js --check",
"dev-frontend": "sharetribe-scripts start",
"dev-backend": "nodemon server/apiServer.js",
"dev": "yarn run config-check&&export NODE_ENV=development REACT_APP_DEV_API_SERVER_PORT=3500&&concurrently --kill-others \"yarn run dev-frontend\" \"yarn run dev-backend\"",
"dev": "yarn run config-check&&cross-env NODE_ENV=development REACT_APP_DEV_API_SERVER_PORT=3500 concurrently --kill-others \"yarn run dev-frontend\" \"yarn run dev-backend\"",
"build": "yarn build-web&&yarn build-server",
"build-web": "sharetribe-scripts build",
"build-server": "sharetribe-scripts build-server",
Expand All @@ -103,7 +100,7 @@
"test-ci": "yarn run test-server --runInBand && sharetribe-scripts test --runInBand",
"eject": "sharetribe-scripts eject",
"start": "node --icu-data-dir=node_modules/full-icu server/index.js",
"dev-server": "export NODE_ENV=development PORT=4000 REACT_APP_MARKETPLACE_ROOT_URL=http://localhost:4000&&yarn run build&&nodemon --watch server server/index.js",
"dev-server": "cross-env-shell NODE_ENV=development PORT=4000 REACT_APP_MARKETPLACE_ROOT_URL=http://localhost:4000 \"yarn run build&&nodemon --watch server server/index.js\"",
"test-server": "jest ./server/**/*.test.js",
"heroku-postbuild": "yarn run build",
"translate": "node scripts/translations.js"
Expand All @@ -121,7 +118,7 @@
]
},
"engines": {
"node": ">=14.15.0"
"node": ">=16.18.0"
},
"prettier": {
"singleQuote": true,
Expand Down
9 changes: 5 additions & 4 deletions src/components/PrivacyPolicy/PrivacyPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const PrivacyPolicy = props => {
<p className={css.lastUpdated}>Last updated: July 1st, 2021</p>

<p>
Thank you for using Sneakertime! Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Thank you for using Sneakertime! Every marketplace business needs Terms of Service and
Privacy Policy agreements. To help you launch your marketplace faster, we've compiled
two templates you can use as a baseline for the agreements between your online marketplace
business and its users. You can access these templates at
https://www.sharetribe.com/docs/operator-guides/free-templates/
</p>

<h2>1 Lorem ipsum dolor sit amet</h2>
Expand Down
9 changes: 5 additions & 4 deletions src/components/TermsOfService/TermsOfService.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const TermsOfService = props => {
<p className={css.lastUpdated}>Last updated: July, 1st 2021</p>

<p>
Thank you for using Sneakertime! Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Thank you for using Sneakertime! Every marketplace business needs Terms of Service and
Privacy Policy agreements. To help you launch your marketplace faster, we've compiled
two templates you can use as a baseline for the agreements between your online marketplace
business and its users. You can access these templates at
https://www.sharetribe.com/docs/operator-guides/free-templates/
</p>

<h2>1 Lorem ipsum dolor sit amet</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/config/configStripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const supportedCountries = [
{
// Norway
code: 'NO',
currency: 'EUR',
currency: 'NOK',
accountConfig: {
iban: true,
},
Expand Down
31 changes: 2 additions & 29 deletions src/util/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,10 @@
//

// Smoothscroll
// TODO: scroll-behaviour smooth was added to Safari on March 2022.
// We could consider removing this on 2023.
require('smoothscroll-polyfill').polyfill();

// [].includes
require('array-includes').shim();

// [].find
require('array.prototype.find').shim();

// Object.entries
require('object.entries').shim();

// Object.values
require('object.values').shim();

// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat
if (typeof Number.parseFloat === 'undefined' && typeof window !== 'undefined') {
Number.parseFloat = window.parseFloat;
}

// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt
if (typeof Number.parseInt === 'undefined' && typeof window !== 'undefined') {
Number.parseInt = window.parseInt;
}

// NaN is the only value in javascript which is not equal to itself.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
if (typeof Number.isNaN === 'undefined') {
// eslint-disable-next-line no-self-compare
Number.isNaN = value => value !== value;
}

// To support browsers that do not have Intl.PluralRules (e.g IE11 & Safari 12-),
// - add npm packaged to package.json: "intl-pluralrules": "^1.3.1",
// - include this polyfill in your build:
Expand Down
Loading