NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4996 most downloaded on npm
The pug lexer (takes a string and converts it to an array of tokens)
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.3 years
Rarely documented
notes for 2 of 21 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
27 releases · first in 2015
Variables starting with keywords cause the regex to "drift" on capture groups, causing errors
Variables starting with keywords cause the regex to "drift" on capture groups, causing errors (#3274)
Lexer plugins are not dropped inside tag interpolation (#3296)
You can use tag interpolation to embed tags in long strings, e.g.
p.
This is a #[strong long] string of text.
Previously, lexer plugins would not work within the #[...] interpolation.
Handle escaped unsafe interpolation correctly (#3299)
If you want to put the literal text #{ in your html, it needs to be escaped to indicate that it should not be treated as interpolation. The same is true of !{ You can escape them by prefixing them with \, e.g.
p These are some \#{ weird \!{ symbols
Previously this would have incorrectly converted both escaped sequences to #{, resulting in the html:
<p>These are some #{ weird #{ symbols</p>
Now this correctly generates:
<p>These are some #{ weird !{ symbols</p>
Nothing published for this version
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
The pug lexer can now output a new token type: eachOf
Drop support for node 6 and 8 (#3243)
Support each ... of ... (#3179)
The pug lexer can now output a new token type: eachOf
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →