Skip to content

Commit a045800

Browse files
authored
Merge branch 'main' into update_example_codemods
2 parents f0c3be5 + 2a97ca5 commit a045800

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+6212
-3409
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: test
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
branches: [main]
7+
push:
8+
branches: [main]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [12.x, 14.x, 16.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install dependencies
25+
run: yarn --frozen-lockfile
26+
- name: Run test
27+
run: yarn test

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.11.2
1+
12.22.11

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/docs/
12
/sample/
3+
/recipes/
24
.gitignore
35
.eslintrc
46
.eslintrc.yaml

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,40 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.13.1] 2022-01-10
8+
9+
### Changed
10+
11+
- Switched from `colors` to `chalk` to mitigate a security vulnerability in `[email protected]`.
12+
13+
## [0.13.0] 2021-06-26
14+
15+
### Added
16+
17+
- Added a `--fail-on-error` flag to return a `1` error code when errors were found (#416, @marcodejongh)
18+
- Created `template.asyncExpression` (#405, @jedwards1211)
19+
20+
### Changed
21+
22+
- Removed lodash dependency from tsx parser (#432, @JHilker and @robyoder)
23+
24+
## [0.12.0] 2021-04-21
25+
### Changed
26+
- Allow transform to be a Promise (#237, @rektide)
27+
- Support newer TypeScript syntax by upgrading to newer Babel parser (#410, @wdoug and @mfeckie)
28+
29+
## [0.11.0] 2020-09-01
30+
### Changed
31+
- Updated `recast` to latest
32+
33+
## [0.10.0] 2020-06-01
34+
### Changed
35+
- Updated `flow-parser` to latest, and enabled Flow Enums parsing by default when using Flow parser
36+
37+
## [0.8.0] 2020-05-03
38+
### Changed
39+
- Dropped support for Node versions 6 and 8
40+
741
## [0.7.0] 2019-12-11
842
## Added
943
- Added jest snapshot utils (#297, @dogoku)
@@ -23,45 +57,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2357

2458
## [0.6.3] 2019-01-18
2559
### Fixed
26-
- Don't throw an error when jscodeshift processes an empty set of files (#295,
60+
- Don't throw an error when jscodeshift processes an empty set of files (#295,
2761
@skovhus).
2862
- `renameTo` should not rename class properties (#296, @henryqdineen).
29-
- Custom/unknown CLI parameters are parsed as JSON, just like nomnom used to
63+
- Custom/unknown CLI parameters are parsed as JSON, just like nomnom used to
3064
do.
3165

3266

3367
## [0.6.2] 2018-12-05
3468
### Changed
35-
- `@babel/register`/`@babel/preset-env` is configured to not transpile any
36-
language features that the running Node process supports. That means if you use
37-
features in your transform code supported by the Node version you are running,
69+
- `@babel/register`/`@babel/preset-env` is configured to not transpile any
70+
language features that the running Node process supports. That means if you use
71+
features in your transform code supported by the Node version you are running,
3872
they will be left as is. Most of ES2015 is actually supported since Node v6.
39-
- Do not transpile object rest/spread in transform code if supported by running
73+
- Do not transpile object rest/spread in transform code if supported by running
4074
Node version.
4175

4276
### Fixed
43-
- Presets and plugins passed to `@babel/register` are now properly named and
77+
- Presets and plugins passed to `@babel/register` are now properly named and
4478
loaded.
4579

4680

4781
## [0.6.1] 2018-12-04
4882
### Added
49-
- Tranform files can be written in Typescript. If the file extension of the
50-
transform file is `.ts` or `.tsx`, `@babel/preset-typescript` is used to
51-
convert them. This requires the `--babel` option to be set (which it is by
83+
- Tranform files can be written in Typescript. If the file extension of the
84+
transform file is `.ts` or `.tsx`, `@babel/preset-typescript` is used to
85+
convert them. This requires the `--babel` option to be set (which it is by
5286
default). ( #287 , @brieb )
5387

5488
### Changed
55-
- The preset and plugins for converting the transform file itself via babeljs
56-
have been updated to work with babel v7. This included removing
57-
`babel-preset-es2015` and `babel-preset-stage-1` in favor of
58-
`@babel/preset-env`. Only `@babel/proposal-class-properties` and
59-
`@babel/proposal-object-rest-spread` are enabled as experimental features. If
89+
- The preset and plugins for converting the transform file itself via babeljs
90+
have been updated to work with babel v7. This included removing
91+
`babel-preset-es2015` and `babel-preset-stage-1` in favor of
92+
`@babel/preset-env`. Only `@babel/proposal-class-properties` and
93+
`@babel/proposal-object-rest-spread` are enabled as experimental features. If
6094
you want to use other's in your transform file, please create a PR.
6195

6296
### Fixed
6397
- Typescript parses use `@babel/parser` instead of Babylon ( #291, @elliottsj )
6498

6599
### Bumped
66-
- `micromatch` => v3.1.10, which doesn't (indirectly) depend on `randomatic` <
100+
- `micromatch` => v3.1.10, which doesn't (indirectly) depend on `randomatic` <
67101
v3 anymore (see #292).

0 commit comments

Comments
 (0)