New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 1.19 checklist #6469
Comments
I think will be great update all possible dependencies before do release |
Any updates on 1.19? When will it be released? |
@squidfunk We’ve finally ticked off all blocking items in the 1.19 milestone! |
Thanks @lydell & awesome work - so happy to see that 🎉 |
Is there a way to test this out? I'd be happy to run against a few projects to help test. |
|
This is working well, thanks @lipis. I'll let you know if we have any issues over the coming days. |
@prettier/core If anyone could help with “Run on other projects to check for regressions” that would be amazing! |
I see a couple of questionable changes like the following. This will surely cause complaints. Caused by #6229. Prettier pr-6787 --parser typescript Input: // ------------------------------------------------print-width----------------->
const response = await this.$http.get<FoooooooooService.DetailsData>(
`api/foo.ashx/foo-details/${myId}`,
{ cache: this.httpCache, timeout: canceler }
); Output: // ------------------------------------------------print-width----------------->
const response = await this.$http.get<
FoooooooooService.DetailsData
>(`api/foo.ashx/foo-details/${myId}`, {
cache: this.httpCache,
timeout: canceler
}); EDIT: This has been fixed in #6791 |
@brainkim When running return events;
}),
TE.chain(publishEventsToService(dryRun))
- )().then(E.fold(err => console.error(err), _ => console.log("Went well")));
+ )().then(
+ E.fold(
+ err => console.error(err),
+ _ => console.log("Went well")
+ )
+ );
): E.Either<Error, { Bucket: string; Key: string }> =>
pipe(
- E.tryCatch(() => new URL(urlString), error => error as Error),
+ E.tryCatch(
+ () => new URL(urlString),
+ error => error as Error
+ ),
E.map(url => ({
if (client) {
- client.close(timeoutMs).then(() => process.exit(1), () => process.exit(1));
+ client.close(timeoutMs).then(
+ () => process.exit(1),
+ () => process.exit(1)
+ );
} else { But I also got cases where the output kind of became worse: export const timestampOfFirstCommit = (timelines: Timelines): O.Option<Date> =>
- pipe(
- timelines,
- everyCommitTimestamps,
- A.sort(ordDate),
- A.head
- );
+ pipe(timelines, everyCommitTimestamps, A.sort(ordDate), A.head);
) => (msg: unknown) =>
pipe(
serviceEventFromMessage(msg),
- TE.chain(
- flow(
- publishServiceEvent(analytics),
- TE.mapLeft(nackFromError)
- )
- )
+ TE.chain(flow(publishServiceEvent(analytics), TE.mapLeft(nackFromError)))
)().then(messageResponse(logger, msg));
.catch((err: Error) => {
logger.error(
- pipe(
- O.fromNullable(err.stack),
- O.getOrElse(constant(err.message))
- )
+ pipe(O.fromNullable(err.stack), O.getOrElse(constant(err.message)))
);
process.exit(1);
});
expect(
- pipe(
- Changelog.timestampOfFirstCommit([[commit]]),
- O.toUndefined
- )
+ pipe(Changelog.timestampOfFirstCommit([[commit]]), O.toUndefined)
).toStrictEqual(new Date(0));
});
),
- TE.chain(
- flow(
- getUploadUrl,
- E.mapLeft(Errors.unknownError),
- TE.fromEither
- )
- ),
+ TE.chain(flow(getUploadUrl, E.mapLeft(Errors.unknownError), TE.fromEither)),
TE.map(url => ({ Thoughts? EDIT: It’s difficult, though, because I like this change: - date_of_incident: pipe(
- now,
- subYears(5)
- ),
+ date_of_incident: pipe(now, subYears(5)), |
@lydell This is an expected change but I do agree that some of examples become less readable. However, I don‘t think any of these examples are themselves completely unreadable; rather, I believe it‘s just the fact that you’re reading the code in the context of the diff which makes the code feel sub-optimal. Consider: pipe(timelines, everyCommitTimestamps, A.sort(ordDate), A.head); English: pipe pipe(O.fromNullable(err.stack), O.getOrElse(constant(err.message))) pipe(Changelog.timestampOfFirstCommit([[commit]]), O.toUndefined) Not sure what these do but I don’t think they’re unreadable. TE.chain(flow(publishServiceEvent(analytics), TE.mapLeft(nackFromError))) TE.chain(flow(getUploadUrl, E.mapLeft(Errors.unknownError), TE.fromEither)), These two seem trickier to read, but I think this has more to do with calling I don’t think any of these changes are show-stoppers, but I clearly cannot be impartial here so it’s up to the core team to decide if these diffs cannot be tolerated. I think trying to split these call expressions onto multiple lines (without the hard-coding behavior from before) would require some more thought. Maybe the rule you want is: when call expressions are nested 3+ levels deep, break the top call onto multiple lines for clarity. I don’t think this is a bad idea, insofar as I have trouble immediately scanning deeply-nested call expressions anyways, but this would have broader repercussions for prettier users. |
I ran it on GitHub Desktop’s (OOP-heavy) codebase and the only changes involved the printing of template strings. Prettier is becoming incredibly stable! |
let's do it. |
This comment has been minimized.
This comment has been minimized.
1.18.2 can format code like this: class A {} class A {} but
This looks like a breaking change, so before doing the release, it might make sense to try updating Babel to 7.7.0 and enabling error recovery. |
@thorn0 good catch 👍 |
addressed in #6816 |
cant wait!! GJ!! |
Can't wait for full TS 3.7 support! |
Any status or ETA on when the release could happen? Anything anyone can do to help make the release happen? |
Tomorrow (Friday) |
What time are we expecting this to be released? |
it's still Friday in some places :) |
I tried to make the release today, but couldn’t get the release script to work. Will have to try again tomorrow. 😢 |
prettier@1.19.0 is out now!! thanks!! |
Yeah, I finally managed to find a workaround… 😅 |
2019-11-03-1.19.0.md
inwebsite/blog
@PrettierCode
account via TweetDeckscripts/generate-schema.js
to SchemaStore if we added a new option.Then monitor Twitter/GitHub for any immediate issues 😄
The text was updated successfully, but these errors were encountered: