Skip to content

v4.1 #1397

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

Merged
merged 136 commits into from
Jun 30, 2022
Merged

v4.1 #1397

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
46b170e
chore: up deps
posva Apr 20, 2022
3132915
feat: expose RouterView and RouterLink as GlobalComponents (#1372)
Apr 20, 2022
dd7cdea
feat(view): handle empty components as pass through
posva Nov 4, 2021
d1e7a01
refactor: fix type errors
posva Nov 4, 2021
ada0f22
test: remove old ignore [skip ci]
posva Nov 4, 2021
d4f9db7
feat(router): allow pausing listeners
posva Apr 20, 2022
22f634a
feat(devtools): add more options in devtools routes
posva Apr 20, 2022
0cd9a7e
refactor: use native symbols
posva Apr 21, 2022
a2239cb
chore: regen lock
posva Apr 21, 2022
58eaeaf
chore: remove old todos
posva May 2, 2022
4f3b1d6
refactor: reverse extend order routerlocation
posva May 2, 2022
a302f65
feat: loadRouteLocation()
posva May 2, 2022
7673d7e
test: remove unused imports
posva May 2, 2022
b2e3547
feat(types): infer params types from path
posva May 2, 2022
1d7d6b1
test: avoid type error
posva May 2, 2022
79de4c1
feat: support for typescript named routes
pikax Apr 8, 2021
f3661c1
some code changes to make the demo kinda work
pikax Apr 8, 2021
bf2865a
supporting child named routes
pikax Apr 8, 2021
1b0f112
changes on the location path
pikax Apr 9, 2021
be9db8f
almost working
pikax Apr 9, 2021
40b690b
improvements
pikax Apr 9, 2021
8aa5d36
add couple more test
pikax Apr 9, 2021
ce5136d
fixed it
pikax Apr 9, 2021
697840d
no need for name and children 😎
pikax Apr 9, 2021
605debd
add comment
pikax Apr 9, 2021
bd2fff2
fix build
pikax Apr 9, 2021
c04c35c
rollback router
pikax Apr 9, 2021
78d9307
chore: add createRouter templated options
pikax Apr 21, 2021
ad0a1bc
chore: change to readonly
pikax Apr 21, 2021
e254041
chore: unused imports
posva May 3, 2022
ff6c50c
feat(types): add RouteNamepMap type
posva May 3, 2022
9976a62
refactor(types): add path generics
posva May 3, 2022
2784406
feat: add replace and refactor types to work
posva May 4, 2022
223289e
chore: oops file
posva May 4, 2022
5b59760
test: make them work
posva May 5, 2022
7d11524
refactor: remove old types
posva May 5, 2022
4b00455
refactor: internal types
posva May 6, 2022
11ad0e5
chore: testing
posva May 6, 2022
1954cb7
feat: typing global router
posva May 6, 2022
7e1def9
chore: remove unused import
posva May 9, 2022
2bd0aac
chore: leftovers
posva May 9, 2022
54c1544
chore: mark type as internal
posva May 9, 2022
37cecfd
feat: warn against named parent routes (#1396)
posva May 12, 2022
a1ad5bf
refactor(types): missing generic constraint
posva May 12, 2022
50e7237
build: use cjs/mjs extensions for cjs/esm builds (#1157)
danielroe May 15, 2022
b705f9e
refactor: use type safe isArray
posva May 16, 2022
606da78
fix: discard params in path redirect
posva May 16, 2022
bae9cba
chore: types in tests
posva May 16, 2022
838a5a2
build: add node specific version
posva May 16, 2022
d8cbfb6
fix: resolve relative paths to /
posva May 20, 2022
4794325
fix: correctly resolve hash including a search
posva May 27, 2022
9b90956
test: no trailing slash
posva May 27, 2022
228b8ad
refactor(types): better type inference for named routes
posva Jun 7, 2022
4e5a3fd
chore: api docs
posva Jun 7, 2022
d376c67
chore: up deps
posva Jun 7, 2022
4d63fb2
chore: up TS
posva Jun 7, 2022
ec8c2ff
ci: update ci image
posva Jun 7, 2022
92a4c0d
ci: add geckodriver
posva Jun 7, 2022
be828b1
chore: add npmrc
posva Jun 8, 2022
5cdab8d
chore: format security
posva Jun 8, 2022
c4e5c2e
chore: move to pnpm workspaces
posva Jun 8, 2022
a6af6f0
ci: add missing binary option
posva Jun 8, 2022
f7d38be
ci: fix size paths
posva Jun 8, 2022
4603d1d
refactor: move docs to package
posva Jun 8, 2022
4ee0fbd
ci: move to gh
posva Jun 8, 2022
bbabded
ci: size script
posva Jun 8, 2022
7162755
ci: give up the size one
posva Jun 8, 2022
5be02ab
chore: refactor paths
posva Jun 8, 2022
5219184
test(e2e): start moving to nighwatch 2
posva Jun 8, 2022
ce09722
chore: upgrade nightwatch
posva Jun 8, 2022
c62c29a
test: add headless chrome as default
posva Jun 9, 2022
ed8764a
test: add type, remove unused configs
posva Jun 9, 2022
f6fc1dc
chore: replace yarn with pnpm in scripts
posva Jun 9, 2022
340f07b
test: run remote e2e tests
posva Jun 9, 2022
224b88c
chore: remove old selenium
posva Jun 9, 2022
a0f2983
test: run on ci try
posva Jun 9, 2022
1efb205
ci: run server with tests
posva Jun 9, 2022
03c1400
ci: use script
posva Jun 9, 2022
ecbecf0
ci: try secrets again
posva Jun 9, 2022
2ec582e
ci: try again
posva Jun 9, 2022
2ea5f61
ci: oops
posva Jun 9, 2022
ae10b25
ci: more tries
posva Jun 9, 2022
e121d3b
ci: go firefox
posva Jun 9, 2022
8e4a159
ci: again
posva Jun 9, 2022
a91e280
ci: last...
posva Jun 9, 2022
8238216
ci: well, let's use headless
posva Jun 9, 2022
eae896d
ci: move bs tests to end
posva Jun 9, 2022
e21056f
ci: skip bs to test faster the migration
posva Jun 9, 2022
c38716f
test: migrate hash test
posva Jun 9, 2022
0498e04
test: migrate guards test
posva Jun 9, 2022
b505f73
test: migrate guards keep-alive
posva Jun 9, 2022
02eb5e0
test: refactor imports and old bsStatus
posva Jun 9, 2022
4958de5
test: migrate guards scroll-behavior
posva Jun 9, 2022
a18ae4a
test: migrate guards modal
posva Jun 9, 2022
776c705
test: migrate guards multi app
posva Jun 9, 2022
70f1a33
test: migrate guards transitions
posva Jun 9, 2022
1ebe010
test: migrate guards suspense
posva Jun 9, 2022
a394369
chore: remove old e2e after migration
posva Jun 9, 2022
308ffec
ci: restore tests
posva Jun 9, 2022
2700d0a
chore: adapt scripts
posva Jun 10, 2022
fb973c4
chore: fix lint-staged
posva Jun 10, 2022
85423b9
feat(devtools): warn against old devtools version
posva Jun 10, 2022
bd8a411
chore: doc function
posva Jun 10, 2022
72eadab
feat(types): typed string routes
posva Jun 10, 2022
a50503c
chore: correct version after rebase
posva Jun 10, 2022
0bc0956
build: add new release script
posva Jun 10, 2022
81d0ab6
chore: move brotli dep
posva Jun 10, 2022
366d769
chore: move changelog file
posva Jun 10, 2022
5b4001b
chore: types housekeeping
posva Jun 10, 2022
ca5cda9
chore: update lock
posva Jun 10, 2022
d58268d
refactor: move playground
posva Jun 10, 2022
282df71
chore: refactor deps
posva Jun 13, 2022
3bd185c
chore: remove js files
posva Jun 13, 2022
fcd3348
perf(types): reduce tuple amount for string paths
posva Jun 13, 2022
1169baf
refactor(types): simplify param parsing
posva Jun 13, 2022
77f9b88
chore: add ts at root for vscode
posva Jun 14, 2022
2a414a1
refactor(types): remove old types
posva Jun 14, 2022
f7af6af
chore: rename internal join path
posva Jun 14, 2022
19060f8
refactor(types): move utils types
posva Jun 14, 2022
b25a6b4
chore: build scripts
posva Jun 14, 2022
2fcc299
refactor(types): move tests of types
posva Jun 14, 2022
e139336
refactor(types): prefix matcher types
posva Jun 14, 2022
1bc26c8
chore: minor cleanup
posva Jun 14, 2022
b4d0a27
test: fix rename
posva Jun 15, 2022
fef068f
docs: add typed routes
posva Jun 15, 2022
23d9e2c
feat: add typed router link
posva Jun 15, 2022
0dfaf51
types: typed routes for RouterLink
posva Jun 16, 2022
e6f847a
docs: simplify RouterLink usage
posva Jun 16, 2022
25ebef2
refactor(types): avoid eager evaluation of routerlink
posva Jun 16, 2022
c4e676c
docs: typed routes details for 4.1
posva Jun 17, 2022
a7c591b
refactor: revert the complex types for path parsing
posva Jun 29, 2022
5e06788
docs: update typed routes
posva Jun 29, 2022
5452bea
chore: remove unused files
posva Jun 29, 2022
b67562e
docs: screenshot
posva Jun 29, 2022
5b5ce34
feat(types): allow extending global types
posva Jun 29, 2022
6355d8f
build: fix line offset
posva Jun 29, 2022
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
22 changes: 0 additions & 22 deletions .github/workflows/size-check.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: test

on:
push:
paths-ignore:
- 'packages/docs/**'
- 'packages/playground/**'
pull_request:
paths-ignore:
- 'packages/docs/**'
- 'packages/playground/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.1
with:
version: 7.1.7
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'
- name: 'BrowserStack Env Setup'
uses: 'browserstack/github-actions/setup-env@master'
with:
username: ${{ secrets.BROWSERSTACK_USERNAME }}
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

- run: pnpm install
- run: pnpm run lint
- run: pnpm run -r test:types
- run: pnpm run -r test:unit
- run: pnpm run -r build
- run: pnpm run -r build:dts
- run: pnpm run -r test:dts

# E2E testing

- run: pnpm run -r test:e2e:ci

- uses: codecov/codecov-action@v2

# - name: 'Start BrowserStackLocal Tunnel'
# uses: 'browserstack/github-actions/setup-local@master'
# with:
# local-testing: 'start'
# local-logging-level: 'all-logs'
# local-identifier: 'random'

# - run: pnpm run -r test:e2e:bs-test

# - name: 'Stop BrowserStackLocal'
# uses: 'browserstack/github-actions/setup-local@master'
# with:
# local-testing: 'stop'
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
dist
examples_dist
node_modules
coverage
.nyc_output
.rpt2_cache
.env
local.log
.DS_Store
e2e/reports
e2e/screenshots
__build__
playground_dist
yarn-error.log
temp
markdown
explorations
selenium-server.log
browserstack.err
.idea
debug.log
yalc.lock
.yalc
local.log
_selenium-server.log
packages/*/LICENSE
tracing_output
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shamefully-hoist=true
detect_chromedriver_version=true

3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
e2e/__build__
__build__
dist
coverage
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Eduardo San Martin Morote
Copyright (c) 2019-present Eduardo San Martin Morote

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
107 changes: 0 additions & 107 deletions circle.yml

This file was deleted.

86 changes: 0 additions & 86 deletions e2e/browserstack-send-status.js

This file was deleted.

16 changes: 0 additions & 16 deletions e2e/devServer.js

This file was deleted.

40 changes: 0 additions & 40 deletions e2e/index.ts

This file was deleted.

Loading