Skip to content
Open
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
15 changes: 0 additions & 15 deletions .changeset/mixed-ignored.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# watchpack

## 2.6.0

### Minor Changes

- feat: allow the `ignored` option to be a mixed array of glob strings and (by [@stormslowly](https://github.com/stormslowly) in [#336](https://github.com/webpack/watchpack/pull/336))
`RegExp` instances, e.g. `ignored: ["**/.cache", /generated/]`.

Previously an array was assumed to contain only glob strings, so passing a
`RegExp` inside it threw `TypeError: Expected a string`. This made it
awkward for frameworks to append their own glob ignores to a user-supplied
`RegExp` ignore, since the two could not be combined in one value.

Glob strings in the array are still merged into a single `RegExp`; `RegExp`
items are tested as-is. Behaviour for string-only arrays, single strings,
single `RegExp`s and functions is unchanged.

## 2.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "watchpack",
"version": "2.5.2",
"version": "2.6.0",
"description": "",
"homepage": "https://github.com/webpack/watchpack",
"bugs": {
Expand Down