Skip to content

Commit

Permalink
✨ feat: let me release version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akirarika committed Jun 29, 2024
1 parent c0a3753 commit d88bb12
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 48 deletions.
41 changes: 41 additions & 0 deletions .publish/releases/0.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 0.6.0 - 正常的世界

> 爱丽丝的求救声回响在黑川的耳畔,黑川装作什么也听不见,步入电梯,如同一尊麻木的雕像。电梯缓缓下降,楼层一个接一个地掠过,爱丽丝的呼声逐渐被电梯播放的旋律所淹没,如同雨滴融入大海,尽管最初泛起细微的波纹,最终却归于沉寂。“欢迎回到现实世界,”黑川对自己说,声音中带着不易察觉的颤抖,“一个超能力只存在于幻想小说中的世界。”
## Electron

现在,Milkio 可以用来创建桌面应用了,并且可以打包成 macOS、Windows、Linux 三个平台下的应用

这是使用 Electron 完成的,Electron 的主进程和渲染进程之间的通信很麻烦,通过引入 Milkio,很好地解决了这个问题

对于前端而言,我们默认为你安装了 [Astro](https://astro.build/),它一个支持主流的前端框架(如 Vue3、React、Svelte 等),并且默认会进行 SSG,这可以让你的应用运行速度更快

你可以通过运行 `bun create milkio` 后,选择 `electron (alpha)` 模板进行体验

不过你需要注意,这仍然处于 alpha 阶段,可能会有许多问题,未来也可能进行不兼容的改动

## Node

对于一些担忧 Bun 稳定性的用户,现在你可以使用 Node.js 来创建 Milkio 应用了

无论是在本机上开发,还是运行测试,都是使用 Node.js 完成的,不过,你在开发时,仍然需要 Bun,因为 Milkio 依赖 Bun,在你开发时完成自动生成以及许多辅助操作

你可以通过运行 `bun create milkio` 后,选择 `node (beta)` 模板进行体验

## VS Code 模板

修复了在 Windows 下的兼容性问题,现在 Windows 下也可以正常工作了

## 客户端

修复了在 Windows 下,客户端类型不会自动更新的问题,现在 Windows 下也可以正常工作了

## 性能改进

现在在 Windows 下,Milkio 的启动速度变得非常快

## 升级

```
bun i [email protected]
```
6 changes: 3 additions & 3 deletions generated/api-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
*/

// api
import type * as cookbook from '../src/apps/cookbook'
import type * as foo from '../src/apps/foo'
import type * as test from '../src/apps/test'
import type * as cookbook from '../src/apps/cookbook'

import _apiValidator from './products/api-validator.ts'

export default {
apiValidator: _apiValidator,
apiMethodsSchema: {
'cookbook': () => ({ module: import('../src/apps/cookbook') }),
'foo': () => ({ module: import('../src/apps/foo') }),
'test': () => ({ module: import('../src/apps/test') }),
'cookbook': () => ({ module: import('../src/apps/cookbook') }),

},
apiMethodsTypeSchema: {
'cookbook': undefined as unknown as typeof cookbook,
'foo': undefined as unknown as typeof foo,
'test': undefined as unknown as typeof test,
'cookbook': undefined as unknown as typeof cookbook,

},
apiTestsSchema: {
Expand Down
2 changes: 1 addition & 1 deletion generated/cookbook.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"cookbook":{"cookbook":{"params":"string & typia.tags.MinLength<3> & typia.tags.MaxLength<16>","cases":[]},"foo":{"params":"{ sad: string }","cases":[{"name":"Basic","handler":"\t\t\tconst { stream, getResult } = await test.executeStream({\n\t\t\t\tparams: { sad: 'UWU' }\n\t\t\t})\n\t\t\tconst xxx = getResult()\n\n\t\t\tfor await (const chunk of stream) {\n\t\t\t\tconsole.log('foo', chunk);\n\t\t\t}"}]},"test":{"title":"test","desc":"\ntest","params":"Params","cases":[{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"}]}},"readme":"# 你好世界\n\nHello world\n\n```sh\n世界你好 # enenen\n```\n\n","indexes":{"(root)":["cookbook","foo","test"]},"folderIndexes":{"(root)":[]},"generatedAt":"t!Date:2024-06-29T10:14:21.229Z"}
{"cookbook":{"foo":{"params":"{ sad: string }","cases":[{"name":"Basic","handler":"\t\t\tconst { stream, getResult } = await test.executeStream({\n\t\t\t\tparams: { sad: 'UWU' }\n\t\t\t})\n\t\t\tconst xxx = getResult()\n\n\t\t\tfor await (const chunk of stream) {\n\t\t\t\tconsole.log('foo', chunk);\n\t\t\t}"}]},"test":{"title":"test","desc":"\ntest","params":"Params","cases":[{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"},{"name":"Basic","handler":"\t\t\tconst result = await test.execute({ params: { foo: '123' } });\n\t\t\tif (!result.success) return test.reject(`The result was not success`);\n\t\t\tconsole.log(result);"}]},"cookbook":{"params":"string & typia.tags.MinLength<3> & typia.tags.MaxLength<16>","cases":[]}},"readme":"# 你好世界\n\nHello world\n\n```sh\n世界你好 # enenen\n```\n\n","indexes":{"(root)":["foo","test","cookbook"]},"folderIndexes":{"(root)":[]},"generatedAt":"t!Date:2024-06-29T10:17:58.737Z"}
4 changes: 2 additions & 2 deletions generated/products/api-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* ⚠️This file is generated and modifications will be overwritten
*/
export default {
generatedAt: 1719656060437,
generatedAt: 1719656277689,
validate: {
'cookbook': () => import('./apps/cookbook.ts'),
'foo': () => import('./apps/foo.ts'),
'test': () => import('./apps/test.ts'),
'cookbook': () => import('./apps/cookbook.ts'),
},
};
Loading

0 comments on commit d88bb12

Please sign in to comment.