Skip to content

Commit d88bb12

Browse files
committed
✨ feat: let me release version 0.6.0
1 parent c0a3753 commit d88bb12

File tree

7 files changed

+89
-48
lines changed

7 files changed

+89
-48
lines changed

.publish/releases/0.6.0.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# 0.6.0 - 正常的世界
2+
3+
> 爱丽丝的求救声回响在黑川的耳畔,黑川装作什么也听不见,步入电梯,如同一尊麻木的雕像。电梯缓缓下降,楼层一个接一个地掠过,爱丽丝的呼声逐渐被电梯播放的旋律所淹没,如同雨滴融入大海,尽管最初泛起细微的波纹,最终却归于沉寂。“欢迎回到现实世界,”黑川对自己说,声音中带着不易察觉的颤抖,“一个超能力只存在于幻想小说中的世界。”
4+
5+
## Electron
6+
7+
现在,Milkio 可以用来创建桌面应用了,并且可以打包成 macOS、Windows、Linux 三个平台下的应用
8+
9+
这是使用 Electron 完成的,Electron 的主进程和渲染进程之间的通信很麻烦,通过引入 Milkio,很好地解决了这个问题
10+
11+
对于前端而言,我们默认为你安装了 [Astro](https://astro.build/),它一个支持主流的前端框架(如 Vue3、React、Svelte 等),并且默认会进行 SSG,这可以让你的应用运行速度更快
12+
13+
你可以通过运行 `bun create milkio` 后,选择 `electron (alpha)` 模板进行体验
14+
15+
不过你需要注意,这仍然处于 alpha 阶段,可能会有许多问题,未来也可能进行不兼容的改动
16+
17+
## Node
18+
19+
对于一些担忧 Bun 稳定性的用户,现在你可以使用 Node.js 来创建 Milkio 应用了
20+
21+
无论是在本机上开发,还是运行测试,都是使用 Node.js 完成的,不过,你在开发时,仍然需要 Bun,因为 Milkio 依赖 Bun,在你开发时完成自动生成以及许多辅助操作
22+
23+
你可以通过运行 `bun create milkio` 后,选择 `node (beta)` 模板进行体验
24+
25+
## VS Code 模板
26+
27+
修复了在 Windows 下的兼容性问题,现在 Windows 下也可以正常工作了
28+
29+
## 客户端
30+
31+
修复了在 Windows 下,客户端类型不会自动更新的问题,现在 Windows 下也可以正常工作了
32+
33+
## 性能改进
34+
35+
现在在 Windows 下,Milkio 的启动速度变得非常快
36+
37+
## 升级
38+
39+
```
40+
41+
```

generated/api-schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
*/
44

55
// api
6-
import type * as cookbook from '../src/apps/cookbook'
76
import type * as foo from '../src/apps/foo'
87
import type * as test from '../src/apps/test'
8+
import type * as cookbook from '../src/apps/cookbook'
99

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

1212
export default {
1313
apiValidator: _apiValidator,
1414
apiMethodsSchema: {
15-
'cookbook': () => ({ module: import('../src/apps/cookbook') }),
1615
'foo': () => ({ module: import('../src/apps/foo') }),
1716
'test': () => ({ module: import('../src/apps/test') }),
17+
'cookbook': () => ({ module: import('../src/apps/cookbook') }),
1818

1919
},
2020
apiMethodsTypeSchema: {
21-
'cookbook': undefined as unknown as typeof cookbook,
2221
'foo': undefined as unknown as typeof foo,
2322
'test': undefined as unknown as typeof test,
23+
'cookbook': undefined as unknown as typeof cookbook,
2424

2525
},
2626
apiTestsSchema: {

generated/cookbook.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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"}
1+
{"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"}

generated/products/api-validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* ⚠️This file is generated and modifications will be overwritten
33
*/
44
export default {
5-
generatedAt: 1719656060437,
5+
generatedAt: 1719656277689,
66
validate: {
7-
'cookbook': () => import('./apps/cookbook.ts'),
87
'foo': () => import('./apps/foo.ts'),
98
'test': () => import('./apps/test.ts'),
9+
'cookbook': () => import('./apps/cookbook.ts'),
1010
},
1111
};

0 commit comments

Comments
 (0)