Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mvdan-sh

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvdan-sh - npm Package Versions

2

0.10.1

Diff

mvdan
published 0.10.0 •

mvdan
published 0.5.0 •

Changelog

Source

[0.5.0] - 2016-11-24

  • cmd/shfmt
    • Remove -cpuprofile
    • Don't read entire files into memory to check for a shebang
  • syntax
    • Use uint32 for tokens and positions in nodes
    • Use Word and Lit pointers consistently instead of values
    • Ensure Word.Parts is never empty
    • Add support for expressions in array indexing and parameter expansion slicing
mvdan
published 0.4.0 •

Changelog

Source

[0.4.0] - 2016-11-08

  • Merge parser, ast, token and printer into a single package syntax
  • Use separate operator types in nodes rather than Token
  • Use operator value names that express their function
  • Keep ; if on a separate line when formatting
  • cmd/shfmt
    • Allow whitespace after #! in a shebang
  • syntax
    • Implement operator precedence for [[ ]]
    • Parse $(foo) and foo as the same (shfmt then converts the latter to the former)
    • Rename Quoted to DblQuoted for clarity
    • Split ((foo)) nodes as their own type, ArithmCmd
    • Add support for bash parameter expansion slicing
mvdan
published 0.3.3 •

mvdan
published 0.3.2 •

mvdan
published 0.3.1 •

mvdan
published 0.3.0 •

Changelog

Source

[0.3.0] - 2016-10-26

  • Add support for bash's coproc and extended globbing like @(foo)
  • Improve test coverage, adding tests to cmd/shfmt and bringing parser and printer close to 100%
  • Support empty C-style for loops like for ((;;)) ...
  • Support for the >| redirect operand
  • cmd/shfmt
    • Fix issue where .sh and .bash files might not be walked if running on a directory
    • Fix issue where -p was not obeyed when formatting stdin
  • parser
    • $'' now generates an ast.SglQuoted, not an ast.Quoted
    • Support for ambiguous (( like with $((
    • Improve special parameter expansions like $@ or $!
    • Improve bash's export typeset, nameref and readonly
    • <>, >& and <& are valid POSIX
    • Support for bash's ^, ^^, , and ,, operands inside ${}
mvdan
published 0.2.0 •

Changelog

Source

[0.2.0] - 2016-10-13

  • Optimizations all around, making shfmt ~15% faster
  • cmd/shfmt
    • Add -p flag to only accept POSIX Shell programs (parser.PosixConformant)
  • parser
    • Add support for ambiguous $(( as in $((foo) | bar)
    • Limit more bash features to PosixConformant being false
    • Don't parse heredoc bodies in nested expansions and contexts
    • Run tests through bash to confirm the presence of a parse error
  • ast
    • Add Walk(Visitor, Node) function
mvdan
published 0.1.0 •

Changelog

Source

[0.1.0] - 2016-09-20

Initial release.

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc