Skip to content

Releases: alloy-framework/alloy

alloy@0.18.0

30 Jun 20:58
dda683d

Choose a tag to compare

@alloy-js/core

Bug Fixes

  • #182 Added a @alloy-js/core/testing/matchers export to be added to tsconfig.json types in order to load the custom vitest matchers

Features

  • #198 Add inline option for <Block> component to define inline blocks

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

Bug Fixes

  • #205 Add doc support to class members
  • #182 Fix abstract class method rendering with a body {}
  • #201 Add support for csharp doc comments with various <Doc*> components

Features

  • #228 Add <Attribute /> and <AttributeList /> components to support c# attributes
  • #212 Add support for class base type(s)
  • #182 Add support for async class methods
  • #193 Add support for class modifiers abstract, partial, sealed and static
  • #209 Add <ClassProperty /> component
  • #227 CSharp SourceFile use 120 lines split by default
  • #191 Access and method modifiers have been converted to flags <Class public /> instead of <Class accessModifier="public" />
  • #220 Add <VarDeclaration /> component to render variables
  • #198 Add <InterfaceDeclaration />, <InterfaceMethod /> and <InterfaceProperty /> components
  • #213 Add support for optional parameters
  • #202 Add <DocFromMarkdown> component allowing conversion from markdown to csharp doc comment syntax
  • #225 Parameter improved formatting when using multi lines
  • #216 Add support for init properties
  • #215 Add support for record with <RecordDeclaration> component
  • #222 Support for type parameters for interface, class methods, interface methods

Breaking Changes

  • #192 Rename Class -> ClassDeclaration and Enum -> EnumDeclaration

@alloy-js/typescript

Bug Fixes

  • #208 Fix FunctionParameters component adds an extra comma when no params and function name is long
  • #176 Fix referencing object expression properties when naming policy is used

@alloy-js/create

No changes, version bump only.

@alloy-js/markdown

No changes, version bump only.

alloy@0.17.0

27 May 20:59
a8c04be

Choose a tag to compare

@alloy-js/core

Features

  • #157 Add tracing for symbols. Tracing can be enabled by setting ALLOY_TRACE environment variable to a comma-separated list of symbol, scope, and/or resolve.
  • #157 Symbols and member scopes now support copy and move operations. These are used in combination with instantiate to model such things as instantiating and applying types to variables.
  • #157 New symbol flag Transient which is a symbol that is merely a placeholder. For example, symbols created by expressions are generally transient, and their useful parts are copied into a declaration symbol when appropriate.
  • #157 Symbols can now be aliased. Alias symbols will look up to their alias target when accessing things like instance or static members.

Breaking Changes

  • #157 Refactor symbols to drastically simplify and optimize their usage. Symbols and scopes are now classes, and languages subclass these to add additional behaviors. Many binder APIs which operated on scopes or symbols are now methods on scopes or symbols.
  • #157 New takeSymbol/emitSymbol APIs added for passing symbols up the render tree to components which accept them. This is a generalization of the pattern in AssignmentTargetContext, so that context has been deleted.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

Bug Fixes

  • #163 Add index property to MemberExpression.Part to allow defining array indexes and treat numeric id props as array indexes.

Features

  • #153 Add support to createPackage for defining instance and static members.
  • #157 Variables will now get instance/static symbols based on the type prop or the children. This allows accessing members off of variable declarations when they are typed as a class or interface or assigned an object expression.
  • #157 Add new NewExpression component which will emit a symbol containing the instantiation of the given class reference.

@alloy-js/create

No changes, version bump only.

@alloy-js/markdown

No changes, version bump only.

alloy@0.16.0

15 May 00:07
e4392fc

Choose a tag to compare

@alloy-js/core

Features

  • #150 Export isRef and isReactive utility functions.
  • #150 Fully resolve refkeys given to the first part of a MemberExpression.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

Features

  • #150 Allow providing explicit children to a MemberExpression.Part.
  • #150 Format member expressions with multiple calls in a much better way.

Breaking Changes

  • #150 Remove MemberChainExpression component. Use MemberExpression component instead, which accomplishes the same goals but formats better, handles optional chaining, and more.

@alloy-js/create

No changes, version bump only.

@alloy-js/markdown

Features

  • #152 Add <Code /> component
  • #149 Add <FrontMatter /> component

alloy@0.15.0

02 May 17:54
7f3059a

Choose a tag to compare

@alloy-js/core

No changes, version bump only.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

Features

  • #146 Add support for rest parameters in function components
  • #146 Add support for object spread properties
  • #145 Sort import statements and named imports

@alloy-js/create

No changes, version bump only.

@alloy-js/markdown

No changes, version bump only.

@alloy-js/markdown@0.15.1

02 May 21:45
d49c8a3

Choose a tag to compare

Missing exports for markdown (#148)

alloy@0.14.0

01 May 21:35
f5cb2a4

Choose a tag to compare

@alloy-js/core

No changes, version bump only.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

Bug Fixes

  • #141 Fix type import from a package not adding type modifier
  • #140 Include readonly for indexers

@alloy-js/create

No changes, version bump only.

alloy@0.13.0

30 Apr 21:15
ae0cfeb

Choose a tag to compare

@alloy-js/core

Bug Fixes

  • #137 Fix default symbol conflict resolver not working with more than 2 symbols.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

No changes, version bump only.

@alloy-js/create

No changes, version bump only.

alloy@0.12.0

30 Apr 17:28
f5c7764

Choose a tag to compare

@alloy-js/core

Bug Fixes

  • #134 Support readonly collection in <For> each prop.

Features

  • #114 instantiateSymbolInto now mirrors both instance and static members (including nested static hierarchies), and no longer errors on static-only sources.

Breaking Changes

  • #127 Use a scheduler for effects. Effects are no longer run instantly but are queued to run after the current effect finishes. This significantly reduces effect calls due to coalescing multiple updates and also enables more recursive patterns.

@alloy-js/java

No changes, version bump only.

@alloy-js/json

No changes, version bump only.

@alloy-js/csharp

No changes, version bump only.

@alloy-js/typescript

Bug Fixes

  • #121 JS Doc comment close with */ instead of **/

Features

  • #117 Add nullish to TS Symbol flags
  • #125 Automatically enter a type context when inside of interface, function type, type declaration, etc. This allow referenced used in there to automatically add the type keyword in the import
  • #124 Add type prop on Reference component to mark this reference as a type only reference allowing imports to be specialized in type import

@alloy-js/create

No changes, version bump only.

@alloy-js/create@0.11.2

18 Apr 21:48

Choose a tag to compare

Make create version inference more robust

@alloy-js/create@0.11.1

18 Apr 21:31
99e6ba5

Choose a tag to compare

Fix create (#123)