pug@3.0.4
Bug Fixes
- Update
pug-code-gento ensuredoctypeoption is properly validated (#3468)
pug-code-gen@3.0.4
Bug Fixes
- Ensure
doctypeoption is properly validated (#3468)
pug@3.0.3
Bug Fixes
-
Update pug-code-gen with the following fix: (#3438)
Validate
templateNameandglobalsare valid JavaScript identifiers to prevent possible remote code execution if un-trusted user input is passed to the compilation options
pug-error@2.1.0
Refactors
- Convert to TypeScript (#3355)
pug-code-gen@3.0.3
Bug Fixes
- Validate
templateNameandglobalsare valid JavaScript identifiers to prevent possible remote code execution if un-trusted user input is passed to the compilation options (#3438)
pug@3.0.2
Bug Fixes
- Serialize Buffers to strings when storing sources for use with compileDebug: true (#3269)
pug@3.0.1
pug-runtime@3.0.1
Bug Fixes
- Properly handle non-string values when rethrowing errors (#3269)
pug-lexer@5.0.1
Bug Fixes
-
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 \!{ symbolsPreviously 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>