Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Changelog

## [5.0.4] - 2026-11-09

- Many fixes for `swup validate`. Make the advertised commands actually do what's advertised:
- Implement `--sitemap` (also supports absolute sitemap paths)
- Fail on an empty sitemap or a non-OK sitemap response
- Fix `--crawl` (migrate to crawler v2 API)
- Fix `--animation` and `--parallel` flags being ignored
- Fix animation duration checks not waiting long enough
- Pass transition-styles check if any expected style changes
- Mark failed pages as failed in the task list 😅

## [5.0.3] - 2024-03-25

- Optimize `swup package:format` and `swup package:lint` for usage in `lint-staged`

## [5.0.2] - 2023-10-02

- Fix command links in readme

## [5.0.1] - 2023-09-26

- Make TypeScript 5 available to plugins

## [5.0.0] - 2023-09-19

- Add `build` and `lint` commands for bundling packages
- Simplify `validate` command args (possibly breaking change)
- Use interactive listers for multi-step commands
- Update CLI framework and tooling
- Switch to TypeScript and ESM modules
- Load config file from multiple locations

## [4.0.3] - 2022-06-01

- Fix error on non-TTY terminals

## [4.0.2] - 2020-06-29

- Support `asynchronous`, `baseUrl`, `runTests` and `testUrl` options in project config
- Rename option `findUrls` to `baseUrl`
- Rename shortcuts to `-t` (`runTests`) and `-u` (`testUrl`)
- Fix log level

## [4.0.1] - 2020-06-28

- Run async tests sequentially

## [4.0.0] - 2020-06-28

- Run tests asynchronously
- Make all options available from the CLI, with default values
- Support relative URLs
- Remove the `against` option
- Rename option `swupOptions` to `swup`

## [0.3.4] - 2020-06-28

- Add option to crawl the website before validating

## [0.3.3] - 2020-06-28

- Add option to run tests for a single URL
- Add option to run only one of the test cases
- Improve validation logging

## [0.3.2] - 2020-06-28

- Initial release

[5.0.4]: https://github.com/swup/cli/releases/tag/5.0.4
[5.0.3]: https://github.com/swup/cli/releases/tag/5.0.3
[5.0.2]: https://github.com/swup/cli/releases/tag/5.0.2
[5.0.1]: https://github.com/swup/cli/releases/tag/5.0.1
[5.0.0]: https://github.com/swup/cli/releases/tag/5.0.0
[4.0.3]: https://github.com/swup/cli/releases/tag/4.0.3
[4.0.2]: https://github.com/swup/cli/releases/tag/4.0.2
[4.0.1]: https://github.com/swup/cli/releases/tag/4.0.1
[4.0.0]: https://github.com/swup/cli/releases/tag/4.0.0
[0.3.4]: https://github.com/swup/cli/releases/tag/0.3.4
[0.3.3]: https://github.com/swup/cli/releases/tag/0.3.3
[0.3.2]: https://github.com/swup/cli/releases/tag/0.3.2
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ FLAG DESCRIPTIONS
Choose the type of project to create: plugin or theme. Not required if name ends with "Plugin" or "Theme".
```

_See code: [src/commands/create.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/create.ts)_
_See code: [src/commands/create.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/create.ts)_

## `swup help [COMMANDS]`

Expand Down Expand Up @@ -136,7 +136,7 @@ FLAG DESCRIPTIONS
Check for required package.json fields before bundling. Disable using --no-check.
```

_See code: [src/commands/package/build.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/package/build.ts)_
_See code: [src/commands/package/build.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/package/build.ts)_

## `swup package:check`

Expand All @@ -155,7 +155,7 @@ EXAMPLES
$ swup package:check
```

_See code: [src/commands/package/check.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/package/check.ts)_
_See code: [src/commands/package/check.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/package/check.ts)_

## `swup package:dev`

Expand All @@ -182,7 +182,7 @@ FLAG DESCRIPTIONS
Check for required package.json fields before bundling. Disable using --no-check.
```

_See code: [src/commands/package/dev.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/package/dev.ts)_
_See code: [src/commands/package/dev.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/package/dev.ts)_

## `swup package:format`

Expand All @@ -201,7 +201,7 @@ EXAMPLES
$ swup package:format
```

_See code: [src/commands/package/format.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/package/format.ts)_
_See code: [src/commands/package/format.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/package/format.ts)_

## `swup package:lint`

Expand All @@ -220,7 +220,7 @@ EXAMPLES
$ swup package:lint
```

_See code: [src/commands/package/lint.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/package/lint.ts)_
_See code: [src/commands/package/lint.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/package/lint.ts)_

## `swup validate`

Expand Down Expand Up @@ -298,5 +298,5 @@ FLAG DESCRIPTIONS
CSS properties expected to change during animations, separated by comma.
```

_See code: [src/commands/validate.ts](https://github.com/swup/cli/blob/5.0.3/src/commands/validate.ts)_
_See code: [src/commands/validate.ts](https://github.com/swup/cli/blob/5.0.4/src/commands/validate.ts)_
<!-- commandsstop -->
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,6 +1,6 @@
{
"name": "@swup/cli",
"version": "5.0.3",
"version": "5.0.4",
"description": "Swup CLI for plugin development and site validation",
"type": "module",
"author": {
Expand Down
Loading