🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

dockerfile-language-service

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerfile-language-service - npm Package Versions

134

0.8.0

Diff
rcjsuen
published 0.8.0 •

Changelog

Source

[0.8.0] - 2022-01-22

Added

  • variable semantic tokens are now split up into multiple tokens, offering a finer-grained view of what each part of it is for which should improve readability (#100)

Fixed

rcjsuen
published 0.7.4 •

Changelog

Source

[0.7.4] - 2021-12-11

Fixed

  • fix TypeError thrown when computing completion items for a COPY instruction with flags (#97)
  • fix TypeError thrown when computing completion items for an ADD instruction with flags (#98)
  • fix infinite loop in ADD and COPY instructions when calculating WORKDIR suggestions for a build stage that shares its name with the image (#99)
  • ignore heredoc content when formatting (rcjsuen/dockerfile-utils#105)
rcjsuen
published 0.7.3 •

Changelog

Source

[0.7.3] - 2021-10-20

Fixed

  • prevent infinite loop when calculating semantic tokens if an escape character is not followed by any actual content (#95)
  • prevent infinite loop when calculating semantic tokens if an escape character is embedded within a variable (#96)
rcjsuen
published 0.7.2 •

Changelog

Source

[0.7.2] - 2021-09-21

Fixed

  • prevent infinite loop when calculating semantic tokens for an instruction with a keyword that spans multiple lines (#94)
  • prevent merging of instructions if it contains an escape character and spans multiple lines (rcjsuen/dockerfile-utils#103)
  • ignore comments embedded in an instruction's keyword (rcjsuen/dockerfile-utils#104)
rcjsuen
published 0.7.1 •

Changelog

Source

[0.7.1] - 2021-09-19

Fixed

  • correct replacement text range calculation in completion items (#93)
rcjsuen
published 0.7.0 •

Changelog

Source

[0.7.0] - 2021-09-19

Added

Fixed

  • consider escaped words when calculating prefixes for code completion (#60)
rcjsuen
published 0.6.0 •

Changelog

Source

[0.6.0] - 2021-09-11

Changed

Fixed

  • prevent infinite loop when computing semantic tokens for a keyword with an escape character (#91)
  • fix incorrect merging of error ranges if escape character embedded in the keyword (rcjsuen/dockerfile-utils#99)
  • fix undefined hover return value to be null instead to match the stated API (#92)
rcjsuen
published 0.5.0 •

Changelog

Source

[0.5.0] - 2021-09-01

Added

  • process heredoc syntax correctly when deciding what completion items to return for ADD and COPY (#90)
  • support heredoc syntax in ADD and COPY instructions when linting the Dockerfile (rcjsuen/dockerfile-utils#98)
  • flag duplicated escape parser directive declarations as being unnecessary (rcjsuen/dockerfile-utils#82)
  • flag duplicated CMD, ENTRYPOINT, and HEALTHCHECK instructions as being unnecessary diagnostics (rcjsuen/dockerfile-utils#82)
rcjsuen
published 0.4.0 •

Changelog

Source

[0.4.0] - 2021-08-08

Added

  • process heredoc syntax correctly when deciding what completion items to return (#87)
  • add heredoc syntax when validating RUN instructions (rcjsuen/dockerfile-utils#97)

Fixed

  • fix semantic highlighting issue seen in arguments spanning multiple lines that are contiguous with no whitespace (#84)
  • remove special handling of backslash characters in strings for semantic tokens (#88)
rcjsuen
published 0.3.0 •

Changelog

Source

[0.3.0] - 2021-04-11

Added

  • suggest working directories if editing the last argument of ADD and COPY instructions that aren't written in JSON (#77)
  • allow multiple arguments to be defined for ARG instructions to support Docker Engine 20.10 (rcjsuen/dockerfile-utils#92)
  • optimized range formatting so that it does not return unnecessary edits (#81)
  • optimized on type formatting so that it does not return unnecessary edits (#82)
  • a new FormatterSettings interface for defining ignoreMultilineInstructions to ignore instructions that span multiple lines (#83)
export interface FormatterSettings extends FormattingOptions {

    /**
     * Flag to indicate that instructions that span multiple lines
     * should be ignored.
     */
    ignoreMultilineInstructions?: boolean;
}

Changed

  • altered the following functions (their original signatures are below) to accept FormatterSettings instead of FormattingOptions, this is a non-breaking change as FormatterSettings extends FormattingOptions (#83)
    • format(string, FormattingOptions)
    • formatRange(string, Range, FormattingOptions)
    • formatOnType(string, Position, string, FormattingOptions)

Fixed

  • do not validate variable substitutions if found in CMD and ENTRYPOINT (rcjsuen/dockerfile-utils#89)
  • fix infinite loop issue when calculating semantic tokens for ARG or ENV instructions with nested comments (#74)
  • do not flag ? as an invalid modifier in variable substitutions (rcjsuen/dockerfile-utils#91)
  • prevent false positive by improving the parsing of an escape character and newline that immediately follows a label definition (rcjsuen/dockerfile-utils#95)