Skip to content

Releases: BuilderIO/mitosis

@builder.io/mitosis@0.9.1

03 Apr 21:57
f7abcd9

Choose a tag to compare

Patch Changes

  • 329e754: Correctly handle Fragments in Builder ("Core:Fragment" component name not "Fragment")

@builder.io/mitosis@0.9.0

03 Apr 18:32
7262d03

Choose a tag to compare

Minor Changes

  • 8ad66fd: [angular]: Angular v17.2+ uses signals as a new feature.
    This allows the generator to match better with other targets (onUpdate becomes effect).

    This PR will rewrite the complete Angular generator to match all new features for Angular.

    You can access the new Angular generator by using the api="signals" inside your mitosis config e.g.:

    /**
     * @type {import('@builder.io/mitosis'.MitosisConfig)}
     */
    module.exports = {
      files: 'src/**',
      targets: ['angular', 'react', 'vue'],
      options: {
        angular: {
          api: 'signals',
        },
        react: {},
        vue: {},
      },
    };

    Furthermore, this PR will fix some issues with the angular output by using Babel instead of search and replace. Additionally, we use @if etc. to provide a better output.

    Some features are not yet implemented for signals api:

    • Spread props - <div {...rest}>{children}</div>

    • Dynamic components:

      export default function MyComponent(props) {
        const [obj, setObj] = useState(FooComponent);
      
        return <obj>{props.children}</obj>;
      }

    There are some new metadata properties for Angular if you use the signals api:

    useMetadata({
      angular: {
        signals: {
          writeable: ['disabled'],
          required: ['label'],
        },
      },
    });
    • writeable will use model() to enable two-way binding for the property.
    • required will convert the input to a required input.

Patch Changes

  • a65e72b: JSX generator properly escapes single character > and <

@builder.io/mitosis-cli@0.9.1

03 Apr 21:57
f7abcd9

Choose a tag to compare

Patch Changes

  • Updated dependencies [329e754]
    • @builder.io/mitosis@0.9.1

@builder.io/mitosis-cli@0.9.0

03 Apr 18:32
7262d03

Choose a tag to compare

Patch Changes

  • a65e72b: JSX generator properly escapes single character > and <
  • Updated dependencies [8ad66fd]
  • Updated dependencies [a65e72b]
    • @builder.io/mitosis@0.9.0

@builder.io/mitosis@0.8.0

31 Mar 20:48
6806535

Choose a tag to compare

Minor Changes

  • 0fe1fdb: Builder: add escapeInvalidCode flag, drop invalid bindings

@builder.io/mitosis-cli@0.8.0

31 Mar 20:48
6806535

Choose a tag to compare

Patch Changes

  • Updated dependencies [0fe1fdb]
    • @builder.io/mitosis@0.8.0

@builder.io/mitosis@0.7.6

28 Mar 20:26
5bbbc5e

Choose a tag to compare

Patch Changes

  • cb7be32: [all] export types.ts to enable @type comment for JS like this: /** @type {import('@builder.io/mitosis').ToReactOptions} */

@builder.io/mitosis@0.7.5

28 Mar 19:52
4a79266

Choose a tag to compare

Patch Changes

  • 5dd61e2: [Vue] Fix: use $tagName from Builder JSON when available
  • 0a49334: [stencil] Fix issue for EventEmitter using Parameters as type instead of ReturnType

@builder.io/mitosis-cli@0.7.6

28 Mar 20:26
5bbbc5e

Choose a tag to compare

Patch Changes

  • Updated dependencies [cb7be32]
    • @builder.io/mitosis@0.7.6

@builder.io/mitosis-cli@0.7.5

28 Mar 19:52
4a79266

Choose a tag to compare

Patch Changes

  • Updated dependencies [5dd61e2]
  • Updated dependencies [0a49334]
    • @builder.io/mitosis@0.7.5