Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 Publish Mitosis #1658

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

📦 Publish Mitosis #1658

wants to merge 1 commit into from

Conversation

builderio-bot
Copy link
Contributor

@builderio-bot builderio-bot commented Jan 14, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@builder.io/[email protected]

Patch Changes

@builder.io/[email protected]

Patch Changes

  • af43f50: [All] Refactored useMetadata hook to enable import resolution instead of simple JSON5 parsing.

    You could use a normal JS Object and import it inside your *.lite.tsx file like this:

    // data.ts
    
    export const myMetadata: Record<string, string | number> = {
      a: 'b',
      c: 1,
    };
    // my-button.lite.tsx
    import { useMetadata } from '@builder.io/mitosis';
    import { myMetadata } from './data.ts';
    
    useMetadata({
      x: 'y',
      my: myMetadata,
    });
    
    export default function MyButton() {
      return <button></button>;
    }
  • 20ad8dc: [angular]: Fix issue with events forced to become toLowerCase().

    Based on choosing-event-names custom events are camelCase.
    DOM events are always lower-cased for Angular components.

    Checkout event-handlers.ts for a list of all events that are automatically lower-cased. Everything else will be treated as a custom event and therefore camelCased.

    If you need some other event to be lower-cased you can use useMetadata.angular.nativeEvents:

    import { useMetadata } from '@builder.io/mitosis';
    
    useMetadata({
      angular: {
        nativeEvents: ['onNativeEvent'],
      },
    });
    
    export default function MyComponent(props) {
      return (
        <div>
          <input onNativeEvent={(event) => console.log(event)} />
          Hello!
        </div>
      );
    }

Copy link

cloudflare-workers-and-pages bot commented Jan 14, 2025

Deploying mitosis with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa8dab8
Status: ✅  Deploy successful!
Preview URL: https://afa4c8d4.mitosis-9uh.pages.dev
Branch Preview URL: https://changeset-release-main.mitosis-9uh.pages.dev

View logs

Copy link

nx-cloud bot commented Jan 14, 2025

View your CI Pipeline Execution ↗ for commit aa8dab8.

Command Status Duration Result
nx e2e @builder.io/e2e-app ✅ Succeeded 3m 6s View ↗
nx run-many --target test ✅ Succeeded 4m 32s View ↗
nx run-many --target build --exclude @builder.i... ✅ Succeeded 3m 40s View ↗
nx build @builder.io/mitosis-site ✅ Succeeded 2m 19s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-14 18:45:37 UTC

@builderio-bot builderio-bot force-pushed the changeset-release/main branch from 8254ca7 to aa8dab8 Compare January 14, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant