[d565449] | 1 | # Changelog
|
---|
| 2 |
|
---|
| 3 | All notable changes to this project will be documented in this file.
|
---|
| 4 |
|
---|
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
---|
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
---|
| 7 |
|
---|
| 8 | ## [v3.3.5](https://github.com/jsx-eslint/jsx-ast-utils/compare/v3.3.4...v3.3.5) - 2023-07-28
|
---|
| 9 |
|
---|
| 10 | ### Fixed
|
---|
| 11 |
|
---|
| 12 | - [Fix] `extractProp`: support `JSXFragment` [`#132`](https://github.com/jsx-eslint/jsx-ast-utils/issues/132)
|
---|
| 13 |
|
---|
| 14 | ### Commits
|
---|
| 15 |
|
---|
| 16 | - [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `eslint` [`e5555d1`](https://github.com/jsx-eslint/jsx-ast-utils/commit/e5555d152dbe1e85324139756f637e65fe047976)
|
---|
| 17 | - [Tests] fix a test [`bde3ba9`](https://github.com/jsx-eslint/jsx-ast-utils/commit/bde3ba9c9dc294d5472eefa0b3f31ab0e1aed739)
|
---|
| 18 |
|
---|
| 19 | ## [v3.3.4](https://github.com/jsx-eslint/jsx-ast-utils/compare/v3.3.3...v3.3.4) - 2023-06-28
|
---|
| 20 |
|
---|
| 21 | ### Commits
|
---|
| 22 |
|
---|
| 23 | - [Refactor] use `array.prototype.flat` `object.values` over `.reduce` [`bad51d0`](https://github.com/jsx-eslint/jsx-ast-utils/commit/bad51d062000ffdc19d925723a6515458318cf92)
|
---|
| 24 | - [meta] add `auto-changelog` [`af1de69`](https://github.com/jsx-eslint/jsx-ast-utils/commit/af1de693d1005144c13a75573631a670fa44547e)
|
---|
| 25 | - [Tests] add test for `import.meta` [`1d39f58`](https://github.com/jsx-eslint/jsx-ast-utils/commit/1d39f58c7bc6a89aa936e666b76e355c9436e854)
|
---|
| 26 | - [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `aud`, `eslint`, `eslint-plugin-import` [`3baaf76`](https://github.com/jsx-eslint/jsx-ast-utils/commit/3baaf76c9c48ae85687ed23a3b9894c45927e081)
|
---|
| 27 | - [Fix] `TSNonNullExpression`: Handle function calls [`26cc3c4`](https://github.com/jsx-eslint/jsx-ast-utils/commit/26cc3c48165518b9fcdc9c625d918accc3e00107)
|
---|
| 28 | - [Dev Deps] update `eslint`, `@babel/core`, `@babel/parser`, `object.entries`, `object.fromentries` [`0e4f80c`](https://github.com/jsx-eslint/jsx-ast-utils/commit/0e4f80c2129c5b5ee50e4df2f25c5fb6728cbe8e)
|
---|
| 29 | - [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `aud` [`b5427a6`](https://github.com/jsx-eslint/jsx-ast-utils/commit/b5427a65fac33e2264461b072b3edb078242dc85)
|
---|
| 30 | - [meta] run build in prepack, not prepublish [`a0f4f38`](https://github.com/jsx-eslint/jsx-ast-utils/commit/a0f4f383ddf82cd2914c7e594f356d9a78c80570)
|
---|
| 31 | - [Deps] update `array-includes` [`c479841`](https://github.com/jsx-eslint/jsx-ast-utils/commit/c479841d0b65188a3223541e885fa6286756a2c6)
|
---|
| 32 | - [Deps] update `object.assign` [`9685dce`](https://github.com/jsx-eslint/jsx-ast-utils/commit/9685dce823d71ac06fccd61d8aa8e13ba3d42f38)
|
---|
| 33 |
|
---|
| 34 | <!-- auto-changelog-above -->
|
---|
| 35 |
|
---|
| 36 | 3.3.3 / 2022-08-08
|
---|
| 37 | ==================
|
---|
| 38 | - [Fix] Mark ChainExpression as a noop (#109)
|
---|
| 39 | - [Deps] update `object.assign`
|
---|
| 40 | - [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `eslint`
|
---|
| 41 |
|
---|
| 42 | 3.3.2 / 2022-07-06
|
---|
| 43 | ==================
|
---|
| 44 | - [Fix] Handle `as` casts in TSNonNullExpression
|
---|
| 45 |
|
---|
| 46 | 3.3.1 / 2022-06-22
|
---|
| 47 | ==================
|
---|
| 48 | - [Fix] `ArrayExpression`: handle sparse array (#117)
|
---|
| 49 | - [Deps] update `array-includes`
|
---|
| 50 | - [meta] move jest config to separate file
|
---|
| 51 | - [meta] use `npmignore` to autogenerate an npmignore file
|
---|
| 52 | - [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `eslint`
|
---|
| 53 |
|
---|
| 54 | 3.3.0 / 2022-04-30
|
---|
| 55 | ==================
|
---|
| 56 | - [New] add `JSXFragment`, `JSXText`; fix `JSXElement` to handle children
|
---|
| 57 | - [Dev Deps] update `@babel/core`, `@babel/parser`, `eslint`, `eslint-plugin-import`
|
---|
| 58 |
|
---|
| 59 | 3.2.2 / 2022-03-31
|
---|
| 60 | ==================
|
---|
| 61 | - [Fix] `TSNonNullExpression`: handle computed MemberExpressions (#109)
|
---|
| 62 | - [Fix] avoid a crash in ChainExpressions in a TSAsExpression
|
---|
| 63 |
|
---|
| 64 | 3.2.1 / 2021-09-16
|
---|
| 65 | ==================
|
---|
| 66 | - [patch] include project name in error logging (#113)
|
---|
| 67 | - [readme] update badges, URLs
|
---|
| 68 | - [Deps] update `array-includes`
|
---|
| 69 | - [meta] don‘t lint coverage results
|
---|
| 70 | - [meta] add GitHub org to FUNDING.yml
|
---|
| 71 | - [meta] add OpenCollective to FUNDING.yml
|
---|
| 72 | - [meta] run `aud` in `posttest`
|
---|
| 73 | - [meta] add Automatic Rebase and Require Allow Edits workflows
|
---|
| 74 | - [actions] use `node/install` instead of `node/run`; use `codecov` action
|
---|
| 75 | - [Tests] unpin `caniuse-lite`, since breaking change is fixed
|
---|
| 76 | - [Tests] pin `caniuse-lite`, due to breaking change in patch version
|
---|
| 77 | - [Tests] fix linting errors
|
---|
| 78 | - [Tests] migrate tests to Github Actions
|
---|
| 79 | - [Tests] stop using coveralls
|
---|
| 80 | - [Tests] skip failing fragment test in node 4
|
---|
| 81 | - [Dev Deps] update `@babel/core`, `@babel/parser`, `aud`, `eslint`, `eslint-plugin-import`, `object.entries`, `object.fromentries`
|
---|
| 82 |
|
---|
| 83 | 3.2.0 / 2020-12-16
|
---|
| 84 | ==================
|
---|
| 85 | - [New] add support for fragment syntax (`<>`) (#108)
|
---|
| 86 | - [Fix] `TSNonNullExpression`: handle `ThisExpression`s (#108)
|
---|
| 87 | - [Deps] update `array-includes`, `object.assign`
|
---|
| 88 | - [Dev Deps] update `@babel/core`, `@babel/parser`, `eslint`, `eslint-config-airbnb-base`, `object.entries`, `object.fromentries`
|
---|
| 89 |
|
---|
| 90 | 3.1.0 / 2020-10-13
|
---|
| 91 | ==================
|
---|
| 92 | - [New] add `TSNonNullExpression` (#105)
|
---|
| 93 | - [New] add `AssignmentExpression` (#106)
|
---|
| 94 | - [Dev Deps] update `eslint`
|
---|
| 95 |
|
---|
| 96 | 3.0.0 / 2020-10-06
|
---|
| 97 | ==================
|
---|
| 98 | - [Breaking] Don't return node.start & node.end (#100)
|
---|
| 99 | - [Breaking] add `ChainExpression`; `CallExpression` now includes arguments (#102)
|
---|
| 100 | - [New] add `SequenceExpression` (#101)
|
---|
| 101 | - [Deps] update `object.assign`
|
---|
| 102 | - [Dev Deps] update `eslint`, `eslint-plugin-import`
|
---|
| 103 | - [Dev Deps] update `@babel/core`, `@babel/parser`, `eslint`, `eslint-plugin-import`
|
---|
| 104 | - [Tests] use proper `actual, expected` ordering for non-confusing failure messages
|
---|
| 105 |
|
---|
| 106 | 2.4.1 / 2020-06-11
|
---|
| 107 | ==================
|
---|
| 108 | - [Fix] `expressions/TemplateLiteral`: use `.range[0]` instead of `.start`
|
---|
| 109 |
|
---|
| 110 | 2.4.0 / 2020-06-11
|
---|
| 111 | ==================
|
---|
| 112 | - [New] Provide both range and start & end property on Node, support eslint v7 (#97)
|
---|
| 113 | - [Dev Deps] update `@babel/core`, `@babel/parser`, `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `flow-parser`
|
---|
| 114 | - [meta] remove yarn registry from npmrc, so `npm publish` works
|
---|
| 115 |
|
---|
| 116 | 2.3.0 / 2020-05-24
|
---|
| 117 | ==================
|
---|
| 118 | - [New] add nullish coalescing (#99)
|
---|
| 119 | - [New] add OptionalCallExpression (#99)
|
---|
| 120 | - [Deps] update `array-includes`
|
---|
| 121 | - [meta] add `safe-publish-latest`
|
---|
| 122 | - [Dev Deps] update `@babel/parser`, `babel-eslint`, `coveralls`, `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `in-publish`, `object.entries`, `object.fromentries`, `rimraf`
|
---|
| 123 | - [Tests] on `node` `v14`; test all branches
|
---|
| 124 |
|
---|
| 125 | 2.2.3 / 2019-10-24
|
---|
| 126 | ==================
|
---|
| 127 | - (fix) Fix crash on spread (#94)
|
---|
| 128 |
|
---|
| 129 | 2.2.2 / 2019-10-24
|
---|
| 130 | ==================
|
---|
| 131 | - (improvement) Add support for retrieving props from a spread with object expression (#93)
|
---|
| 132 |
|
---|
| 133 | 2.2.1 / 2019-06-30
|
---|
| 134 | ==================
|
---|
| 135 | - (improvement) Account for TypeCastExpression in the utils
|
---|
| 136 |
|
---|
| 137 | 2.2.0 / 2019-06-25
|
---|
| 138 | ==================
|
---|
| 139 | - (fix) Fix getLiteralPropValue for TS-specific node types.
|
---|
| 140 | - (chore) upgrade dependencies.
|
---|
| 141 | - (improvement) Stop throwing errors when unknown AST nodes are encountered.
|
---|
| 142 | - (dev) CI changes.
|
---|
| 143 |
|
---|
| 144 | 2.1.0 / 2018-04-19
|
---|
| 145 | ==================
|
---|
| 146 | - Fix undefined bug for template strings. #45
|
---|
| 147 | - Adding support for `objectRestSpread` within props #60
|
---|
| 148 | - Accommodate ExperimentalSpreadProperty in prop values #75
|
---|
| 149 | - Account for SpreadElement AST Nodes #76
|
---|
| 150 | - Support OptionalMemberExpression AST nodes #77
|
---|
| 151 | - Add support to Typescript's node types #72
|
---|
| 152 |
|
---|
| 153 | 2.0.1 / 2017-08-31
|
---|
| 154 | ==================
|
---|
| 155 | - [fix] Add support for BindExpression
|
---|
| 156 |
|
---|
| 157 |
|
---|
| 158 | 2.0.0 / 2017-07-07
|
---|
| 159 | ==================
|
---|
| 160 | - [breaking] Remove undefined return from `propName` so it always returns a value.
|
---|
| 161 |
|
---|
| 162 |
|
---|
| 163 | 1.4.1 / 2017-04-19
|
---|
| 164 | ==================
|
---|
| 165 | - [fix] - Fixing fatal throw in `getPropValue` for `ArrowFunctionExpression`
|
---|
| 166 |
|
---|
| 167 |
|
---|
| 168 | 1.4.0 / 2017-02-02
|
---|
| 169 | ==================
|
---|
| 170 | - [new] Add eventHandlers and eventHandlersByType to API. These are the event names for DOM elements on JSX-using libraries such as React, inferno, and preact.
|
---|
| 171 |
|
---|
| 172 |
|
---|
| 173 | 1.3.5 / 2016-12-14
|
---|
| 174 | ==================
|
---|
| 175 | - [fix] Normalize literals "true" and "false" before converting to boolean in Literal prop value extractor.
|
---|
| 176 |
|
---|
| 177 |
|
---|
| 178 | 1.3.4 / 2016-11-15
|
---|
| 179 | ==================
|
---|
| 180 | - [fix] Recursively resolve JSXMemberExpression names for elementType. (i.e. `<Component.Render.Me />`). Fixes [#9](https://github.com/evcohen/jsx-ast-utils/issues/9)
|
---|
| 181 |
|
---|
| 182 |
|
---|
| 183 | 1.3.3 / 2016-10-28
|
---|
| 184 | ==================
|
---|
| 185 | - [fix] Add support for `ArrayExpression`.
|
---|
| 186 |
|
---|
| 187 |
|
---|
| 188 | 1.3.2 / 2016-10-11
|
---|
| 189 | ==================
|
---|
| 190 | - [fix] Add support for `UpdateExpression`.
|
---|
| 191 |
|
---|
| 192 |
|
---|
| 193 | 1.3.1 / 2016-07-13
|
---|
| 194 | ==================
|
---|
| 195 | - [fix] Add `JSXElement` to expression types to handle recursively extracting prop value.
|
---|
| 196 |
|
---|
| 197 |
|
---|
| 198 | 1.3.0 / 2016-07-12
|
---|
| 199 | ==================
|
---|
| 200 | - [new] Add support for `TaggedTemplateExpression`.
|
---|
| 201 |
|
---|
| 202 |
|
---|
| 203 | 1.2.1 / 2016-06-15
|
---|
| 204 | ==================
|
---|
| 205 | - [fix] Point to `lib` instead of `src` for root exports.
|
---|
| 206 |
|
---|
| 207 |
|
---|
| 208 | 1.2.0 / 2016-06-15
|
---|
| 209 | ==================
|
---|
| 210 | - [new] Export functions from root so they can be imported like the following: `require('jsx-ast-utils/{function}')`.
|
---|
| 211 |
|
---|
| 212 |
|
---|
| 213 | 1.1.1 / 2016-06-12
|
---|
| 214 | ==================
|
---|
| 215 | - [fix] Better support for expressions in `TemplateLiteral` extraction.
|
---|
| 216 |
|
---|
| 217 |
|
---|
| 218 | 1.1.0 / 2016-06-10
|
---|
| 219 | ==================
|
---|
| 220 | - [new] Support for namespaced element names.
|
---|
| 221 | - [new] Add `propName` to API to get correct name for prop.
|
---|
| 222 |
|
---|
| 223 |
|
---|
| 224 | 1.0.1 / 2016-06-10
|
---|
| 225 | ==================
|
---|
| 226 | - [fix] Return actual reserved words instead of string representations of them.
|
---|
| 227 |
|
---|
| 228 |
|
---|
| 229 | 1.0.0 / 2016-06-09
|
---|
| 230 | ==================
|
---|
| 231 | - Initial stable release
|
---|