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

Bump naja from 2.5.0 to 2.6.1 #1132

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2023

Bumps naja from 2.5.0 to 2.6.1.

Release notes

Sourced from naja's releases.

2.6.1

Minor changes and bugfixes

  • 🐞 SnippetCache no longer needs to call loadScripts() manually since ScriptLoader now hooks directly onto snippet's afterUpdate event.

Full Changelog: naja-js/naja@2.6.0...2.6.1

2.6.0

New features

  • HistoryHandler's restoreState event contains the direction of the history navigation: a negative number representing going back in history, and a positive number for going forward.
  • HistoryHandler's buildState event contains the operation, indicating whether the current state is being replaced, or a new state is being pushed. (#380)
  • RedirectHandler's redirect event provides the setUrl() method, allowing developers to programmatically alter the target URL.

Minor changes and bugfixes

  • 🐞 HTML element overrides uniqueness options only if the attribute is explicitly set. (#375)
  • 🐞 HistoryHandler no longer replaces the history state with a stale URL after async redirection. (#385)
  • 🐞 ScriptLoader hooks more precisely onto the afterUpdate event, executing scripts only from snippets that have actually been updated.
  • 🔧 The type of snippet in updateSnippet() has been relaxed to Element. (#379)
  • 🔧 Dependencies have been updated and revised, so that Naja now has zero runtime dependencies.

Full Changelog: naja-js/naja@2.5.0...2.6.0

2.6.0-beta.0

🚧 This is a beta release to show some changes that should be coming to Naja in near future. Please help me test these changes by installing the beta tag of Naja:

npm install naja@beta

New features

  • SnippetCache tries to cache the raw markup of snippets as returned from the server, prior to applying any afterUpdate changes. (#368)

  • HistoryHandler now includes more information about the history state change: (#380)

    • buildState event includes information about the performed operation (pushState or replaceState),
    • restoreState event includes information about the direction of the user's navigation that triggered the popstate.

Minor changes and bugfixes

  • 🔧 Relax the type of snippet in updateSnippet() (#379)
  • 🐞UniqueExtension: only override option from element if it has an explicit attribute (#375)
Commits
  • 3042a23 Release 2.6.1
  • 2cd7091 SnippetCache: do not call loadScripts() manually
  • a0899f7 Release 2.6.0
  • f263741 chore: use codecov upload token
  • 1c6f07a chore: update dependencies
  • 648246b ScriptLoader: only execute scripts from actually updated snippets (on snippet...
  • b3974ea HistoryHandler: fix using stale url after async redirection (closes #385)
  • 3d49330 RedirectHandler: add setUrl() method to redirect event
  • 4322a75 chore: replace karma with wtr
  • 05c5b13 chore: update github actions
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 4, 2023
@jan-stanek
Copy link
Member

@dependabot rebase

Bumps [naja](https://github.com/naja-js/naja) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/naja-js/naja/releases)
- [Changelog](https://github.com/naja-js/naja/blob/main/docs/history.md)
- [Commits](naja-js/naja@2.5.0...2.6.1)

---
updated-dependencies:
- dependency-name: naja
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/naja-2.6.1 branch from 0fdad3d to d7858f9 Compare January 23, 2024 20:53
@jan-stanek jan-stanek merged commit 2a39c7e into master Jan 23, 2024
7 checks passed
@jan-stanek jan-stanek deleted the dependabot/npm_and_yarn/naja-2.6.1 branch January 23, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant