PackageTrack

npm · #4525

@astrojs/compiler

4.0.0withastro/compiler

Astro’s [Go](https://golang.org/) + WASM compiler.

Release timeline

373 releases since 2021
20222023202420252026

Releases

  1. 1.6.0-pre.729 Jun 2023pre-release

    Nothing published for this version

  2. 1.6.0-pre.629 Jun 2023pre-release

    Nothing published for this version

  3. 1.6.0-pre.528 Jun 2023pre-release

    Nothing published for this version

  4. 1.6.0-pre.428 Jun 2023pre-release

    Nothing published for this version

  5. 1.6.0-pre.327 Jun 2023pre-release

    Nothing published for this version

  6. 1.6.0-pre.227 Jun 2023pre-release

    Nothing published for this version

  7. 1.6.0-pre.127 Jun 2023pre-release

    Nothing published for this version

  8. 1.6.0-pre.027 Jun 2023pre-release

    Nothing published for this version

  9. 1.5.713 Jul 2023
    Release notes

    Patch Changes

    • 34fcf01: [TSX] escape additional invalid characters
    • 5fe952d: [TSX] fix sourcemaps for quoted attributes that span multiple lines
    Open source →
  10. 1.5.610 Jul 2023
    Release notes

    Patch Changes

    • 3d69f4e: [TSX] maintain trailing whitespace before an element is closed, fixing TypeScript completion in some cases
    Open source →
  11. 1.5.57 Jul 2023
    Release notes

    Patch Changes

    • 101c18e: [AST] Include end position for frontmatter node when it is the only item in the file
    • 35ccd5e: [AST] add raw attribute values to AST
    • 325d3c3: [TSX] fix compiler crash when file only contains an unamed fragment
    Open source →
  12. 1.5.45 Jul 2023
    Release notes

    Patch Changes

    • a35468a: Do not remove surrounding whitespace from text surrounded by newlines when compressHTML is enabled
    • 4aba173: Fix props detection when importing Props from another file (see #814)
    Open source →
  13. 1.5.330 Jun 2023
    Release notes

    Patch Changes

    • 5a2ce3e: Update compiler output for style objects when used with define:vars
    Open source →
  14. 1.5.226 Jun 2023
    Release notes

    Patch Changes

    • 73a98c2: Fix compressHTML edge case when both leading and trailing whitespace is present
    Open source →
  15. 1.5.18 Jun 2023
    Release notes

    Patch Changes

    • a51227d: Move declare const for Props type at the bottom of the file to make mapping easier downstream
    Open source →
  16. 1.5.01 Jun 2023
    Release notes

    Minor Changes

    • 4255b03: Export package as dual CJS / ESM

    Patch Changes

    • ae67f1b: Apply define:vars to non-root elements
    Open source →
  17. 1.4.217 May 2023
    Release notes

    Patch Changes

    • e104c1c: Polyfill the entire crypto object if node >= v16.17.0
    • 6f7b2f6: Fix crash when transforming files with Windows line endings
    Open source →
  18. 1.4.13 May 2023
    Release notes

    Patch Changes

    • 0803e86: Handle crashes when using parse and convertToTSX by restarting the service
    Open source →
  19. 1.4.01 May 2023
    Release notes

    Minor Changes

    • fc0f470: Implements the scopedStyleStrategy option
    Open source →
  20. 1.3.225 Apr 2023
    Release notes

    Patch Changes

    • 19c0176: Fix TSX sourcemapping for components using Windows-style line returns
    • b0e0cfd: Add a sync entrypoint
    Open source →
  21. 1.3.17 Apr 2023
    Release notes

    Patch Changes

    • e0baa85: Preserve whitespace in slots
    Open source →
  22. 1.3.023 Mar 2023
    Release notes

    Minor Changes

    • 95a6610: Expose the convertToTSX function in the compiler browser bundle
    • 6d168dd: Add ContainsHead flag for metadata
    Open source →
  23. 1.2.220 Mar 2023
    Release notes

    Patch Changes

    • a8a845f: Fix regression related to self-closing tags
    Open source →
  24. 1.2.114 Mar 2023
    Release notes

    Patch Changes

    • 348840b: Fix getStaticPaths export when used with a TypeScript type (#4929)
    • 8ed067e: Fix parse error for multiline export type using Unions or Intersections
    • 6354e50: Improve handling of self-closing tags returned from expression
    • 5a5f91d: Fix define:vars when used with a style attribute
    • b637e9a: Fix ignored form elements after a form element that contains an expression
    • 2658ed4: Correctly apply style when class and class:list are both used
    Open source →
  25. 1.2.01 Mar 2023
    Release notes

    Minor Changes

    • b2cfd00: Add teardown API to remove WASM instance after using the compiler
    Open source →
  26. 1.1.222 Feb 2023
    Release notes

    Patch Changes

    • 2de6128: Preserve namespaced attributes when using expressions
    • af13f2d: Fix incorrect convertToTSX types. The function accepts filename, not sourcefile.
    • 5eb4fff: Compile set:html and set:text quoted and template literal attributes as strings
    Open source →
  27. 1.1.114 Feb 2023
    Release notes

    Patch Changes

    • 6765f01: Fix attributes starting with : not being properly transformed in the TSX output
    Open source →
  28. 1.1.06 Feb 2023
    Release notes

    Minor Changes

    • a75824d: Allow passing through result to slot call
    Open source →
  29. 1.0.26 Feb 2023
    Release notes

    Patch Changes

    • 0c27f3f: Collapse multiple trailing text nodes if present
    Open source →
  30. 1.0.119 Jan 2023
    Release notes

    Patch Changes

    • 94b2c02: Prevent insertion of maybeRenderHead on hoisted scripts
    Open source →
  31. 1.0.018 Jan 2023
    Release notes

    Major Changes

    • 8e86bc6: The Astro compiler is officially stable! This release is entirely ceremonial, the code is the same as @astrojs/[email protected]
    Open source →
  32. 0.33.017 Jan 2023
    Release notes

    Minor Changes

    • 1adac72: Improve error recovery when using the transform function. The compiler will now properly reject the promise with a useful message and stacktrace rather than print internal errors to stdout.

    Patch Changes

    • 68d3c0c: Fix edge case where export type could hang the compiler
    • ec1ddf0: Handle edge case with TypeScript generics handling and our TSX output
    • 23d1fc0: Ignore trailing whitespace in components
    Open source →
  33. 0.32.011 Jan 2023
    Release notes

    Minor Changes

    • 2404848: Remove pathname option in favour of sourcefile option
    • 2ca86f6: Remove site and projectRoot options in favour of the astroGlobalArgs option
    • edd3e0e: Merge sourcefile and moduleId options as a single filename option. Add a new normalizedFilename option to generate stable hashes instead.
    • 08843bd: Remove experimentalStaticExtraction option. It is now the default.
    Open source →
  34. 0.31.44 Jan 2023
    Release notes

    Patch Changes

    • 960b853: Rename SerializeOtions interface to SerializeOptions
    • fcab891: Fixes export hoisting edge case
    • 47de01a: Handle module IDs containing quotes
    Open source →
  35. 0.31.320 Dec 2022
    Release notes

    Patch Changes

    Open source →
  36. 0.31.220 Dec 2022
    Release notes

    Patch Changes

    • 89c0cee: fix: corner case that component in head expression will case body tag missing
    • 20497f4: Improve fidelity of sourcemaps for frontmatter
    Open source →
  37. 0.31.116 Dec 2022
    Release notes

    Patch Changes

    • 24dcf7e: Allow script and style before HTML
    • ef391fa: fix: corner case with slot expression in head will cause body tag missing
    Open source →
  38. 0.31.07 Dec 2022
    Release notes

    Minor Changes

    • abdddeb: Update Go to 1.19
    Open source →
  39. 0.30.17 Dec 2022
    Release notes

    Patch Changes

    • ff9e7ba: Fix edge case where < was not handled properly inside of expressions
    • f31d535: Fix edge case with Prop detection for TSX output
    Open source →
  40. 0.30.05 Dec 2022
    Release notes

    Minor Changes

    • 963aaab: Provide the moduleId of the astro component
    Open source →
  41. 0.29.195 Dec 2022
    Release notes

    Patch Changes

    • 3365233: Replace internal tokenizer state logs with proper warnings
    Open source →
  42. 0.29.182 Dec 2022
    Release notes

    Patch Changes

    • 80de395: fix: avoid nil pointer dereference in table parsing
    • aa3ad9d: Fix parse output to properly account for the location of self-closing tags
    • b89dec4: Internally, replace astro.ParseFragment in favor of astro.ParseFragmentWithOptions. We now check whether an error handler is passed when calling astro.ParseFragmentWithOptions
    Open source →
  43. 0.29.1716 Nov 2022
    Release notes

    Patch Changes

    • 1e7e098: Add warning for invalid spread attributes
    • 3cc6f55: Fix handling of unterminated template literal attributes
    • 48c5677: Update default internalURL to astro/runtime/server/index.js
    • 2893f33: Fix a number of table and expression related bugs
    Open source →
  44. 0.29.1615 Nov 2022
    Release notes

    Patch Changes

    • ec745f4: Self-closing tags will now retreive "end" positional data
    • a6c2822: Fix a few TSX output errors
    Open source →
  45. 0.29.1514 Nov 2022
    Release notes

    Patch Changes

    • 5f6e69b: Fix expression literal handling
    Open source →
  46. 0.29.1414 Nov 2022
    Release notes

    Patch Changes

    Open source →
  47. 0.29.1311 Nov 2022
    Release notes

    Patch Changes

    • 8f3e488: Fix regression introduced to parse handling in the last patch
    Open source →
  48. 0.29.1211 Nov 2022
    Release notes

    Patch Changes

    • a41982a: Fix expression edge cases, improve literal parsing
    Open source →
  49. 0.29.118 Nov 2022
    Release notes

    Patch Changes

    • ee907f1: Fix #5308, duplicate style bug when using define:vars
    Open source →
  50. 0.29.107 Nov 2022
    Release notes

    Patch Changes

    • 07a65df: Print \r when printing TSX output
    • 1250d0b: Add warning when define:vars won't work because of compilation limitations
    Open source →
  51. 0.29.91 Nov 2022
    Release notes

    Patch Changes

    • 1fe92c0: Fix TSX sourcemaps on Windows (take 4)
    Open source →
  52. 0.29.81 Nov 2022
    Release notes

    Patch Changes

    • 01b62ea: Fix sourcemap bug on Windows (again x2)
    Open source →
  53. 0.29.731 Oct 2022
    Release notes

    Patch Changes

    • 108c6c9: Fix TSX sourcemap bug on Windows (again)
    Open source →
  54. 0.29.631 Oct 2022
    Release notes

    Patch Changes

    • 4b3fafa: Fix TSX sourcemaps on Windows
    Open source →
  55. 0.29.528 Oct 2022
    Release notes

    Patch Changes

    • 73a2b69: Use an IIFE for define:vars scripts
    Open source →
  56. 0.29.427 Oct 2022
    Release notes

    Patch Changes

    • 4381efa: Return proper diagnostic code for warnings
    Open source →
  57. 0.29.325 Oct 2022
    Release notes

    Patch Changes

    • 85e1d31: AST: move start position of elements to the first index of their opening tag
    Open source →
  58. 0.29.225 Oct 2022
    Release notes

    Patch Changes

    • 035829b: AST: move end position of elements to the last index of their end tag
    Open source →
  59. 0.29.124 Oct 2022
    Release notes

    Patch Changes

    • a99c014: Ensure comment and text nodes have end positions when generating an AST from parse
    Open source →
  60. 0.29.024 Oct 2022
    Release notes

    Minor Changes

    • fd2fc28: Fix some utf8 compatability issues

    Patch Changes

    • 4b68670: TSX: fix edge case with spread attribute printing
    • 6b204bd: Fix bug with trailing style tags being moved into the html element
    • 66fe230: Fix: include element end location in parse AST
    Open source →