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

feat: add possibility to surcharge next router listener #88

Merged
merged 4 commits into from
Jan 13, 2023

Conversation

maxgfr
Copy link
Member

@maxgfr maxgfr commented Jan 11, 2023

This branch allows users to surcharge the method from Next.js router onChangeStart and onChangeComplete that is used in the library

@maxgfr
Copy link
Member Author

maxgfr commented Jan 11, 2023

@m-maillot @Viczei @carolineBda Vous en pensez quoi ?

De mon côté, je pensais propager d'autres valeurs supplémentaires comme previousPath ou isExcludedUrl.

D'ailleurs ça peut poser soucis ici car on ne va pas le setter

src/index.ts Outdated Show resolved Hide resolved
@maxgfr maxgfr changed the title feat: add possibility to override next router listener feat: add possibility to surcharge next router listener Jan 12, 2023
@codecov-commenter
Copy link

Codecov Report

Base: 85.00% // Head: 86.15% // Increases project coverage by +1.15% 🎉

Coverage data is based on head (ecfc5fd) compared to base (9d3b799).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   85.00%   86.15%   +1.15%     
==========================================
  Files           1        1              
  Lines          60       65       +5     
  Branches       16       20       +4     
==========================================
+ Hits           51       56       +5     
  Misses          1        1              
  Partials        8        8              
Impacted Files Coverage Δ
src/index.ts 86.15% <100.00%> (+1.15%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@revolunet revolunet merged commit f1bf4a2 into SocialGouv:master Jan 13, 2023
github-actions bot pushed a commit that referenced this pull request Jan 13, 2023
# [1.5.0](v1.4.0...v1.5.0) (2023-01-13)

### Features

* add possibility to surcharge next router listener  ([#88](#88)) ([f1bf4a2](f1bf4a2))
@github-actions
Copy link

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants