Skip to content

Commit 620420b

Browse files
committed
chore: a couple of version bumps more
2 parents af3b50f + c312149 commit 620420b

File tree

34 files changed

+1529
-2460
lines changed

34 files changed

+1529
-2460
lines changed

.github/pull_request_template.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- Changes are documented or they are self explanatory
1010
- This pull request does not have any merge conflicts
1111
- All existing tests pass in CI build
12-
- Code coverage does not decrease (unless measured incorrectly)
1312

1413
## Review
1514

.github/workflows/dev-pipeline.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ jobs:
169169
yarn run relay
170170
171171
- name: Run unit tests
172-
run: yarn run test-coverage
173-
- name: Upload coverage to Codecov
174-
uses: codecov/codecov-action@v3
172+
run: yarn run test-unit
175173

176174
# This is only done when pushing to v3
177175
publish-npm:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Build](https://github.com/hsldevcom/digitransit-ui/workflows/Process%20v2%20push%20or%20pr/badge.svg?branch=v2)](https://github.com/HSLdevcom/digitransit-ui/actions)
2-
[![codecov](https://codecov.io/gh/HSLdevcom/digitransit-ui/branch/master/graph/badge.svg)](https://codecov.io/gh/HSLdevcom/digitransit-ui)
32

43
Digitransit-ui is a mobile friendly User interface built to work with Digitransit platform
54

app/util/apiUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function getWeatherData(baseURL, time, lat, lon) {
5858
.then(str => {
5959
const options = {
6060
ignoreAttributes: true,
61-
ignoreNameSpace: true,
61+
removeNSPrefix: true,
6262
};
6363
return xmlParser.parse(str, options);
6464
})

babel.config.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ module.exports = {
1515
'dynamic-import-node',
1616
'relay',
1717
'@babel/plugin-syntax-dynamic-import',
18-
['@babel/plugin-proposal-class-properties', { loose: true }],
19-
'@babel/plugin-proposal-json-strings',
18+
'@babel/plugin-transform-class-properties',
19+
'@babel/plugin-transform-json-strings',
2020
],
21-
env: {
22-
test: {
23-
plugins: ['istanbul'],
24-
},
25-
},
2621
};

config/babel.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ module.exports = function bbl(api) {
2828
const plugins = [
2929
'relay',
3030
'babel-plugin-optimize-clsx',
31-
['@babel/plugin-proposal-class-properties', { loose: true }],
32-
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
31+
'@babel/plugin-transform-class-properties',
32+
'@babel/plugin-transform-object-rest-spread',
3333
[
3434
'@babel/plugin-transform-runtime',
3535
{

digitransit-component/packages/digitransit-component-abtesting/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-abtesting webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-abtesting webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-autosuggest-panel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"scripts": {
1313
"build:index": "ENV=production NAME=digitransit-component-autosuggest-panel webpack --config ../webpack.config.babel.js && yarn run docs",
14-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
14+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1515
"watch": "ENV=development NAME=digitransit-component-autosuggest-panel webpack --watch --config ../webpack.config.babel.js",
1616
"clean": "rm -rf ./lib ./node_modules",
1717
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-autosuggest/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-autosuggest webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-autosuggest webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-control-panel/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-control-panel webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-control-panel webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-datetimepicker/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-datetimepicker webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-datetimepicker webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-dialog-modal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-dialog-modal webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-dialog-modal webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-favourite-bar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-favourite-bar webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-favourite-bar webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-favourite-editing-modal/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@digitransit-component/digitransit-component-favourite-editing-modal",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "digitransit-component favourite-editing-modal module",
55
"main": "index.js",
66
"files": [
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-favourite-editing-modal webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-favourite-editing-modal webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-favourite-modal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-favourite-modal webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-favourite-modal webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-icon/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-icon webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-icon webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-suggestion-item/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-suggestion-item webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-suggestion-item webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-traffic-now-link/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build:index": "ENV=production NAME=digitransit-component-traffic-now-link webpack --config ../webpack.config.babel.js && yarn run docs",
15-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
15+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1616
"watch": "ENV=development NAME=digitransit-component-traffic-now-link webpack --watch --config ../webpack.config.babel.js",
1717
"clean": "rm -rf ./lib ./node_modules",
1818
"test": "mocha -r esm test.generated",

digitransit-component/packages/digitransit-component-with-breakpoint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"scripts": {
1313
"build:index": "ENV=production NAME=digitransit-component--with-breakpoint webpack --config ../webpack.config.babel.js && yarn run docs",
14-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties --out-file test.generated",
14+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties --out-file test.generated",
1515
"test": "mocha -r esm test.generated",
1616
"docs": "node -r esm ../../scripts/generate-readmes"
1717
},

digitransit-component/packages/digitransit-component/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@digitransit-component/digitransit-component-autosuggest-panel": "^3.0.6",
1919
"@digitransit-component/digitransit-component-control-panel": "^1.1.7",
2020
"@digitransit-component/digitransit-component-favourite-bar": "2.0.4",
21-
"@digitransit-component/digitransit-component-favourite-editing-modal": "^2.0.0",
21+
"@digitransit-component/digitransit-component-favourite-editing-modal": "^2.0.1",
2222
"@digitransit-component/digitransit-component-favourite-modal": "^1.0.5",
2323
"@digitransit-component/digitransit-component-icon": "^1.0.1",
2424
"@digitransit-component/digitransit-component-suggestion-item": "^2.0.4",

digitransit-component/scripts/create-new-module

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ writeFileSync(join(folderPath, 'package.json'), `{
7171
},
7272
"scripts": {
7373
"build:index": "ENV=production NAME=digitransit-component-${decamelizeName} webpack --config ../webpack.config.babel.js && yarn run docs",
74-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
74+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
7575
"watch": "ENV=development NAME=digitransit-component-${decamelizeName} webpack --watch --config ../webpack.config.babel.js",
7676
"clean": "rm -rf ./lib ./node_modules",
7777
"test": "mocha -r esm test.generated",

digitransit-store/packages/digitransit-store-common-functions/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "public"
88
},
99
"scripts": {
10-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
10+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1111
"watch": "ENV=development webpack --watch --config webpack.config.babel.js",
1212
"clean": "rm -rf ./lib ./node_modules",
1313
"test": "mocha -r esm test.generated",

digitransit-store/packages/digitransit-store-future-route/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "public"
88
},
99
"scripts": {
10-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
10+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
1111
"watch": "ENV=development webpack --watch --config webpack.config.babel.js",
1212
"clean": "rm -rf ./lib ./node_modules",
1313
"test": "mocha -r esm -r mock-local-storage test.generated",

digitransit-store/scripts/create-new-module

+3-5
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ writeFileSync(join(folderPath, 'package.json'), `{
102102
},
103103
"scripts": {
104104
"build:index": "ENV=production webpack --config webpack.config.babel.js && yarn run docs",
105-
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-proposal-class-properties,@babel/plugin-proposal-numeric-separator --out-file test.generated",
105+
"build:test": "babel test.js --presets=@babel/preset-react,@babel/preset-env --plugins=@babel/plugin-transform-class-properties,@babel/plugin-transform-numeric-separator --out-file test.generated",
106106
"watch": "ENV=development webpack --watch --config webpack.config.babel.js",
107107
"clean": "rm -rf ./lib ./node_modules",
108108
"test": "mocha -r esm -r mock-local-storage test.generated",
@@ -214,8 +214,6 @@ module.exports = {
214214
[
215215
'@babel/preset-env',
216216
{
217-
// loose is needed by older Androids < 4.3 and IE10
218-
loose: true,
219217
modules: false,
220218
},
221219
],
@@ -230,8 +228,8 @@ module.exports = {
230228
useESModules: true,
231229
},
232230
],
233-
['@babel/plugin-proposal-class-properties', { loose: true }],
234-
['@babel/plugin-proposal-numeric-separator', { loose: true }],
231+
'@babel/plugin-transform-class-properties',
232+
'@babel/plugin-transform-numeric-separator',
235233
['inline-react-svg'],
236234
],
237235
},

digitransit-util/packages/digitransit-util-day-range-allowed-diff/CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
# 1.1.0 (2020-03-06)
76

digitransit-util/packages/digitransit-util-day-range-pattern/CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
# 1.1.0 (2020-03-06)
76

digitransit-util/packages/digitransit-util-enrich-patterns/CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
# 1.1.0 (2020-03-06)
76

digitransit-util/packages/digitransit-util-route-pattern-option-text/CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
# 1.1.0 (2020-03-06)
76

digitransit-util/packages/digitransit-util/CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
54

65
# 1.1.0 (2020-03-06)
76

docs/Tests.md

-9
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,3 @@ Using the continuous watch mode
4040

4141
```sh
4242
yarn run test-unit -- --watch
43-
```
44-
45-
Generate code coverage report
46-
47-
```sh
48-
yarn run test-coverage
49-
```
50-
51-
Report is generated using nyc/Istanbul (config file `.nycrc.json`). HTML report is generated into `coverage` directory.

0 commit comments

Comments
 (0)