| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. |
| 4 |
|
| 5 |
### [2.0.1](https://github.com/medikoo/esniff/compare/v2.0.0...v2.0.1) (2024-02-21) |
| 6 |
|
| 7 |
### Bug Fixes |
| 8 |
|
| 9 |
- Fix release of operator char trigger event ([1309a18](https://github.com/medikoo/esniff/commit/1309a187ed9dd82aea9f3b9fc3bd4b986c005fcb)) |
| 10 |
|
| 11 |
## [2.0.0](https://github.com/medikoo/esniff/compare/v1.1.3...v2.0.0) (2024-02-19) |
| 12 |
|
| 13 |
### ⚠ BREAKING CHANGES |
| 14 |
|
| 15 |
- Main `esniff` interface changed from `code, trigger, callback` to `code, executor` where executor function is provided with emitter that provides access to internal parsing process |
| 16 |
- Property and variable names resolution now respects ES2015+ language rules instead of ES5 |
| 17 |
- Utilties were moved: |
| 18 |
- `ensure-string-literal.js` -> `utils/ensure-string-literal.js` |
| 19 |
- `is-string-literal.js` -> `utils/is-string-literal.js` |
| 20 |
- `is-var-name-valid.js` -> `utils/is-variable-name.js` |
| 21 |
|
| 22 |
### Features |
| 23 |
|
| 24 |
- Replace parser with state machine based event driven variant ([0d9bf17](https://github.com/medikoo/esniff/commit/0d9bf1736c795a06d563ce550b50c8a3d90bf1a7)) |
| 25 |
- Support ES2015 template strings syntax ([4016496](https://github.com/medikoo/esniff/commit/401649625c35174380fc5eabf5e77f479f09a46f)) |
| 26 |
- Upgrade variable and property name patterns to ES2015+ ([7f2f4ab](https://github.com/medikoo/esniff/commit/7f2f4ab68b04d323a8fe305badac403629992656)) |
| 27 |
|
| 28 |
### Maintenance Improvements |
| 29 |
|
| 30 |
- Move basic utils into `utils` directory ([afc6ddf](https://github.com/medikoo/esniff/commit/afc6ddf3e3b0bb3b7c8708370d94dd47dc1bdf03)) |
| 31 |
- Refactor `stripComments` to rely on main parser ([6d2dd7f](https://github.com/medikoo/esniff/commit/6d2dd7f916c0d54444df061ff0997481dc253f21)) |
| 32 |
- Rely on `type` package instead of `es5-ext` ([2a79744](https://github.com/medikoo/esniff/commit/2a79744dff8c04e8dcccb63f0493c2d1e2e7f414)) |
| 33 |
|
| 34 |
### [1.1.3](https://github.com/medikoo/esniff/compare/v1.1.2...v1.1.3) (2024-01-04) |
| 35 |
|
| 36 |
### Maintenance Improvements |
| 37 |
|
| 38 |
- Improve `isVarNameValid` internals ([82138c2](https://github.com/medikoo/esniff/commit/82138c2b932debcfe6c5ab6db139889b5ff3d16c)) |
| 39 |
|
| 40 |
### [1.1.2](https://github.com/medikoo/esniff/compare/v1.1.1...v1.1.2) (2024-01-04) |
| 41 |
|
| 42 |
### Maintenance Improvements |
| 43 |
|
| 44 |
- Configure `.npmignore` ([1a67292](https://github.com/medikoo/esniff/commit/1a672927bf1367e335080e1dae312bb1fb6b79b1)) |
| 45 |
|
| 46 |
### [1.1.1](https://github.com/medikoo/esniff/compare/v1.1.0...v1.1.1) (2024-01-04) |
| 47 |
|
| 48 |
### Bug Fixes |
| 49 |
|
| 50 |
- Ensure to detect Windows EOL (`\r\n`) as single EOL ([72a17fe](https://github.com/medikoo/esniff/commit/72a17feed836432ef55864500b52853adf0ab9c3)) |
| 51 |
- Fix column indexing in move function ([3c0a6cb](https://github.com/medikoo/esniff/commit/3c0a6cbd5f0955b2728595e55fdb7f4fc3703a95)) |
| 52 |
|
| 53 |
### Maintenance Improvements |
| 54 |
|
| 55 |
- Declare support for Node.js v0.10+ ([1eba1d6](https://github.com/medikoo/esniff/commit/1eba1d633b4850b4356aa56d17e80ce6d6e4fae4)) |
| 56 |
- ESLint suggested improvements ([d7c65ef](https://github.com/medikoo/esniff/commit/d7c65ef71089cbc2cc83c8e7ae768252c5adb839)) |
| 57 |
- Extract regular expression patterns into modules ([1b12cbe](https://github.com/medikoo/esniff/commit/1b12cbe08561fac17774ca77e8c05669774c6e1f)) |
| 58 |
- Fix reference links in source code comments ([4787424](https://github.com/medikoo/esniff/commit/47874241eea6740edb0419e4372aa1aed1128a2c)) |
| 59 |
- Replace `xlint` configuration with `eslint` ([f434553](https://github.com/medikoo/esniff/commit/f434553f5b997c3e01b72f7692d030df8bbf92c1)) |
| 60 |
- Switch LICENSE from MIT to ISC ([cc33510](https://github.com/medikoo/esniff/commit/cc3351055c7b0ca34adc92922ca3321a5ebc85e5)) |
| 61 |
|
| 62 |
## Changelog for previous versions |
| 63 |
|
| 64 |
See `CHANGES` file |