fix bug with wrapper and stdout @mcalhoun (#27)
what
- Fix an issue with the wrapper helper script that caused an issue with output being garbled
references
Update cloudposse/actions action to v0.33.0 @renovate (#32)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cloudposse/actions | action | minor | 0.31.0 -> 0.33.0 |
Release Notes
cloudposse/actions (cloudposse/actions)
v0.33.0
v0.32.0
: 0.32.0 Update cloned actions
What's Changed
- Use args with status updater instead of env vars, update checkout to v3 by @Nuru in https://github.com/cloudposse/actions/pull/133
- Renamed access token by @zdmytriv in https://github.com/cloudposse/actions/pull/137
- Update cloned GitHub actions by @Nuru in https://github.com/cloudposse/actions/pull/136
- Update cloned actions to current by @Nuru in https://github.com/cloudposse/actions/pull/138
New Contributors
- @zdmytriv made their first contribution in https://github.com/cloudposse/actions/pull/137
Full Changelog: cloudposse/actions@0.31.0...0.32.0
Update typescript-eslint monorepo to v6.18.0 @renovate (#52)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@typescript-eslint/eslint-plugin (source) | 6.17.0 -> 6.18.0 |
||||
@typescript-eslint/parser (source) | 6.17.0 -> 6.18.0 |
Release Notes
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v6.18.0
🚀 Features
-
typescript-estree: throw on invalid update expressions
-
eslint-plugin: [no-var-requires, no-require-imports] allow option
❤️ Thank You
- auvred
- Joshua Chen
You can read about our versioning strategy and releases on our website.
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v6.18.0
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
Update actions/setup-node action to v4 @renovate (#41)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
actions/setup-node | action | major | v3 -> v4 |
Release Notes
Update actions/checkout action to v4 @renovate (#40)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
actions/checkout | action | major | v3 -> v4 |
Release Notes
actions/checkout (actions/checkout)
v4
Update dependency @types/node to v16.18.70 @renovate (#26)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@types/node (source) | 16.18.10 -> 16.18.70 |
implement caching @mcalhoun (#55)
what
- Allow the atmos install to be cached on self-hosted runners
why
- So that installs can be faster on self-hosted runners where the requested version of atmos has already been installed
pin to node 16 @mcalhoun (#54)
what
Pin the action to node 16
why
Currently the tests are using nock
, which intercepts fetch
requests and mocks them in the test enviornment. Node 18+ introduced the fetch API
natively and it broke nock
. There is an issue opened with nock
that they hope to merge in January 2024 (this month at the time of writing). Once that is merged, we will bump to Node 20.
references
Update dependency prettier to v2.8.8 @renovate (#14)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
prettier (source) | 2.8.1 -> 2.8.8 |
Release Notes
prettier/prettier (prettier)
v2.8.8
This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.
v2.8.7
Allow multiple decorators on same getter/setter (#14584 by @fisker)
// Input
class A {
@​decorator()
get foo () {}
@​decorator()
set foo (value) {}
}
// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @​decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }
// Prettier 2.8.7
class A {
@​decorator()
get foo() {}
@​decorator()
set foo(value) {}
}
v2.8.6
Allow decorators on private members and class expressions (#14548 by @fisker)
// Input
class A {
@​decorator()
#privateMethod () {}
}
// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @​decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier 2.8.6
class A {
@​decorator()
#privateMethod() {}
}
v2.8.5
Support TypeScript 5.0 (#14391 by @fisker, #13819 by @fisker, @sosukesuzuki)
TypeScript 5.0 introduces two new syntactic features:
const
modifiers for type parametersexport type *
declarations
Add missing parentheses for decorator (#14393 by @fisker)
// Input
class Person {
@​(myDecoratorArray[0])
greet() {}
}
// Prettier 2.8.4
class Person {
@​myDecoratorArray[0]
greet() {}
}
// Prettier 2.8.5
class Person {
@​(myDecoratorArray[0])
greet() {}
}
Add parentheses for TypeofTypeAnnotation
to improve readability (#14458 by @fisker)
// Input
type A = (typeof node.children)[];
// Prettier 2.8.4
type A = typeof node.children[];
// Prettier 2.8.5
type A = (typeof node.children)[];
Support max_line_length=off
when parsing .editorconfig
(#14516 by @josephfrazier)
If an .editorconfig file is in your project and it sets max_line_length=off
for the file you're formatting,
it will be interpreted as a printWidth
of Infinity
rather than being ignored
(which previously resulted in the default printWidth
of 80 being applied, if not overridden by Prettier-specific configuration).
<!-- Input -->
<div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/>
<!-- Prettier 2.8.4 -->
<div
className="HelloWorld"
title={`You are visitor number ${num}`}
onMouseOver={onMouseOver}
/>;
<!-- Prettier 2.8.5 -->
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />;
v2.8.4
Fix leading comments in mapped types with readonly
(#13427 by @thorn0, @sosukesuzuki)
// Input
type Type = {
// comment
readonly [key in Foo];
};
// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};
// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
Group params in opening block statements (#14067 by @jamescdavis)
This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.
Ignore files in .sl/
(#14206 by @bolinfest)
In Sapling SCM, .sl/
is the folder where it stores its state, analogous to .git/
in Git. It should be ignored in Prettier like the other SCM folders.
Recognize @satisfies
in Closure-style type casts (#14262 by @fisker)
// Input
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
// Prettier 2.8.3
const a = /** @​satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @​type {Record<string, string>} */ ({ hello: 1337 });
// Prettier 2.8.4
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
Fix parens in inferred function return types with extends
(#14279 by @fisker)
// Input
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
// Prettier 2.8.3 (First format)
type Foo<T> = T extends (a) => a is infer R extends string ? R : never;
// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected.
// Prettier 2.8.4
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
v2.8.3
Allow self-closing tags on custom elements (#14170 by @fisker)
See Angular v15.1.0 release note for details.
// Input
<app-test/>
// Prettier 2.8.2
SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
| ^^^^^^^^^
2 |
// Prettier 2.8.3
<app-test />
v2.8.2
Don't lowercase link references (#13155 by @DerekNonGeneric & @fisker)
<!-- Input -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[Keep a Changelog]: https://example.com/
<!-- Prettier 2.8.1 -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].
[keep a changelog]: https://example.com/
<!--
^^^^^^^^^^^^^^^^^^ lowercased
-->
<!-- Prettier 2.8.2 -->
<Same as input>
Preserve self-closing tags (#13691 by @dcyriller)
Allow custom "else if"-like blocks with block params (#13930 by @jamescdavis)
#13507 added support for custom block keywords used with else
, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.
Preserve empty lines between nested SCSS maps (#13931 by @jneander)
/* Input */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.1 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
/* Prettier 2.8.2 */
$map: (
'one': (
'key': 'value',
),
'two': (
'key': 'value',
),
)
Fix missing parentheses when an expression statement starts with let[
(#14000, #14044 by @fisker, @thorn0)
// Input
(let[0] = 2);
// Prettier 2.8.1
let[0] = 2;
// Prettier 2.8.1 (second format)
SyntaxError: Unexpected token (1:5)
> 1 | let[0] = 2;
| ^
2 |
// Prettier 2.8.2
(let)[0] = 2;
Fix semicolon duplicated at the end of LESS file (#14007 by @mvorisek)
// Input
@​variable: {
field: something;
};
// Prettier 2.8.1
@​variable: {
field: something;
}; ;
// Prettier 2.8.2
@​variable: {
field: something;
};
Fix no space after unary minus when followed by opening parenthesis in LESS (#14008 by @mvorisek)
// Input
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.1
.unary_minus_single {
margin: - (@​a);
}
.unary_minus_multi {
margin: 0 - (@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
// Prettier 2.8.2
.unary_minus_single {
margin: -(@​a);
}
.unary_minus_multi {
margin: 0 -(@​a);
}
.binary_minus {
margin: 0 - (@​a);
}
Do not change case of property name if inside a variable declaration in LESS (#14034 by @mvorisek)
// Input
@​var: {
preserveCase: 0;
};
// Prettier 2.8.1
@​var: {
preservecase: 0;
};
// Prettier 2.8.2
@​var: {
preserveCase: 0;
};
Fix formatting for auto-accessors with comments (#14038 by @fisker)
// Input
class A {
@​dec()
// comment
accessor b;
}
// Prettier 2.8.1
class A {
@​dec()
accessor // comment
b;
}
// Prettier 2.8.1 (second format)
class A {
@​dec()
accessor; // comment
b;
}
// Prettier 2.8.2
class A {
@​dec()
// comment
accessor b;
}
Add parentheses for TSTypeQuery to improve readability (#14042 by @onishi-kohei)
// Input
a as (typeof node.children)[number]
a as (typeof node.children)[]
a as ((typeof node.children)[number])[]
// Prettier 2.8.1
a as typeof node.children[number];
a as typeof node.children[];
a as typeof node.children[number][];
// Prettier 2.8.2
a as (typeof node.children)[number];
a as (typeof node.children)[];
a as (typeof node.children)[number][];
Fix displacing of comments in default switch case (#14047 by @thorn0)
It was a regression in Prettier 2.6.0.
// Input
switch (state) {
default:
result = state; // no change
break;
}
// Prettier 2.8.1
switch (state) {
default: // no change
result = state;
break;
}
// Prettier 2.8.2
switch (state) {
default:
result = state; // no change
break;
}
Support type annotations on auto accessors via babel-ts
(#14049 by @sosukesuzuki)
The bug that @babel/parser
cannot parse auto accessors with type annotations has been fixed. So we now support it via babel-ts
parser.
class Foo {
accessor prop: number;
}
Fix formatting of empty type parameters (#14073 by @fisker)
// Input
const foo: bar</* comment */> = () => baz;
// Prettier 2.8.1
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
const foo: bar</* comment */> = () => baz;
Add parentheses to head of ExpressionStatement
instead of the whole statement (#14077 by @fisker)
// Input
({}).toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo));
// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
? foo.forEach(iterateArray)
: iterateObject(foo);
Fix comments after directive (#14081 by @fisker)
// Input
"use strict" /* comment */;
// Prettier 2.8.1 (with other js parsers except `babel`)
Error: Comment "comment" was not printed. Please report this error!
// Prettier 2.8.2
<Same as input>
Fix formatting for comments inside JSX attribute (#14082 by @fisker)
// Input
function MyFunctionComponent() {
<button label=/*old*/"new">button</button>
}
// Prettier 2.8.1
Error: Comment "old" was not printed. Please report this error!
// Prettier 2.8.2
function MyFunctionComponent() {
<button label=/*old*/ "new">button</button>;
}
Quote numeric keys for json-stringify parser (#14083 by @fisker)
// Input
{0: 'value'}
// Prettier 2.8.1
{
0: "value"
}
// Prettier 2.8.2
{
"0": "value"
}
Fix removing commas from function arguments in maps (#14089 by @sosukesuzuki)
/* Input */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
/* Prettier 2.8.1 */
$foo: map-fn(("#{prop}": inner-fn($first $second)));
/* Prettier 2.8.2 */
$foo: map-fn(
(
"#{prop}": inner-fn($first, $second),
)
);
Do not insert space in LESS property access (#14103 by @fisker)
// Input
a {
color: @​colors[@​white];
}
// Prettier 2.8.1
a {
color: @​colors[ @​white];
}
// Prettier 2.8.2
<Same as input>
Update dependency eslint-plugin-jest to v27.6.1 @renovate (#11)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
eslint-plugin-jest | 27.1.7 -> 27.6.1 |
Release Notes
jest-community/eslint-plugin-jest (eslint-plugin-jest)
v27.6.1
Bug Fixes
v27.6.0
Features
v27.5.0
Features
27.4.3 (2023-10-20)
Bug Fixes
27.4.2 (2023-09-29)
Bug Fixes
27.4.1 (2023-09-29)
Bug Fixes
v27.4.3
Bug Fixes
v27.4.2
Bug Fixes
v27.4.1
Bug Fixes
v27.4.0
Features
v27.3.0
Features
27.2.3 (2023-07-13)
Bug Fixes
27.2.2 (2023-06-19)
Bug Fixes
27.2.1 (2023-01-06)
Bug Fixes
v27.2.3
Bug Fixes
v27.2.2
Bug Fixes
v27.2.1
Bug Fixes
v27.2.0
Features
27.1.7 (2022-12-15)
Bug Fixes
27.1.6 (2022-11-24)
Bug Fixes
- ensure rule fixes produce valid code when function params and args have trailing commas (#1282) (8eca0b7)
27.1.5 (2022-11-10)
Performance Improvements
27.1.4 (2022-11-04)
Performance Improvements
27.1.3 (2022-10-18)
Bug Fixes
27.1.2 (2022-10-14)
Bug Fixes
27.1.1 (2022-10-05)
Bug Fixes
Update typescript-eslint monorepo to v5.47.1 @renovate (#9)
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@typescript-eslint/eslint-plugin | 5.47.0 -> 5.48.0 |
||||
@typescript-eslint/parser | 5.47.0 -> 5.48.0 |
fix bug with nock in node 18+ @mcalhoun (#28)
what
Add a workaround for a bug in nock in node 18+
why
Node 18+ introduces the fetch api natively and nock doesn't work with that yet. This is a workaround to successfully run test until the issue below is resolved.
references
🤖 Automatic Updates
Update README.md and docs @cloudpossebot (#24)
what
This is an auto-generated PR that updates the README.md and docs
why
To have most recent changes of README.md and doc from origin templates