Skip to content

Commit

Permalink
Merge pull request #59 from swup/chore/release
Browse files Browse the repository at this point in the history
Prepare v5 release
  • Loading branch information
daun authored Apr 15, 2024
2 parents b426197 + ea102c6 commit 6ede95b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [5.0.0] - 2024-04-15

This is a complete overhaul of the plugin, based on extensive feedback and testing in screen
readers. Some breaking changes have been made to improve the defaults. If you haven't customized the
plugin options, it's safe to upgrade, otherwise consult the readme.

- Rethink announcements: use assertive live region and announce after a delay (@ScoobyDid)
- Focus `body` on navigation instead of `main`
- Only use `h1` for announcements by default, ignore `h2`
- Disable animations by default if users prefer reduced motion
- Correctly exclude `inert` elements from autofocus
- Tested in VoiceOver, JAWS and NVDA

## [4.5.1] - 2024-04-02

- Fix the type signature of `AnnouncementTranslations`
Expand Down Expand Up @@ -54,6 +67,7 @@

- Initial release

[5.0.0]: https://github.com/swup/a11y-plugin/releases/tag/5.0.0
[4.5.1]: https://github.com/swup/a11y-plugin/releases/tag/4.5.1
[4.5.0]: https://github.com/swup/a11y-plugin/releases/tag/4.5.0
[4.4.2]: https://github.com/swup/a11y-plugin/releases/tag/4.4.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import SwupA11yPlugin from '@swup/a11y-plugin';
Or include the minified production file from a CDN:

```html
<script src="https://unpkg.com/@swup/a11y-plugin@4"></script>
<script src="https://unpkg.com/@swup/a11y-plugin@5"></script>
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swup/a11y-plugin",
"amdName": "SwupA11yPlugin",
"version": "4.5.1",
"version": "5.0.0",
"description": "A swup plugin for enhanced accessibility",
"type": "module",
"source": "src/index.ts",
Expand Down

0 comments on commit 6ede95b

Please sign in to comment.