marko/packages/compiler/CHANGELOG.md
github-actions[bot] f188e0bfee [ci] release
2023-08-09 13:46:25 -07:00

66 KiB

Change Log

5.33.0

Minor Changes

5.32.0

Minor Changes

  • #2006 b2e70bc45 Thanks @DylanPiercey! - Add compute node helper to replace babels evaluate helper. This helper is less aggressive and doesn't suffer from the false positives that popped up with babels version.

Patch Changes

  • Updated dependencies [b2e70bc45]:
    • @marko/babel-utils@6.3.0

5.31.2

Patch Changes

5.31.1

Patch Changes

5.31.0

Minor Changes

  • #1996 d93037843 Thanks @DylanPiercey! - Move tag validation to the translate phase and expose new utilities for working with macros in @marko/babel-utils. This allows for migration/transformer/etc compiler hooks to better work with 's.

Patch Changes

  • Updated dependencies [d93037843]:
    • @marko/babel-utils@6.2.0

5.30.3

Patch Changes

  • #1992 1bc993012 Thanks @DylanPiercey! - Fix regression which would happen if tools tried to "delete" the loc property on error instances returned from Marko. This property is now configurable and can be deleted again.

5.30.2

Patch Changes

  • #1990 a54a23794 Thanks @DylanPiercey! - Change the stack frame for error messages generated by the compiler to work better with how node prints error messages.

5.30.1

Patch Changes

  • #1987 8bf5cb1f0 Thanks @DylanPiercey! - When duplicate taglib entries are found and merged, nullish values are now ignored. This means if you specify a property in a taglib it will not be unset by another (merged) taglib.

  • #1986 1b29b859f Thanks @DylanPiercey! - Fix issue where module-code entries were not properly checking the expected module output (causing them to always output esm). This was previously fine due to the cjs conversion plugin running for these, however a recent change caused that plugin to no longer run for these files since (which should have been unnecessary, except for that they had the incorrect check).

5.30.0

Minor Changes

Patch Changes

  • Updated dependencies [c6e2d0655]:
    • @marko/babel-utils@6.1.0

5.29.0

Minor Changes

  • #1980 9d3b34eef Thanks @DylanPiercey! - Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError left in the AST at the end of the migration phase will throw an error similar to what it would have previously thrown synchronously.

    This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first parse error. When the compiler is ran with errorRecovery: true these errors become diagnostics instead of being thrown.

Patch Changes

  • Updated dependencies [9d3b34eef]:
    • @marko/babel-utils@6.0.0

5.28.5

Patch Changes

5.28.4

Patch Changes

  • #1976 7555a46a1 Thanks @DylanPiercey! - Fix issue where aggregate errors from the compiler were not exposing error objects (was exposing the raw diagnostics).

  • #1976 7555a46a1 Thanks @DylanPiercey! - Include locations and original message for errors thrown from the compiler.

5.28.3

Patch Changes

5.28.2

Patch Changes

5.28.1

Patch Changes

5.28.0

Minor Changes

Patch Changes

  • Updated dependencies [70922e68e]:
    • @marko/babel-utils@5.22.0

5.27.10

Patch Changes

5.27.9

Patch Changes

5.27.8

Patch Changes

  • #1949 7f6b65a4b Thanks @DylanPiercey! - Use @internal module to host browser/worker remapped files. Improves support for some tools that don't work well with nested package.json files.

5.27.7

Patch Changes

5.27.6

Patch Changes

5.27.5

Patch Changes

5.27.4

Patch Changes

5.27.3

Patch Changes

  • #1921 1fe71a502 Thanks @DylanPiercey! - Avoid using typeof window and prefer typeof document checks for browser environment (improves future deno support).

  • #1921 f0c697d7b Thanks @DylanPiercey! - Avoids using a package.json remap for the browser implementation of the _preserve internal tag (used to implement no-update directives). This fixes an issue where in vite the module could not be loaded properly.

5.27.2

Patch Changes

  • #1920 7d5dab41c Thanks @DylanPiercey! - Avoid adding export {} (from "@babel/plugin-transform-typescript") when outputing a template with the types stripped.

  • #1918 cceab7d20 Thanks @DylanPiercey! - Reduce script parsing restrictions added by Babel. This was causing Babel to error when parsing partial scripts.

    static const x = 1;
    export { x };
    

    Before this change in the above code Babel would error when parsing export { x } saying x was not previously defined. This is because Marko parses these statements in isolation.

  • #1920 7d5dab41c Thanks @DylanPiercey! - Avoid outputing a declare'd type on a class.

5.27.1

Patch Changes

5.27.0

Minor Changes

  • #1909 e8f1370cf Thanks @DylanPiercey! - Allow repeated attribute tags without using a marko.json file. Attribute tag objects now also contain Symbol.iterator implementation to make the single case more easily forwarded to the <for> tag.

Patch Changes

5.26.0

Minor Changes

5.25.0

Minor Changes

5.24.0

Minor Changes

  • #1897 72cdc3e5b Thanks @DylanPiercey! - Expose a top level @marko/compiler/config entry point for loading the default compiler config.

5.23.6

Patch Changes

5.23.5

Patch Changes

5.23.4

Patch Changes

5.23.3

Patch Changes

5.23.2

Patch Changes

  • #1880 c4cce33e8 Thanks @DylanPiercey! - Fix an issue where merging scripts (via the out.script api) was not properly inserting delimeters when scripts are added in different async writers.

5.23.1

Patch Changes

5.23.0

Minor Changes

  • #1865 797e90489 Thanks @DylanPiercey! - Changes the "default" attributes name to be "value". This is technically a breaking change, but it primarily only impacts the tags-api-preview which will also be getting a release to support this change.

5.22.10

Patch Changes

5.22.9

Patch Changes

5.22.8

Patch Changes

5.22.7

Patch Changes

  • #1853 76771598e Thanks @DylanPiercey! - Enable the meta option for the compiler when @marko/compiler/register is used. This makes usage with lasso easier.

5.22.6

Patch Changes

  • #1845 65bab8e6d Thanks @DylanPiercey! - Fix issue where Marko runtime was being incorrectly matched when swapping from dev to prod runtimes.

  • Updated dependencies [65bab8e6d]:

    • @marko/babel-utils@5.21.3

5.22.5

Patch Changes

5.22.4

Patch Changes

5.22.3

Patch Changes

5.22.2

Patch Changes

5.22.1

Patch Changes

5.22.0

Minor Changes

5.21.7

Patch Changes

5.21.6

Patch Changes

5.21.5

Patch Changes

5.21.4

Patch Changes

5.21.3

Patch Changes

5.21.2

Patch Changes

5.21.1

Patch Changes

  • #1792 c9107ea7f Thanks @DylanPiercey! - Fix broken previous release where the "main" field for package.json files was not correctly updated when published

  • Updated dependencies [c9107ea7f]:

    • @marko/babel-utils@5.21.1

5.21.0

Minor Changes

Patch Changes

  • Updated dependencies [dd9009d66]:
    • @marko/babel-utils@5.21.0

5.20.9 (2022-04-27)

Note: Version bump only for package @marko/compiler

5.20.8 (2022-04-26)

Bug Fixes

  • type for BabelFile.markoConfig now reflects defaulted values (cd49696)

5.20.7 (2022-04-26)

Bug Fixes

  • set cache entry before analysis to prevent infinite recursion (d327864)

5.20.6 (2022-04-25)

Note: Version bump only for package @marko/compiler

5.20.5 (2022-04-15)

Bug Fixes

  • translator-default: string literals in dynamic tags incorrectly doing component lookup (28aa2e8)

5.20.4 (2022-04-11)

Bug Fixes

  • autoloading translators (5eda8f3)

5.20.3 (2022-03-24)

Note: Version bump only for package @marko/compiler

5.20.2 (2022-03-23)

Note: Version bump only for package @marko/compiler

5.20.0 (2022-03-11)

Note: Version bump only for package @marko/compiler

5.19.1 (2022-01-28)

Note: Version bump only for package @marko/compiler

5.19.0 (2022-01-28)

