107 KiB
Change Log
5.39.40
Patch Changes
- #2859
22112e5Thanks @DylanPiercey! - Ensure markoOpts is always accurate when running child template analysis.
5.39.39
Patch Changes
- #2855
29173ceThanks @DylanPiercey! - Ensure scopes are crawled before stripping types.
5.39.38
Patch Changes
- #2853
b52a62fThanks @DylanPiercey! - Ensure stripTypes compiler option is applied when targeting source output.
5.39.37
Patch Changes
- #2834
5c9a37fThanks @DylanPiercey! - Fix issue striping type specifiers in imports.
5.39.36
Patch Changes
- #2830
9a688afThanks @DylanPiercey! - Fix issue with static/server/client statements with type imports not properly being stripped.
5.39.35
Patch Changes
- #2823
58c2165Thanks @DylanPiercey! - Ensure type stripping runs before transform phase in compiler.
5.39.34
Patch Changes
- #2815
ed8d064Thanks @DylanPiercey! - Ensure@marko/compiler/modulesalways uses packagem name imports for easier aliasing in website tooling.
5.39.33
Patch Changes
- #2756
46f1f90Thanks @DylanPiercey! - Improve tags api compat.
5.39.32
Patch Changes
- #2753
9ba0cabThanks @DylanPiercey! - Update package dependencies.
5.39.31
Patch Changes
- #2749
9e0684fThanks @LuLaValva! - Prevent loss of comments in a scriptlet without statements
5.39.30
Patch Changes
- #2743
5b3ca5cThanks @DylanPiercey! - Minor improvements to class/id shorthand parsing.
5.39.29
Patch Changes
- #2734
b6ba333Thanks @DylanPiercey! - Upgrade all deps. Fix support for discard binding proposal.
5.39.28
Patch Changes
-
#2715
e60a20fThanks @DylanPiercey! - Remove script tag definition that caused a conflict when in interop mode. -
#2715
dc178ceThanks @DylanPiercey! - Move translator loading logic back into shared utility. Moving this out caused a regression for tools that callgetRuntimeEntryFilesortaglib.buildLookupdirectly.
5.39.27
Patch Changes
- #2713
2d11230Thanks @DylanPiercey! - Avoid using "util" module to improve browser compat of compiler.
5.39.26
Patch Changes
- #2707
89d0196Thanks @DylanPiercey! - Fix false positive interop checks.
5.39.25
Patch Changes
- #2705
75eaa9dThanks @DylanPiercey! - Avoid using process api in compiler to make it easier to load in environments without it.
5.39.24
Patch Changes
- #2703
f67361bThanks @DylanPiercey! - Load interop translator by default if installed.
5.39.23
Patch Changes
- #2701
8f68b6eThanks @DylanPiercey! - Fix regression where explicitly passing inundefinedfor translator was not loading the default translator.
5.39.22
Patch Changes
- #2699
dc3ee34Thanks @DylanPiercey! - Avoid node:crypto - use custom hash algo for component ids.
5.39.21
Patch Changes
- #2696
eefa829Thanks @DylanPiercey! - Improve internal module loading api. Ensure all taglib requires happen relative to project dir.
5.39.20
Patch Changes
- #2691
0758ae7Thanks @DylanPiercey! - Fix issue where scriptlets with comments were being printed without brackets when printing the marko ast.
5.39.19
Patch Changes
- #2648
3b883d4Thanks @DylanPiercey! - Fix issue where tags added from the translator were given lower priority than tags added by the core compiler.
5.39.18
Patch Changes
- #2636
dc748b4Thanks @DylanPiercey! - Add parenthesized expressions to the list of computable values.
5.39.17
Patch Changes
- #2623
525345fThanks @DylanPiercey! - Refactor getFile and getProgram handling to avoid circular references between babel-utils and babel-plugin code.
5.39.16
Patch Changes
- #2621
aad5a8dThanks @DylanPiercey! - Expose getProgram and getFile apis from @marko/compiler/babel-utils. Exposing it directly from the compiler was causing an issue with the website.
5.39.15
Patch Changes
- #2607
7110193Thanks @DylanPiercey! - Expose getProgram and getFile apis for accessing the file/program of the active compilation.
5.39.14
Patch Changes
- #2589
765915aThanks @DylanPiercey! - Fix issue when using with latest version of babel.
5.39.13
Patch Changes
5.39.12
Patch Changes
- #2485
09c0558Thanks @DylanPiercey! - Ensure Marko 5 renderBodies are serialized properly across the compat layer.
5.39.11
Patch Changes
- #2470
218c436Thanks @DylanPiercey! - Improve tags / class api interop layer for destroyed tags.
5.39.10
Patch Changes
- #2453
b4d73b0Thanks @DylanPiercey! - Expose @marko/compiler/babel-utils as a top level file for legacy resolvers.
5.39.9
Patch Changes
-
#2451
602eaadThanks @DylanPiercey! - Avoid swallowing errors when resolved paths in marko.json files could not be resolve (now leaves the value as is, previously would ignore the path). -
#2449
6cf4978Thanks @DylanPiercey! - Support aggregate errors when final error is a HTMLJS parser error.
5.39.8
Patch Changes
- #2445
b12d7a9Thanks @DylanPiercey! - Add engines field to package.json
5.39.7
Patch Changes
-
#2438
4b6c613Thanks @mlrawlings! - use tags/ instead of components/ for runtime-tags -
#2439
8ebe566Thanks @mlrawlings! - fix: remove duplicate imports of compat runtime
5.39.6
Patch Changes
- #2434
6a235a8Thanks @DylanPiercey! - Improve registry id normalization.
5.39.5
Patch Changes
-
#2426
2142dfdThanks @DylanPiercey! - Use statement parsing for script tag to improve sourcemap accuracy. -
#2426
2142dfdThanks @DylanPiercey! - Fix issue where negative sourcemap offets leaning to the previous line were outputting incorrect values.
5.39.4
Patch Changes
e60bd4fThanks @DylanPiercey! - Fix incorrect filepath for marko babel transform.
5.39.3
Patch Changes
- #2420
4a980feThanks @DylanPiercey! - Fix publish alias issue.
5.39.2
Patch Changes
- #2418
00e7392Thanks @DylanPiercey! - Fix issue when parsing embedded script code with negative offset locations.
5.39.1
Patch Changes
- #2416
619c87fThanks @DylanPiercey! - Fix package json repository config.
5.39.0
Minor Changes
- #2408
2be37f7Thanks @DylanPiercey! - Merge translator packages into their respective runtime packages.
5.38.5
Patch Changes
-
#2404
fbc0cefThanks @DylanPiercey! - Upgrade all dependencies. Fix support for latest babel version. -
Updated dependencies [
fbc0cef]:- @marko/babel-utils@6.6.3
5.38.4
Patch Changes
-
#2401
46f8d7cThanks @DylanPiercey! - Add support for tags API script tag. -
Updated dependencies [
032afa1]:- @marko/babel-utils@6.6.2
5.38.3
Patch Changes
- #2395
00cc3fbThanks @DylanPiercey! - Fix issue where lasso manifest file paths were not being provided correctly for lasso-marko.
5.38.2
Patch Changes
- #2387
8e67da0Thanks @DylanPiercey! - Fix issue with an attribute tag containing only a spread.
5.38.1
Patch Changes
-
#2383
133b562Thanks @DylanPiercey! - Partially revert #2380 which was causing non idempotent builds. -
Updated dependencies [
133b562]:- @marko/babel-utils@6.6.1
5.38.0
Minor Changes
- #2380
c5d2b48Thanks @DylanPiercey! - ReplaceoptimizeKnownTemplateswith a better an simpleroptimizeRegistryIdapi.
Patch Changes
- Updated dependencies [
c5d2b48]:- @marko/babel-utils@6.6.0
5.37.26
Patch Changes
- #2368
bb44af0Thanks @DylanPiercey! - Fix issue with "package: " deps (used for lasso) not being hoisted when building the hydrate output.
5.37.25
Patch Changes
-
#2367
c8e943dThanks @DylanPiercey! - Ignore errors from child template analysis (assume child will be compiled after imported anyway). -
#2365
894d0d0Thanks @rturnq! - Expose globalConfig and fix config default export -
Updated dependencies [
c8e943d]:- @marko/babel-utils@6.5.13
5.37.24
Patch Changes
-
#2358
76951d8Thanks @DylanPiercey! - Always use MarkoTagBody AST nodes for control flow (even with attribute tags). This fixes a regression with the @marko/tags-api-preview and is more accurate to what is actually happening, especially from a variable scoping perspective. -
Updated dependencies [
76951d8]:- @marko/babel-utils@6.5.12
5.37.23
Patch Changes
-
#2346
8ec88ffThanks @DylanPiercey! - Switch back to using babels startIndex api since the regression has been fixed. -
#2344
bafeac1Thanks @DylanPiercey! - Optimize circular reference child template analysis. -
Updated dependencies [
8ec88ff,bafeac1]:- @marko/babel-utils@6.5.10
5.37.22
Patch Changes
-
#2342
8e07673Thanks @DylanPiercey! - Make attribute tags a property on the MarkoTag AST and refactor how attribute tags are translated. -
Updated dependencies [
8e07673]:- @marko/babel-utils@6.5.9
5.37.21
Patch Changes
- #2338
033adb9Thanks @DylanPiercey! - Ensure that errors discovered while loading optional module level taglibs are forwarded through the onError api.
5.37.20
Patch Changes
-
#2334
212fbd0Thanks @LuLaValva! - TypeScript dependency fix -
#2337
ea95de1Thanks @DylanPiercey! - Avoid babelstartColumnapi until https://github.com/babel/babel/pull/16936 is merged. -
Updated dependencies [
ea95de1]:- @marko/babel-utils@6.5.8
5.37.19
Patch Changes
- #2324
4776e33Thanks @rturnq! - Allow child template analysis on manually imported tags in translator-default and optimize direct reference of imported tag
5.37.18
Patch Changes
- #2322
420405dThanks @DylanPiercey! - Remove the default cache auto clearing behavior. Previously the default compiler "cache" was cleared every setImmediate. This was to support server hot reloading in apps usingLasso(andbrowser-refresh). Since we brought back support forbrowser-refreshin the Marko package we now clear this cache when browser-refresh triggers a change making the default cache clearing redundant.
5.37.17
Patch Changes
-
#2320
13b3270Thanks @DylanPiercey! - Optimize how style and script tags are diffed (similar to textarea) where the text nodes are concatenated and diffed as a whole. -
#2320
a9da4d6Thanks @DylanPiercey! - Fix regression from #2138 which caused nullable native dynamic tags with body contents to not output the end tag. 😱
5.37.16
Patch Changes
- #2318
1dbb189Thanks @DylanPiercey! - Fix issue where a null able native tag with no body content (eg<${show && "div}/>) was incorrectly outputting a fragment for the body content (which did not exist).
5.37.15
Patch Changes
-
#2310
f06d4b0Thanks @DylanPiercey! - Avoid babel compiler assert api to fix a regression. -
Updated dependencies [
f06d4b0]:- @marko/babel-utils@6.5.7
5.37.14
Patch Changes
5.37.13
Patch Changes
- #2300
d45f91aThanks @DylanPiercey! - Fix issue where legacy compatw-binddirectives were being incorrectly optimized as static vdom.
5.37.12
Patch Changes
-
#2298
c01d83fThanks @DylanPiercey! - Fix issue with the "ignoreUnrecognizedTags" compiler option being used with dynamic tags that have attribute tags. -
#2298
cfff311Thanks @DylanPiercey! - Removes the debug mode dom manipulation warning since chrome dropped the api's that allowed us to get useful stack traces.
5.37.11
Patch Changes
-
#2296
81c5c0eThanks @DylanPiercey! - Fix issues related to recent babel changes. -
#2296
81c5c0eThanks @DylanPiercey! - Improve support for @marko/compat. -
Updated dependencies [
81c5c0e,81c5c0e]:- @marko/babel-utils@6.5.6
5.37.10
Patch Changes
- #2294
c600610Thanks @DylanPiercey! - Fix issue with comment nodes in unescaped html by bringing back virtual comment nodes.
5.37.9
Patch Changes
- #2286
55338b5Thanks @DylanPiercey! - Optimize template literal printing in html output.
5.37.8
Patch Changes
-
#2284
d0723d3Thanks @DylanPiercey! - Fix off by one issue for static statement sourcemaps (eg import) and for concise mode tags. -
Updated dependencies [
d0723d3]:- @marko/babel-utils@6.5.5
5.37.7
Patch Changes
-
#2282
32e2effThanks @DylanPiercey! - Improve handling of sourcemaps for inline style blocks and tags. -
Updated dependencies [
32e2eff]:- @marko/babel-utils@6.5.4
5.37.6
Patch Changes
-
#2277
ce88d81Thanks @DylanPiercey! - Fix "off by one" issue with source location information when the index was at the start of the line. -
Updated dependencies [
ce88d81]:- @marko/babel-utils@6.5.3
5.37.5
Patch Changes
-
#2274
5cea7d6Thanks @DylanPiercey! - Optimize javascript parsing helpers to pass in start line / column information to babel rather than faking it with whitespace.For large templates this can have a significant impact on parsing performance.
-
Updated dependencies [
5cea7d6]:- @marko/babel-utils@6.5.2
5.37.4
Patch Changes
-
#2252
bfe85d1Thanks @DylanPiercey! - When loading a taglib, always process exports field if inside node_modules folder. -
#2252
339c28dThanks @DylanPiercey! - Allow diagnostic fixes in parse stage. -
Updated dependencies [
339c28d]:- @marko/babel-utils@6.5.1
5.37.3
Patch Changes
- #2248
0ced6e1Thanks @DylanPiercey! - Fix typo in upgrade docs and adding missingbrowser-refreshmodule.
5.37.2
Patch Changes
- #2246
a699cd9Thanks @DylanPiercey! - Misc backward compat improvements:- Expose
marko/browser-refreshas a noop - Allow translators to specify "optional" taglibs to load if they're installed (used for automatically loading compat taglibs)
marko/node-requirelegacy require hook now disables user babel transforms by default- Allow
<macro>tag instances to use tag arguments syntax
- Expose
5.37.1
Patch Changes
- #2244
934dc13Thanks @LuLaValva! - Allow mixing comments with attr tags
5.37.0
Minor Changes
- #2238
a741f36Thanks @DylanPiercey! - Add new optimizedRegistryIds compiler option
Patch Changes
- Updated dependencies [
a741f36]:- @marko/babel-utils@6.5.0
5.36.2
Patch Changes
- #2232
a67e1c4Thanks @DylanPiercey! - Fix issue where theignoreUnrecognizedTagscompiler option was incorrectly escaping attribute tags for recognized tags that did not explicitly define their attribute tags in a marko.json
5.36.1
Patch Changes
- #2217
4fc4614Thanks @DylanPiercey! - Fix issue where element keys could be different because of hoisted const elements not always being keyed. This could cause a hydration issue since the server and client compilations would not agree on the keys.
5.36.0
Minor Changes
- #2214
2d0a566Thanks @DylanPiercey! - Using event handlers now causes a template to become an implicit component or split component (depending on if a string event handler is used).
5.35.14
Patch Changes
- #2212
a1a91a4Thanks @DylanPiercey! - Fix issues related to hydrating sections under a native tag with theno-updatedirective.
5.35.13
Patch Changes
- #2210
7d1bbdbThanks @DylanPiercey! - I completely messed up the release of https://github.com/marko-js/marko/pull/2205, this fixes that.
5.35.12
Patch Changes
c8fe951Thanks @DylanPiercey! - Bump compiler and translator to pull in Marko runtime changes.
5.35.11
Patch Changes
-
#2190
638ca07Thanks @DylanPiercey! - Update dependencies -
Updated dependencies [
638ca07]:- @marko/babel-utils@6.4.3
5.35.10
Patch Changes
- #2187
fe344b0Thanks @DylanPiercey! - Fix some tags/class interop issues.
5.35.9
Patch Changes
- #2182
1fa3b05Thanks @DylanPiercey! - Support tracking the "input" using babels scope analysis.
5.35.8
Patch Changes
- #2180
a8bfb50Thanks @DylanPiercey! - Fix issue where vdom optimizer was including elements with user key attributes.
5.35.7
Patch Changes
- #2173
614f432Thanks @DylanPiercey! - Fix regression where hydrate dependencies had the incorrect resolved path if they were in node_modules.
5.35.6
Patch Changes
409ef4eThanks @DylanPiercey! - Fix regression where hydrate entry files had incorrect relative paths.
5.35.5
Patch Changes
-
#2164
08823b9Thanks @DylanPiercey! - Fix issue with interop translator not outputting correct hydrate entry code. -
Updated dependencies [
08823b9]:- @marko/babel-utils@6.4.2
5.35.4
Patch Changes
- #2150
7ef2b89Thanks @DylanPiercey! - Expose all files from compiler exports.
5.35.3
Patch Changes
- #2148
b095755Thanks @DylanPiercey! - Fix issue with interop translator loading init-components tag.
5.35.2
Patch Changes
- #2140
4a1db86Thanks @DylanPiercey! - Some packages rely on a@marko/compiler/packageentry point existing, adds back that export.
5.35.1
Patch Changes
-
#2138
105c26bThanks @DylanPiercey! - Fix issue with package json src/dist override script. -
Updated dependencies [
105c26b]:- @marko/babel-utils@6.4.1
5.35.0
Minor Changes
-
#2004
2704819Thanks @mlrawlings! - Release alpha of tags api translator/runtime. -
#2004
2704819Thanks @mlrawlings! - Addmountapi for client rendered components and exposeSymbol.asyncIteratorfor server rendered components.
Patch Changes
5.34.7
Patch Changes
- #2115
a55fb06Thanks @DylanPiercey! - Improve nested attribute tag handling with scriptlets.
5.34.6
Patch Changes
- #2085
d82b21eThanks @DylanPiercey! - Improve compile error output.
5.34.5
Patch Changes
- #2079
2976dfaThanks @DylanPiercey! - Fix issue where additional exports were being removed when stripping typescript types.
5.34.4
Patch Changes
-
#2076
69b3ff5Thanks @DylanPiercey! - Upgrade all package deps to latest -
Updated dependencies [
69b3ff5]:- @marko/babel-utils@6.3.5
5.34.3
Patch Changes
- #2074
bf23c566fac02f4e2991be357a95483663493b3fThanks @DylanPiercey! - Upgrade package lock and built types.
5.34.2
Patch Changes
- #2069
977d69078Thanks @DylanPiercey! - Fix issue with printing variable declarations with multiple variables.
5.34.1
Patch Changes
- #2064
5e294103fThanks @LuLaValva! - fix sourcemaps
5.34.0
Minor Changes
- #2062
436ace040Thanks @LuLaValva! - Add "exports" to marko.json
5.33.8
Patch Changes
-
#2060
648a94928Thanks @DylanPiercey! - Expose meta data about which child Marko templates were analyzed for a given compilation. -
#2059
aed88284bThanks @LuLaValva! - fix AST types -
Updated dependencies [
648a94928]:- @marko/babel-utils@6.3.4
5.33.7
Patch Changes
- #2056
84f443d60Thanks @DylanPiercey! - Fix issue when the Marko hot-reload runtime is loaded in native esm
5.33.6
Patch Changes
-
#2054
1c5eccadfThanks @DylanPiercey! - Fix regression with @marko/babel-utils not exposing new parse helpers. -
Updated dependencies [
1c5eccadf]:- @marko/babel-utils@6.3.3
5.33.5
Patch Changes
-
#2051
5354d4411Thanks @LuLaValva! - add ts to ast -
Updated dependencies [
5354d4411]:- @marko/babel-utils@6.3.2
5.33.4
Patch Changes
- #2049
1554b1e1eThanks @DylanPiercey! - Allowtemplate.markoto act asindex.markofor backword compat with v4/v3.
5.33.3
Patch Changes
- #2042
447104632Thanks @DylanPiercey! - When compiling async, prefer using the async babel api for loading babel config files.
5.33.2
Patch Changes
- #2038
71a227a5fThanks @DylanPiercey! - Fix issue where using the longhand nested attribute tag syntax in a marko.json with atarget-propertydefined was not registering the alias as a known attribute, leading to compile errors.
5.33.1
Patch Changes
- #2020
6a4e947b5Thanks @DylanPiercey! - Ensure .marko files are resolved for legacy renderer taglib configs.
5.33.0
Minor Changes
- #2012
6ba268c84Thanks @DylanPiercey! - Support registering a taglib in the compiler by just passing in a module id.
5.32.0
Minor Changes
- #2006
b2e70bc45Thanks @DylanPiercey! - Add compute node helper to replace babelsevaluatehelper. 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
-
#2001
037a6ce67Thanks @DylanPiercey! - Improve some typings for the compiler apis. -
Updated dependencies [
037a6ce67]:- @marko/babel-utils@6.2.1
5.31.1
Patch Changes
- #1997
2afa3f6e6Thanks @DylanPiercey! - Ensure source maps are loaded in dev mode when using the @marko/register hook.
5.31.0
Minor Changes
- #1996
d93037843Thanks @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
1bc993012Thanks @DylanPiercey! - Fix regression which would happen if tools tried to "delete" thelocproperty on error instances returned from Marko. This property is now configurable and can be deleted again.
5.30.2
Patch Changes
- #1990
a54a23794Thanks @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
8bf5cb1f0Thanks @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
1b29b859fThanks @DylanPiercey! - Fix issue wheremodule-codeentries 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
- #1984
c6e2d0655Thanks @DylanPiercey! - Allow migrator as a tag entry file.
Patch Changes
- Updated dependencies [
c6e2d0655]:- @marko/babel-utils@6.1.0
5.29.0
Minor Changes
-
#1980
9d3b34eefThanks @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: truethese errors become diagnostics instead of being thrown.
Patch Changes
- Updated dependencies [
9d3b34eef]:- @marko/babel-utils@6.0.0
5.28.5
Patch Changes
- #1978
931a5d24bThanks @DylanPiercey! - Avoids loading babel config when compiler output is set to source or migrate.
5.28.4
Patch Changes
-
#1976
7555a46a1Thanks @DylanPiercey! - Fix issue where aggregate errors from the compiler were not exposing error objects (was exposing the raw diagnostics). -
#1976
7555a46a1Thanks @DylanPiercey! - Include locations and original message for errors thrown from the compiler.
5.28.3
Patch Changes
-
#1974
42f7b46e2Thanks @DylanPiercey! - Run migration fixes synchronously. -
Updated dependencies [
42f7b46e2]:- @marko/babel-utils@5.22.1
5.28.2
Patch Changes
- #1972
897b8bebaThanks @DylanPiercey! - Fix issue where error messages without a source location were losing their message
5.28.1
Patch Changes
- #1970
ce5c40c95Thanks @DylanPiercey! - Fix issue when outputting hydrate code with commonjs modules enabled.
5.28.0
Minor Changes
- #1968
70922e68eThanks @DylanPiercey! - Add support for additional diagnostics emitted from the compiler.
Patch Changes
- Updated dependencies [
70922e68e]:- @marko/babel-utils@5.22.0
5.27.10
Patch Changes
- #1957
820fa12f4Thanks @DylanPiercey! - Fix compiler config type definitions
5.27.9
Patch Changes
- #1955
ca9bfa2a2Thanks @DylanPiercey! - Fix type definition for MarkoTagBody AST.
5.27.8
Patch Changes
- #1949
7f6b65a4bThanks @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
- #1934
04d6fad6dThanks @DylanPiercey! - Fix issue where types were not being stripped from the inline Marko component class.
5.27.6
Patch Changes
- #1929
c7a197a5cThanks @DylanPiercey! - Adds strict typescript types for the native HTML tags.
5.27.5
Patch Changes
712f68062Thanks @LuLaValva! - Add types for Marko translator-default
5.27.4
Patch Changes
- #1923
62afb3256Thanks @DylanPiercey! - Remove class lifecycle types to avoid the need tooverridethem.
5.27.3
Patch Changes
-
#1921
1fe71a502Thanks @DylanPiercey! - Avoid usingtypeof windowand prefertypeof documentchecks for browser environment (improves future deno support). -
#1921
f0c697d7bThanks @DylanPiercey! - Avoids using a package.json remap for the browser implementation of the _preserve internal tag (used to implementno-updatedirectives). This fixes an issue where in vite the module could not be loaded properly.
5.27.2
Patch Changes
-
#1920
7d5dab41cThanks @DylanPiercey! - Avoid addingexport {}(from "@babel/plugin-transform-typescript") when outputing a template with the types stripped. -
#1918
cceab7d20Thanks @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 }sayingxwas not previously defined. This is because Marko parses these statements in isolation. -
#1920
7d5dab41cThanks @DylanPiercey! - Avoid outputing adeclare'd type on aclass.
5.27.1
Patch Changes
- #1916
ac1d5062aThanks @mlrawlings! - fix: modify/remove some inefficient regexes
5.27.0
Minor Changes
- #1909
e8f1370cfThanks @DylanPiercey! - Allow repeated attribute tags without using amarko.jsonfile. Attribute tag objects now also containSymbol.iteratorimplementation to make the single case more easily forwarded to the<for>tag.
Patch Changes
- #1914
22228e804Thanks @DylanPiercey! - Upgrades the included version of HTMLJS-Parser
5.26.0
Minor Changes
- #1907
7211a6937Thanks @DylanPiercey! - Expose$globalas a shorthand forout.globalwithin the template scope.
5.25.0
Minor Changes
- #1899
4fc38e800Thanks @DylanPiercey! - Expose the ability to intercept errors from the taglib builder.
5.24.0
Minor Changes
- #1897
72cdc3e5bThanks @DylanPiercey! - Expose a top level@marko/compiler/configentry point for loading the default compiler config.
5.23.6
Patch Changes
- #1892
c55ae937cThanks @DylanPiercey! - Improve types for the await tag and Marko.Template.
5.23.5
Patch Changes
- #1888
d110b0b5fThanks @DylanPiercey! - Improve type definitions.
5.23.4
Patch Changes
-
23e36a04bThanks @DylanPiercey! - Add missing type definition file to exposed types in package.json. -
d920e833dThanks @DylanPiercey! - Add missing type definition for taglib. -
Updated dependencies [
d920e833d]:- @marko/babel-utils@5.21.4
5.23.3
Patch Changes
- #1885
f1efd707aThanks @DylanPiercey! - Add taglib extensions and type definitions for typescript support.
5.23.2
Patch Changes
- #1880
c4cce33e8Thanks @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
- #1875
b744720dbThanks @DylanPiercey! - Upgrades "magic-string" module (used for css sourcemaps) to avoid deprecation warning.
5.23.0
Minor Changes
- #1865
797e90489Thanks @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
- #1862
30e0ea43dThanks @DylanPiercey! - Avoid mutating component instance in HMR mode. (Improves support in tags api preview)
5.22.9
Patch Changes
- #1860
e64809458Thanks @DylanPiercey! - Improve tag scanning performance.
- #1860
e64809458Thanks @DylanPiercey! - Update htmljs-parser version.
5.22.8
Patch Changes
- #1855
760824659Thanks @DylanPiercey! - Fix browser-refresh client support when using @marko/compiler/register
5.22.7
Patch Changes
- #1853
76771598eThanks @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
65bab8e6dThanks @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
- #1843
963f08ce9Thanks @DylanPiercey! - Upgrade htmljs-parser.
5.22.4
Patch Changes
- #1841
26cd305eaThanks @DylanPiercey! - Upgrade htmljs-parser.
5.22.3
Patch Changes
- #1839
1df553e45Thanks @DylanPiercey! - Upgrade HTMLJS-Parser.
5.22.2
Patch Changes
- #1837
63161abedThanks @DylanPiercey! - Fix issue with source map position for shorthand attribute methods.
5.22.1
Patch Changes
- #1830
efd6da235Thanks @DylanPiercey! - Fix issue with parsing type definitions for tag variables
5.22.0
Minor Changes
- #1826
e285cbbd1Thanks @DylanPiercey! - Support removing typescript types.
5.21.7
Patch Changes
- #1824
2f6459d2cThanks @DylanPiercey! - Fix issue where shorthand attribute methods could not have a "return" statement.
5.21.6
Patch Changes
- #1814
b11f9d076Thanks @DylanPiercey! - Upgrade htmljs-parser.
5.21.5
Patch Changes
- #1811
49ef9801bThanks @DylanPiercey! - Upgrade htmljs-parser to improve source location information.
5.21.4
Patch Changes
- #1806
04adc2d24Thanks @DylanPiercey! - Fix issue where attribute shorthand methods would have incorrect sourcemap position.
5.21.3
Patch Changes
- #1800
c352de67eThanks @mlrawlings! - fix: update deps, inline babel helper removed from latest version
5.21.2
Patch Changes
- #1797
5921c2297Thanks @DylanPiercey! - Pin a newer version of htmljs-parser that fixes some parser bugs. See: https://github.com/marko-js/htmljs-parser/pull/103
5.21.1
Patch Changes
-
#1792
c9107ea7fThanks @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
- #1787
dd9009d66Thanks @DylanPiercey! - Upgrades the compiler to use the latest major release ofhtmljs-parserbringing in the improvements listed here: https://github.com/marko-js/htmljs-parser/pull/93
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
5.16.0 (2021-10-11)
Features
- upgrade htmljs-parser (a53fc71)
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
- supports babel 7.15.4 (a301a87)
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
- add new HMR runtime (a873762)
5.9.0 (2021-04-21)
Features
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
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
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
- add default attribute support (#1631) (46ceab3)
- add parser support for tag variables (#1630) (43c4433)
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)