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

Migrate project to typescript #20

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f09a7e7
feat(app): broadcast channel - add adaptive broadcast channel with fa…
Oct 2, 2024
4ca4544
fix(test): app - remove .only
Oct 2, 2024
be410ad
add redundant adaptive broadcast channel
Oct 8, 2024
9251d91
correct name
Oct 8, 2024
6b4f6b0
feat(setup): test - add sinon
Oct 8, 2024
c30a1e4
update redundant adaptive broadcast channel
Oct 8, 2024
39459bd
chore(setup): app - setup typescript build config
Oct 29, 2024
19e2e9a
feat(refactor): app - use typescript
Oct 29, 2024
8e6041f
feat(app): typescript - correct message callback type
Oct 29, 2024
5ab4d10
remove unneeded adaptive broadcast channel
Nov 5, 2024
1da857b
Merge branch 'feat/fallback-broadcast-channel' into feat/typescript
Nov 6, 2024
bd2e2e8
feat(app): fallback - add redundant broadcast channel typescript and …
Nov 6, 2024
52ccbc1
Update to typescript, add fallback
hieu-w Mar 2, 2025
78ca131
npm audit fix
hieu-w Mar 2, 2025
4a8ab90
Update deps
hieu-w Mar 2, 2025
49d7f97
Fix CI
hieu-w Mar 2, 2025
7f25f64
Fix audit report
hieu-w Mar 2, 2025
f99da3a
Fix test:typing
hieu-w Mar 2, 2025
d8ad5cd
Fix test:integration
hieu-w Mar 2, 2025
0f2336c
Fix indexed-db test
hieu-w Mar 2, 2025
287345e
Use crypto to generate token
hieu-w Mar 3, 2025
29d86a4
Add generic type for IBroadcastChannel
hieu-w Mar 3, 2025
2d7ca6a
Fix typing test with generic type
hieu-w Mar 3, 2025
f89fef3
Fix types issue
hieu-w Mar 3, 2025
3c445a9
Remove dist folder
hieu-w Mar 3, 2025
26792fc
Fix typing test eslint
hieu-w Mar 3, 2025
69a1323
Fix types issue (MethodType)
hieu-w Mar 3, 2025
50ea464
Update docs
hieu-w Mar 3, 2025
4c2e91f
Update .gitignore
hieu-w Mar 3, 2025
afc9415
Node suported to ver20
hieu-w Mar 3, 2025
0d94619
Remove mocha, karma
hieu-w Mar 3, 2025
ce89fb3
update broadcast channel generic message type
Mar 4, 2025
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
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

267 changes: 0 additions & 267 deletions .eslintrc.json

This file was deleted.

35 changes: 7 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# This workflow contains a single job called "build"
base:
# The type of runner that the job will run on
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -53,40 +53,21 @@ jobs:
- name: check build size webpack
run: npm run size:webpack

- name: check build size browserify
run: npm run size:browserify

- name: check build size rollup
run: npm run size:rollup

- name: code format
run: npm run lint

- name: test typings
run: npm run test:typings

# - name: test browser
# uses: GabrielBB/xvfb-action@v1
# with:
# working-directory: ./ #optional
# run: npm run test:browser

- name: test performance
run: npm run test:performance

# - name: test e2e
# uses: GabrielBB/xvfb-action@v1
# with:
# working-directory: ./ #optional
# run: npm run test:e2e


# run the node test in an own task, so we can use a node-version matrix.
test-node:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
node: ['15.14.0', '16.13.1', '17.3.0' ]
node: ['22.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
Expand Down Expand Up @@ -120,10 +101,8 @@ jobs:
- name: test node
run: npm run test:node

- name: Install playwright webkit
run: npx playwright install-deps webkit

# TODO this does not work atm. fix this.
# - name: test electron
# uses: GabrielBB/xvfb-action@v1
# with:
# working-directory: ./test-electron
# run: npm install --depth 0 --silent && npm run test
- name: test browser
run: npx playwright install && npm run test:browser
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
package-lock.json
.idea/
.vscode/
.transpile_state.json
Expand All @@ -8,4 +7,6 @@ shelljs_*
test_tmp/
tmp/
.eslintcache
toruslabs-*.tgz
toruslabs-*.tgz
dist/
.DS_Store
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
unsafe-perm = true
package-lock=false
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

#production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .prettierrc or .prettierrc.yaml
printWidth: 150
singleQuote: false
semi: true
trailingComma: es5
Loading
Loading