Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

29 September 2021 Release #882

Merged
merged 67 commits into from Sep 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3e989cb
Bump eslint-plugin-react from 7.21.3 to 7.21.5
dependabot[bot] Oct 20, 2020
209c6ca
fix: bump sinon from 9.1.0 to 9.2.1
dependabot[bot] Oct 28, 2020
6ea5bb4
fix: bump babel-jest from 26.3.0 to 26.6.3
dependabot[bot] Nov 4, 2020
343cd16
fix: bump rollup from 2.28.2 to 2.33.3
dependabot[bot] Nov 18, 2020
4973b31
Merge pull request #758 from nugit/dependabot/npm_and_yarn/develop/es…
dependabot[bot] Nov 23, 2020
310e748
Merge pull request #763 from nugit/dependabot/npm_and_yarn/develop/si…
dependabot[bot] Nov 23, 2020
605dc64
Merge pull request #767 from nugit/dependabot/npm_and_yarn/develop/ba…
dependabot[bot] Nov 23, 2020
f037cbf
Merge pull request #770 from nugit/dependabot/npm_and_yarn/develop/ro…
dependabot[bot] Nov 23, 2020
ca71907
chore(release): 5.1.0-beta.2
semantic-release-bot Nov 23, 2020
05a2de2
fix: bump jest from 26.4.2 to 26.6.3
dependabot[bot] Nov 23, 2020
b72877d
Merge pull request #768 from nugit/dependabot/npm_and_yarn/develop/je…
dependabot[bot] Nov 23, 2020
ba0eea3
chore(release): 5.1.0-beta.3
semantic-release-bot Nov 23, 2020
039d915
fix: bump @semantic-release/github from 7.1.1 to 7.2.0
dependabot[bot] Nov 23, 2020
0f98510
chore: fix out of shared memory error for Mac Rosetta 2
limtingzhi Feb 17, 2021
4a25fec
chore: move test files
limtingzhi Feb 17, 2021
be0cb00
chore: clean up test files
limtingzhi Feb 17, 2021
174ac89
chore: remove unused dependencies
limtingzhi Feb 17, 2021
f55f036
chore: update dependencies
limtingzhi Feb 17, 2021
390258f
chore: fix vulnerable dependencies
limtingzhi Feb 17, 2021
31ecfee
fix: bump @babel/register from 7.11.5 to 7.13.8
dependabot[bot] Mar 1, 2021
5398785
Merge pull request #774 from nugit/dependabot/npm_and_yarn/develop/se…
dependabot[bot] Mar 9, 2021
031d8f5
Merge pull request #797 from nugit/dependabot/npm_and_yarn/develop/ba…
dependabot[bot] Mar 9, 2021
62f0527
fix: bump @babel/cli from 7.11.6 to 7.13.10
dependabot[bot] Mar 9, 2021
10403e2
chore: update dependencies
limtingzhi Mar 10, 2021
657b614
Merge branch 'develop' into update/dependencies
limtingzhi Mar 10, 2021
0d53ebf
Merge pull request #802 from nugit/dependabot/npm_and_yarn/develop/ba…
dependabot[bot] Mar 10, 2021
7c8999f
Merge branch 'master' into develop
limtingzhi Mar 11, 2021
1e31202
chore(release): 5.1.1-beta.1
semantic-release-bot Mar 11, 2021
d1504bd
Merge branch 'develop' into update/dependencies
limtingzhi Mar 11, 2021
5f70189
Merge pull request #803 from nugit/update/dependencies
limtingzhi Mar 11, 2021
87b8909
fix: bump @babel/preset-flow from 7.10.4 to 7.12.13
dependabot[bot] Mar 11, 2021
c696b71
Merge pull request #807 from nugit/dependabot/npm_and_yarn/develop/ba…
dependabot[bot] Mar 11, 2021
5437c83
chore(release): 5.1.1-beta.2
semantic-release-bot Mar 11, 2021
62c14a2
fix: bump rollup from 2.41.0 to 2.45.2
dependabot[bot] Apr 13, 2021
5a59bcf
Merge pull request #828 from nugit/dependabot/npm_and_yarn/develop/ro…
dependabot[bot] Apr 20, 2021
8b4e3cb
chore(release): 5.1.1-beta.3
semantic-release-bot Apr 29, 2021
22a8cc6
Merge branch 'master' into update/dependencies
limtingzhi Sep 24, 2021
d052f38
fix: update date-fns
limtingzhi Sep 24, 2021
9815dd5
fix!: update rollup related packages
limtingzhi Sep 24, 2021
9a40c48
chore: update eslint related packages
limtingzhi Sep 24, 2021
f87a38d
chore: update tests related packages
limtingzhi Sep 24, 2021
f13c415
chore: update flow
limtingzhi Sep 24, 2021
f3c45c1
chore: remove unused folder
limtingzhi Sep 24, 2021
05204b5
fix!: replace rollup uglify with terser
limtingzhi Sep 27, 2021
1e7165a
fix: update babel related packages
limtingzhi Sep 24, 2021
2d0e176
fix!: update @babel/preset-env
limtingzhi Sep 27, 2021
88ec605
chore: add default babelHelper option
limtingzhi Sep 27, 2021
20f1c6a
fix!: update target browsers list
limtingzhi Sep 27, 2021
054f4b1
chore: update tests related packages
limtingzhi Sep 27, 2021
e8b94d6
chore: remove lint-staged
limtingzhi Sep 27, 2021
75c0b67
chore: update semantic-release related packages
limtingzhi Sep 27, 2021
25a0911
chore: update husky
limtingzhi Sep 27, 2021
b9e4ad1
chore: move rollup config file
limtingzhi Sep 27, 2021
ff91c44
fix: fix vulnerabilities
limtingzhi Sep 27, 2021
770a06f
chore: add pull request template
limtingzhi Sep 27, 2021
c6f89bd
chore: update github workflows
limtingzhi Sep 27, 2021
4d7e595
feat: add peer dependencies
limtingzhi Sep 27, 2021
b95ef38
chore: add .npmrc to .gitignore
limtingzhi Sep 27, 2021
37f4e69
chore: fix lint
limtingzhi Sep 27, 2021
93ea331
chore: update pull request template
limtingzhi Sep 27, 2021
f4ed427
chore: remove @semantic-release/exec
limtingzhi Sep 28, 2021
b954ca4
Merge pull request #876 from nugit/update/dependencies
limtingzhi Sep 28, 2021
8bbe6be
chore(release): 6.0.0-beta.1
semantic-release-bot Sep 28, 2021
abdf7a0
chore: rename version to 0.0.0
limtingzhi Sep 29, 2021
2462789
fix: fix version not updated in package.json
limtingzhi Sep 29, 2021
6120b79
Merge pull request #881 from nugit/update/dependencies
limtingzhi Sep 29, 2021
0ecbba9
chore(release): 6.0.0-beta.2
semantic-release-bot Sep 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

