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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

`MiniSearch` follows [semantic versioning](https://semver.org/spec/v2.0.0.html).

## Upcoming

- [fix] Correctly specify that MiniSearch targets ES9 (ES2018), not ES6
(ES2015), due to the use of Unicode character class escapes in the
tokenizer RegExp. Note: the README explains how to achieve ES2015
compatibility.

## v7.1.1

- [fix] Fix ability to pass the default `filter` search option in the
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,14 @@ for details about configuration options and methods.

## Browser and Node compatibility

`MiniSearch` supports all browsers and NodeJS versions implementing the ES6
(ES2015) JavaScript standard. That includes all modern browsers and NodeJS
`MiniSearch` supports all browsers and NodeJS versions implementing the ES9
(ES2018) JavaScript standard. That includes all modern browsers and NodeJS
versions.

ES6 (ES2015) compatibility can be achieved by transpiling the tokenizer RegExp
to expand Unicode character class escapes, for example with
https://babeljs.io/docs/babel-plugin-transform-unicode-sets-regex.

## Contributing

Contributions to `MiniSearch` are welcome. Please read the [contributions
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"target": "es2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
"allowJs": true, /* Allow javascript files to be compiled. */
Expand Down
Loading