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

Release v1.1.0 #2

Merged
merged 2 commits into from
Jan 24, 2022
Merged

Release v1.1.0 #2

merged 2 commits into from
Jan 24, 2022

Conversation

santino
Copy link
Owner

@santino santino commented Jan 24, 2022

Cutting a new release with the following changes.

Breaking change:

Second argument of isActive function, from useRouter hook, has changed from boolean to object, currently supporting only exact property.
Before:

const { isActive } = useRouter()

const isActiveRoot = isActive('/', false)

Now:

const isActiveRoot = isActive('/', { exact: false })

New features:

Added second argument to preloadCode and warmRoute functions from useRouter hooks. The second argument is an object, currently supporting only ignoreRedirectRules boolean property.
Example:

const { preloadCode, warmRoute } = useRouter()

if ( ... ) preloadCode('/support', { ignoreRedirectRules: true })
if ( ... ) warmRoute('/home', { ignoreRedirectRules: true })

Internal changes

  • Updated all dependencies
  • Updated Jest tests according to breaking changes of Jest v27
  • Migrate from Travis.ci to GitHb Actions
  • Migrate from npm to yarn
  • Migrate from bundlesize to bundlewatch
  • Introduce CI on PRs and push to main
  • Integrate CI (even on PRs) with Coveralls to track and warn on coverage changes

@santino santino closed this Jan 24, 2022
@santino santino deleted the release/1.1.0 branch January 24, 2022 17:15
@santino santino restored the release/1.1.0 branch January 24, 2022 21:27
@santino santino reopened this Jan 24, 2022
@santino santino merged commit 0898e76 into main Jan 24, 2022
@santino santino deleted the release/1.1.0 branch January 24, 2022 21:33
santino added a commit that referenced this pull request Jan 24, 2022
* Release v1.1.0

* attempt to fix publish action
santino added a commit that referenced this pull request Jan 24, 2022
* Release v1.1.0

* attempt to fix publish action
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.

None yet

1 participant