Features

5.18.2 (2022-01-25)

Note: Version bump only for package @marko/compiler

5.18.1 (2022-01-25)

Note: Version bump only for package @marko/compiler

5.18.0 (2022-01-24)

Note: Version bump only for package @marko/compiler

5.17.10 (2022-01-14)

Bug Fixes

  • issue with dynamic tag names not tracking references (9d86540)

5.17.6 (2022-01-02)

Note: Version bump only for package @marko/compiler

5.17.4 (2021-11-17)

Bug Fixes

  • hoisted variable scopes clean up (32f382b)

5.17.3 (2021-10-30)

Bug Fixes

  • upgrade babel deps & fix builder regression (91b3c58)

5.16.1 (2021-10-22)

Bug Fixes

  • regression with identical tag name & taglib deduping (a8d85d7)
  • upgrade htmljs-parser (d95a37c)

5.16.0 (2021-10-11)

Features

5.15.11 (2021-09-29)

Bug Fixes

  • normalize file opts similar to babel (86310e6)

5.15.10 (2021-09-07)

Note: Version bump only for package @marko/compiler

5.15.9 (2021-09-05)

Bug Fixes

  • attribute shorthand method source locations (20e3cf4)

5.15.8 (2021-09-05)

Bug Fixes

  • consistent file.opts during parse & other stages (ff07ead)
  • incorrect source position for attribute arguments (0c0ff04)

5.15.7 (2021-09-03)

Note: Version bump only for package @marko/compiler

5.15.6 (2021-09-03)

Bug Fixes

5.15.4 (2021-08-07)

Bug Fixes

  • improve compiler register hook types (ecdafa0)

5.15.3 (2021-08-06)

Note: Version bump only for package @marko/compiler

5.15.2 (2021-08-06)

Bug Fixes

  • issue with hoisted tag var scopes (86162a1)

5.15.0 (2021-07-28)

Features

  • expose @marko/compiler/register api (5726899)

5.14.2 (2021-07-28)

Bug Fixes

  • support method shorthand from updated parser (accb1bf)

5.14.1 (2021-07-26)

Bug Fixes

  • compiler: issue with getters on taglibs not properly merging (c728439)

5.14.0 (2021-07-24)

Bug Fixes

  • issue with root translator running in hydrate mode (56495ae)

Features

  • lazy load load compiler hook paths, expose error loc object (f49fc19)

5.13.0 (2021-07-23)

Features

  • add support for new binding shorthand syntax (1c20064)

5.12.1 (2021-07-21)

Bug Fixes

  • issue with tag var scope hoisting (ed8de11)

5.12.0 (2021-07-12)

Note: Version bump only for package @marko/compiler

5.11.3 (2021-07-08)

Note: Version bump only for package @marko/compiler

5.11.2 (2021-07-07)

Bug Fixes

  • incorrect search file types for taglib lookup (4e6bd9a)

5.11.1 (2021-07-07)

Bug Fixes

  • add missing compiler hook aliases during taglib loading (0e008e3)

5.11.0 (2021-07-07)

Features

  • add hoisting support for tag var bindings (956a80c)
  • support taglib translate hook, support arrays in taglib hooks (e2b0e66)

5.10.7 (2021-06-23)

Bug Fixes

  • compiler: improve sourceMap config option type definition (5a5092e)

5.10.6 (2021-06-10)

Note: Version bump only for package @marko/compiler

5.10.5 (2021-06-08)

Note: Version bump only for package @marko/compiler

5.10.2 (2021-05-04)

Bug Fixes

  • compiler: var name typo (8aaf910)

5.10.1 (2021-05-04)

Bug Fixes

  • compiler: issue with undefined added to watchFiles (4704b62)

5.10.0 (2021-04-30)

Features

5.9.0 (2021-04-21)

Features

  • expose api to get runtime entry files for translator (#1687) (fad9159)

5.8.4 (2021-04-19)

Note: Version bump only for package @marko/compiler

5.8.3 (2021-04-18)

Note: Version bump only for package @marko/compiler

5.8.2 (2021-04-18)

Note: Version bump only for package @marko/compiler

5.8.1 (2021-04-16)

Bug Fixes

  • compiler: add missing config type definition (7437e88)

5.8.0 (2021-04-16)

Features

5.7.0 (2021-04-07)

Features

  • compiler: use default translator for buildLookup api (#1682) (0899847)

5.6.2 (2021-03-30)

Note: Version bump only for package @marko/compiler

5.6.1 (2021-03-27)

Note: Version bump only for package @marko/compiler

5.6.0 (2021-03-27)

Note: Version bump only for package @marko/compiler

5.5.4 (2021-03-22)

Note: Version bump only for package @marko/compiler

5.5.3 (2021-03-22)

Note: Version bump only for package @marko/compiler

5.5.2 (2021-03-19)

Bug Fixes

5.5.1 (2021-03-18)

Bug Fixes

  • compiler: type definitions had incorrect path (f7d4eb9)

5.5.0 (2021-03-18)

Bug Fixes

  • compiler: use provided FS for taglib building (#1674) (edb570e)
  • correct Marko debug mode for ci tests (031ca0d)

Features

5.4.2 (2021-03-10)

Note: Version bump only for package @marko/compiler

5.4.1 (2021-03-10)

Note: Version bump only for package @marko/compiler

5.4.0 (2021-03-10)

Note: Version bump only for package @marko/compiler

5.2.2 (2021-03-01)

Bug Fixes

  • add some additional missing deps from marko to @marko/compiler (65ac580)

5.2.1 (2021-03-01)

Bug Fixes

  • compiler: add missing dependency after moving taglib code (ae843f1)

5.2.0 (2021-03-01)

Features

  • move taglib apis into compiler source code (f7cbb1b)

5.1.21 (2021-03-01)

Note: Version bump only for package @marko/compiler

5.1.20 (2021-02-26)

Note: Version bump only for package @marko/compiler

5.1.19 (2021-02-26)

Bug Fixes

  • marko: bring back hot-reload when node-require hook used (8d856a0)
  • move @marko/babel-types into compiler (5369a63)
  • compiler: issue with path.state missing (22ab5b2)

5.1.18 (2021-02-21)

Note: Version bump only for package @marko/compiler

5.1.17 (2021-02-18)

Note: Version bump only for package @marko/compiler

5.1.16 (2021-02-17)

Note: Version bump only for package @marko/compiler

5.1.15 (2021-02-13)

Note: Version bump only for package @marko/compiler

5.1.14 (2021-02-12)

Note: Version bump only for package @marko/compiler

5.1.13 (2021-02-12)

Note: Version bump only for package @marko/compiler

5.1.12 (2021-02-12)

Note: Version bump only for package @marko/compiler

5.1.11 (2021-02-11)

Note: Version bump only for package @marko/compiler

5.1.10 (2021-02-05)

Note: Version bump only for package @marko/compiler

5.1.9 (2021-02-03)

Note: Version bump only for package @marko/compiler

5.1.8 (2021-02-02)

Note: Version bump only for package @marko/compiler

5.1.7 (2021-02-01)

Note: Version bump only for package @marko/compiler

5.1.6 (2021-01-29)

Bug Fixes

  • compiler: improve type definitions (291690e)

5.1.5 (2021-01-28)

Bug Fixes

  • issue with bundled compiler not respecting NODE_ENV (c7be2a7)

5.1.4 (2021-01-27)

Note: Version bump only for package @marko/compiler

5.1.3 (2021-01-27)

Note: Version bump only for package @marko/compiler

5.1.2 (2021-01-26)

Note: Version bump only for package @marko/compiler

5.1.1 (2021-01-26)

Note: Version bump only for package @marko/compiler

5.1.0 (2021-01-26)

Features

  • no longer publish as 'next' dist-tag (8113e25)

5.0.0-next.82 (2021-01-21)

Bug Fixes

  • issue with path.hub being missing when traversing (7aef97c)

5.0.0-next.81 (2021-01-20)

Note: Version bump only for package @marko/compiler

5.0.0-next.80 (2021-01-19)

Note: Version bump only for package @marko/compiler

5.0.0-next.79 (2021-01-19)

Note: Version bump only for package @marko/compiler

5.0.0-next.78 (2021-01-19)

Note: Version bump only for package @marko/compiler

5.0.0-next.77 (2021-01-19)

Note: Version bump only for package @marko/compiler

5.0.0-next.76 (2021-01-15)

Note: Version bump only for package @marko/compiler

5.0.0-next.75 (2021-01-14)

Note: Version bump only for package @marko/compiler

5.0.0-next.74 (2021-01-14)

Note: Version bump only for package @marko/compiler

5.0.0-next.73 (2021-01-14)

Bug Fixes

  • use same debug check for compiler and runtime (#1647) (0c8632f)

5.0.0-next.72 (2021-01-13)

Features

  • compiler: support string as translator option (0c6e968)

5.0.0-next.71 (2021-01-12)

Features

  • move tag param ast to MarkoTagBody (02c1e29)

5.0.0-next.70 (2020-12-16)

Features

  • add cached analyze stage (bb6a050)

5.0.0-next.69 (2020-12-14)

Features

  • compiler: provide state object during compiler hooks (24cefa4)

5.0.0-next.68 (2020-12-11)

Features

5.0.0-next.67 (2020-12-09)

Note: Version bump only for package @marko/compiler

5.0.0-next.66 (2020-12-08)

Note: Version bump only for package @marko/compiler

5.0.0-next.65 (2020-12-02)

Note: Version bump only for package @marko/compiler

5.0.0-next.64 (2020-12-02)

Bug Fixes

  • babel-types: support scope analysis for tag variables (c527474)

5.0.0-next.63 (2020-12-01)

Note: Version bump only for package @marko/compiler

5.0.0-next.62 (2020-12-01)

Note: Version bump only for package @marko/compiler

5.0.0-next.61 (2020-12-01)

Note: Version bump only for package @marko/compiler

5.0.0-next.60 (2020-11-22)

Note: Version bump only for package @marko/compiler

5.0.0-next.59 (2020-11-21)

Note: Version bump only for package @marko/compiler

5.0.0-next.58 (2020-11-20)

Note: Version bump only for package @marko/compiler

5.0.0-next.57 (2020-11-20)

Bug Fixes

  • translator-default: ensure accruate component id metadata (c4b0360)

Features

5.0.0-next.56 (2020-11-20)

Bug Fixes

  • compiler: no longer error when compiling from root dir (fe84fb3)

5.0.0-next.55 (2020-11-19)

Bug Fixes

  • babel-utils doesnt depend on compiler (c429ffb)

5.0.0-next.54 (2020-11-17)

Note: Version bump only for package @marko/compiler

5.0.0-next.53 (2020-11-17)

Note: Version bump only for package @marko/compiler

5.0.0-next.52 (2020-11-12)

Note: Version bump only for package @marko/compiler

5.0.0-next.51 (2020-11-11)

Features

  • cached compilations, nested tag analysis (74d5f10)

5.0.0-next.50 (2020-10-12)

Bug Fixes

  • no longer use fragments for preserved native els (22e9322)

5.0.0-next.49 (2020-09-28)

Note: Version bump only for package @marko/compiler

5.0.0-next.48 (2020-09-18)

Bug Fixes

  • compiler: improve hash template id performance and consistency (d111748)

5.0.0-next.47 (2020-09-18)

Bug Fixes

  • compiler: normalize windows paths when creating relative requires (daf2b1a)

5.0.0-next.46 (2020-09-17)

Note: Version bump only for package @marko/compiler

5.0.0-next.45 (2020-08-26)

Note: Version bump only for package @marko/compiler

5.0.0-next.44 (2020-08-26)

Bug Fixes

  • typo with aria-describedby autocomplete (f499634)

5.0.0-next.43 (2020-08-20)

Note: Version bump only for package @marko/compiler

5.0.0-next.42 (2020-08-18)

Note: Version bump only for package @marko/compiler

5.0.0-next.41 (2020-08-18)

Note: Version bump only for package @marko/compiler

5.0.0-next.40 (2020-08-12)

Bug Fixes

  • component type use relative path in dev mode (7b7a4f9)

5.0.0-next.39 (2020-08-10)

Note: Version bump only for package @marko/compiler

5.0.0-next.38 (2020-08-10)

Note: Version bump only for package @marko/compiler

5.0.0-next.37 (2020-08-05)

Features

  • only enable optimization stage for production mode (ee16e96)

5.0.0-next.36 (2020-08-05)

Features

5.0.0-next.35 (2020-08-04)

Features

5.0.0-next.34 (2020-08-04)

Note: Version bump only for package @marko/compiler

5.0.0-next.33 (2020-08-03)

Note: Version bump only for package @marko/compiler

5.0.0-next.32 (2020-07-31)

Bug Fixes

  • compiler: regression with sourcemaps (bb818c8)

5.0.0-next.31 (2020-07-31)

Features

  • improve index position to line, column perf (680dad6)

5.0.0-next.30 (2020-07-29)

Note: Version bump only for package @marko/compiler

5.0.0-next.29 (2020-07-29)

Note: Version bump only for package @marko/compiler

5.0.0-next.28 (2020-07-27)

Bug Fixes

  • compiler: false positive for concise mode dynamic tag error (94c41ca)

5.0.0-next.27 (2020-07-24)

Bug Fixes

  • compiler: make taglib entry more bundler friendly (1e89380)

5.0.0-next.26 (2020-07-24)

Bug Fixes

5.0.0-next.25 (2020-07-23)

Bug Fixes

  • remove unecessary allExtensions api (9a2c439)

5.0.0-next.24 (2020-07-22)

Features

5.0.0-next.23 (2020-07-14)

Note: Version bump only for package @marko/compiler

5.0.0-next.22 (2020-07-10)

Note: Version bump only for package @marko/compiler

5.0.0-next.21 (2020-07-07)

Features

  • switch to storing marko meta on babels metadata (ee6ad38)

5.0.0-next.20 (2020-07-07)

Note: Version bump only for package @marko/compiler

5.0.0-next.19 (2020-07-06)

Bug Fixes

  • support manually registered taglibs (9dc4d07)

5.0.0-next.18 (2020-05-27)

Bug Fixes

  • compiler: modules override warning when compiled with webpack (af28bac)

5.0.0-next.17 (2020-05-27)

Bug Fixes

  • additional taglib cleanup for website support (f462d8a)

5.0.0-next.16 (2020-05-27)

Features

  • website compatibility fixes (4390fd1)

5.0.0-next.15 (2020-05-26)

Features

  • compiler: require passing custom translator directly (b9d4c46)

5.0.0-next.14 (2020-05-26)

Bug Fixes

5.0.0-next.13 (2020-05-20)

Bug Fixes

  • compiler: ensure marko babel plugin not overwritten (ac9a4c5)
  • compiler: regression causing marko plugin to not load (a08b55a)

5.0.0-next.12 (2020-05-19)

Note: Version bump only for package @marko/compiler

5.0.0-next.11 (2020-04-27)

Note: Version bump only for package @marko/compiler

5.0.0-next.10 (2020-04-23)

Note: Version bump only for package @marko/compiler

5.0.0-next.9 (2020-04-16)

Note: Version bump only for package @marko/compiler

5.0.0-next.8 (2020-03-17)

Note: Version bump only for package @marko/compiler

5.0.0-next.7 (2020-03-17)

Note: Version bump only for package @marko/compiler

5.0.0-next.6 (2020-03-16)

Bug Fixes

  • make Marko a peerDependency (2eac257)

5.0.0-next.5 (2020-02-26)

Note: Version bump only for package @marko/compiler

5.0.0-next.4 (2020-02-25)

Note: Version bump only for package @marko/compiler

5.0.0-next.3 (2020-02-25)

Note: Version bump only for package @marko/compiler

5.0.0-next.2 (2020-02-25)

Note: Version bump only for package @marko/compiler

5.0.0-next.1 (2020-02-25)

Features

  • import compiler from marko-js/x (02670c8)