Skip to content

Commit

Permalink
📦 Publish Mitosis (#1656)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
builderio-bot and github-actions[bot] authored Jan 13, 2025
1 parent 341f281 commit 709fb42
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 51 deletions.
34 changes: 0 additions & 34 deletions .changeset/cold-dryers-scream.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/lovely-deers-change.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/yellow-coins-sip.md

This file was deleted.

40 changes: 40 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @builder.io/mitosis-cli

## 0.5.24

### Patch Changes

- 995eb95: [All] Add new `explicitBuildFileExtensions` to `MitosisConfig`. This allows users to manage the extension of some components explicitly. This is very useful for plugins:

```ts
/**
* Can be used for cli builds. Preserves explicit filename extensions when regex matches, e.g.:
* {
* explicitBuildFileExtension: {
* ".ts":/*.figma.lite.tsx/g,
* ".md":/*.docs.lite.tsx/g
* }
* }
*/
explicitBuildFileExtensions?: Record<string, RegExp>;

```

[All] Add new `pluginData` object to `MitosisComponent` which will be filled during build via cli. Users get some additional information to use them for plugins:

```ts
/**
* This data is filled inside cli to provide more data for plugins
*/
pluginData?: {
target?: Target;
path?: string;
outputDir?: string;
outputFilePath?: string;
};
```

- 341f281: [All] add additional `build` type for [Plugin](https://github.com/BuilderIO/mitosis/blob/main/packages/core/src/types/plugins.ts) to allow users to run plugins before/after cli build process
- Updated dependencies [995eb95]
- Updated dependencies [341f281]
- Updated dependencies [b387d21]
- @builder.io/[email protected]

## 0.5.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/mitosis-cli",
"version": "0.5.23",
"version": "0.5.24",
"description": "mitosis CLI",
"types": "build/types/types.d.ts",
"bin": {
Expand Down
41 changes: 41 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Change Log

## 0.5.24

### Patch Changes

- 995eb95: [All] Add new `explicitBuildFileExtensions` to `MitosisConfig`. This allows users to manage the extension of some components explicitly. This is very useful for plugins:

```ts
/**
* Can be used for cli builds. Preserves explicit filename extensions when regex matches, e.g.:
* {
* explicitBuildFileExtension: {
* ".ts":/*.figma.lite.tsx/g,
* ".md":/*.docs.lite.tsx/g
* }
* }
*/
explicitBuildFileExtensions?: Record<string, RegExp>;

```

[All] Add new `pluginData` object to `MitosisComponent` which will be filled during build via cli. Users get some additional information to use them for plugins:

```ts
/**
* This data is filled inside cli to provide more data for plugins
*/
pluginData?: {
target?: Target;
path?: string;
outputDir?: string;
outputFilePath?: string;
};
```

- 341f281: [All] add additional `build` type for [Plugin](https://github.com/BuilderIO/mitosis/blob/main/packages/core/src/types/plugins.ts) to allow users to run plugins before/after cli build process
- b387d21: [React, Angular] fix: issue with `state` inside `key` attribute in `Fragment`.

Example:

`<Fragment key={state.xxx + "abc"}...` was generated in React with `state.xxx` and in Angular without `this.`.

## 0.5.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "Builder.io",
"url": "https://www.builder.io"
},
"version": "0.5.23",
"version": "0.5.24",
"homepage": "https://github.com/BuilderIO/mitosis",
"main": "./dist/src/index.js",
"exports": {
Expand Down

0 comments on commit 709fb42

Please sign in to comment.