13 changes: 3 additions & 10 deletions .flowconfig
@@ -1,9 +1,7 @@
[ignore]
; ignore is using regex syntax
<PROJECT_ROOT>/\.circleci/.*
<PROJECT_ROOT>/\.github/.*
<PROJECT_ROOT>/\.idea/.*
<PROJECT_ROOT>/coverage/.*
<PROJECT_ROOT>/lib/.*
<PROJECT_ROOT>/\..*/.*
<PROJECT_ROOT>/node_modules/.*
Expand All @@ -21,11 +19,7 @@ all=error
deprecated-utility=error
implicit-inexact-object=error
ambiguous-object-type=error
sketchy-null=warn
deprecated-type=warn
unclear-type=warn
untyped-import=warn
unsafe-getters-setters=warn
nonstrict-import=off

[declarations]
; declarations is using regex syntax
Expand All @@ -41,10 +35,9 @@ module.file_ext=.json
exact_by_default=true
experimental.const_params=true
munge_underscores=true
esproposal.optional_chaining=enable
; include_warnings=true
well_formed_exports=true
types_first=true
; Fixes out of shared memory error for Mac Rosetta 2, see https://github.com/facebook/flow/issues/8538
sharedmemory.heap_size=3221225472

[strict]
nonstrict-import
Expand Down
17 changes: 16 additions & 1 deletion .github/dependabot.yml
@@ -1,5 +1,7 @@
version: 2

updates:
# root
- package-ecosystem: "npm"
directory: "/"
schedule:
Expand All @@ -8,7 +10,20 @@ updates:
allow:
- dependency-type: "direct"
reviewers:
- "@nugit/front-devs"
- team-engineering-x
target-branch: "develop"
commit-message:
prefix: "fix:"
prefix-development: "chore:"

# github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "22:00"
reviewers:
- team-engineering-x
target-branch: "develop"
commit-message:
prefix: "chore:"
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
@@ -0,0 +1,6 @@
**Changes:**


**PRs:**

-
16 changes: 16 additions & 0 deletions .github/workflows/changelog.yml
@@ -0,0 +1,16 @@
name: Changelog

on:
pull_request:
types: [opened, edited, synchronize]
branches: [master]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: nugit/actions-pr-changelog@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
type: release
39 changes: 39 additions & 0 deletions .github/workflows/dependabot-merge.yml
@@ -0,0 +1,39 @@
name: dependabot-merge

on:
workflow_run:
workflows: ["dependabot-check"]
types:
- completed

# See https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544
jobs:
check:
# Copied from push.yml
runs-on: ubuntu-latest
if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.sender.login == 'dependabot[bot]') }}
steps:
- uses: haya14busa/action-workflow_run-status@v1
- uses: actions/checkout@v2.3.4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- run: yarn lint
- run: yarn flow
- run: yarn test
- run: yarn build
auto-merge:
runs-on: ubuntu-latest
needs: check
steps:
- uses: haya14busa/action-workflow_run-status@v1
- uses: fastify/github-action-merge-dependabot@v2.5.0
with:
target: minor
merge-method: merge
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.workflow_run.pull_requests[0].number }}
12 changes: 12 additions & 0 deletions .github/workflows/dependabot.yml
@@ -0,0 +1,12 @@
name: dependabot-check

on:
pull_request:

# See https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544
jobs:
check-dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- run: echo "PR created by Dependabot"
35 changes: 35 additions & 0 deletions .github/workflows/deploy-production.yml
@@ -0,0 +1,35 @@
name: Deploy Production

on:
push:
branches:
- master

jobs:
back-merge:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Merge master -> develop
uses: devmasx/merge-branch@1.4.0
with:
type: now
from_branch: master
target_branch: develop
github_token: ${{ secrets.GH_TOKEN }}
deploy: # Runs install once before everything to create & save cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- name: publish
run: yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24 changes: 24 additions & 0 deletions .github/workflows/deploy-staging.yml
@@ -0,0 +1,24 @@
name: Deploy Staging

on:
push:
branches:
- alpha
- develop

jobs:
install: # Runs install once before everything to create & save cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
cache: 'yarn'
- run: yarn install
- name: publish
run: yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
47 changes: 0 additions & 47 deletions .github/workflows/deploy.yml

This file was deleted.

85 changes: 9 additions & 76 deletions .github/workflows/push.yml
@@ -1,91 +1,24 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Lint
name: Check

on: [push]
on:
push:
branches-ignore:
- dependabot/**

jobs:
setup:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.4.0
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
lint:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
cache: 'yarn'
- run: yarn install
- run: yarn lint
flow:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn flow
test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn test
build:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- run: yarn install
- run: yarn build
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -18,9 +18,9 @@ logs
results
temp


# Editors
*.sublime-workspace

# Vim swap and backup files
*.swo
*.swp
Expand All @@ -30,6 +30,7 @@ temp
npm-debug.log
node_modules
yarn-error.log
.npmrc

# ESLint
.eslintcache
Expand Down
9 changes: 9 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if [[ -n $HUSKY_BYPASS ]]; then
echo "Husky bypassed"
exit 0;
fi

yarn commitlint --config ./config/commitlint.config.js --edit $1