[ci] release - #258
Merged
Merged
[ci] release#258
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
htmljs-parser@5.18.0
Minor Changes
6f82a36Thanks @DylanPiercey! - Readdeleteas a prefix operator, liketypeofandvoid, so<div a=delete x.y/>is one attribute value and a statement ending indeletecontinues onto the next line.6f82a36Thanks @DylanPiercey! - An empty placeholder (${}) now stops at its error instead of also emitting anonPlaceholderwhose end is past the input.#256
ac8fa1cThanks @DylanPiercey! - Export./package.json, so tools can read which parser version they run on withrequire("htmljs-parser/package.json").#254
0602e70Thanks @DylanPiercey! - Read atype,interfaceordeclarescriptlet as a type, as statements already are, so$ type H = () => voidor$ type A = B<C>no longer swallows the next line;$ type = xstays JavaScript. A statement also finds its type keyword after extra whitespace (static type F = () => void), andisValidScriptletmatches the parser.#255
278f259Thanks @DylanPiercey! - A keyword operator directly after a spread's...is an operator, so<div ...new Attrs()/>is one spread rather than...newplus an attributeAttrs(). A run of non-null assertions (x!!) and one after a string or template literal ("s"!,`s`!) now ends an unenclosed value likex!does.6f82a36Thanks @DylanPiercey! - Treat a trailing TypeScript non-null assertion directly after an operand (x!,f()!,a[0]!) as postfix, so it ends an unenclosed attribute, tag variable or statement value.<div title=x! id="a"/>now reports two attributes rather than one valuex! id="a", and<div title=x!/>no longer fails as an unterminated regular expression.6f82a36Thanks @DylanPiercey! - End a type at a line-finalvoid. A type statement such asexport type H = () => voidcarried on into the next line, and avoidreturn type before{(function foo(): void {) read the body as a type;voidinside a type is now always thevoidtype rather than a prefix operator.6f82a36Thanks @DylanPiercey! -isValidStatementnow reads a statement starting withtype,interfaceordeclareas a type, as the parser does, so a multi-line type argument list isenclosedand a type followed by an unindented line isinvalid.