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

v3 #97

Merged
merged 38 commits into from
Feb 9, 2023
Merged

v3 #97

merged 38 commits into from
Feb 9, 2023

Conversation

* Implement static-location

* Update Link activeClass doesnt work on server

* Update Routers staticLocation

* Fix isActive link

* Update doc

* 2.1.0-beta.0

* Add example-node folder in npmignore

* 3.0.0-beta.0
@github-actions
Copy link

github-actions bot commented May 5, 2022

Size Change: +905 B (+4%)

Total Size: 21.7 kB

Filename Size Change
./dist/index.esm.js 5.61 kB +227 B (+4%)
./dist/index.js 5.59 kB +248 B (+5%) 🔍
./dist/index.modern.js 4.86 kB +189 B (+4%)
./dist/index.umd.js 5.67 kB +241 B (+4%)

compressed-size-action

@willybrauner willybrauner self-assigned this May 5, 2022
Willy Brauner and others added 27 commits May 17, 2022 10:50
* Remove router memeoization

* Patch strictMode because of second render
* Routes can't be formated in useEffect in SSR mode, move format in useMemo

* 3.0.0-beta.2

* 3.0.0-beta.2.1
* Update peer react version

* Change preact size-compressed-action by size-limit-action

* Update to ci

* change node version github action

* Update dependencies

* Update dependencies
* Fix hash history reload

* Clean

* Fix packages

* remove example

Co-authored-by: Hugo Lefrant <hugo@cher-ami.tv>
Co-authored-by: Willy Brauner <mail@willybrauner.com>
* Fix: Listen history in useMemo because of SSR and Client render doesn't match

* Fix: Listen history in useMemo because of SSR and Client render doesn't match
* Add action and getStaticRoutes to TRoute type

* Inject staticProps in route props

* Add example

* Update package

* Props propagation in getStaticProps

* Add node-fetch as global

* Implement cache

* Add staticPropsCache tests

* Request Global api & global context

* Minor

* Adapt cache

* Fix tests

* Replace node-fetch by isomorphic-unfetch

* fix path to regex and generate index

* Implement SSR langservice (#106)

* Implement ssr langService

* Add comment

* Remove log

* Create requestStaticPropsFromRoute  (depends of #105) (#108)

* Create getStaticPropsFromRoute

* Add lang switcher for test

* Add test for getCurrentRoute

* Add requestStaticPropsFromRoute test

* Remove node-fetch

* Remove unused import

* Clean

* New repos struct (depends of #105) (#109)

* Use pnpm & preconstruct

* Update github action

* Config watch for examples

* Update lock

* Remove Get current route method (#110)

* Update core struct (#111)

* Update core struct

* Externalize helpers

* Add doc

* Update script watch to build:watch

Co-authored-by: Hugo Lefrant <hugo@cher-ami.tv>
* fix: matcher should render the right route for 1st level router

* Return real getRouteFromUrl

* Add _context for currentRoute if parent object doesn't exist

* Rename fullUrl to _fullUrl & fullPath to _fullPath

* Rename langPath by _langPath

* Add _context for currentRoute if parent object doesn't exist fix

* Rename 1stLevelroute to auto-generate-slash-route
* Externalize fixture

* remove comments

* Add getSubRouterBase test

* Start get subrouter routes

* Add getSubRouterRoutes test

* Add patchMissingRootRoute test

* Add last tests and format
* _context obj needs to return formatted current route if pParent doesn't exist

* Add condition in tests
* Update example

* Fix langService regeneration
* Start to fix getSubRouterBase-getSubRouterRoutes

* Update method and doc

* Update tests
* Fix ssr regenerate routes on refresh

* Improve ssr example

* Fix langService in subRouter

* Update npm scripts
@willybrauner willybrauner marked this pull request as ready for review February 9, 2023 15:48
@willybrauner willybrauner merged commit 3d5cc0d into main Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add detect browser language for LanguageService Add staticLocation for SSR support
2 participants