Skip to content

Commit 110f66d

Browse files
committed
fix: fix CR comments
Signed-off-by: zongz <[email protected]>
1 parent 7f5b310 commit 110f66d

File tree

2 files changed

+54
-20
lines changed
  • blog/2024-05-29-newsletter
  • i18n/zh-CN/docusaurus-plugin-content-blog/2024-05-29-newsletter

2 files changed

+54
-20
lines changed

blog/2024-05-29-newsletter/index.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Thanks to all contributors for their outstanding work over the past two weeks (2
4040

4141
- New module `difflib` added to support configuration comparison.
4242

43+
Add `difflib` as a dependency by `kcl mod add difflib`.
44+
4345
Through the `diff` method provided by the `difflib`, the configuration difference is output.
4446

4547
```python
@@ -87,6 +89,21 @@ data2 = {
8789
diff = difflib.diff(yaml.encode(data1), yaml.encode(data2))
8890
```
8991

92+
The expected output is the diff as below:
93+
94+
```
95+
+ postalCode: null
96+
+ phoneNumbers:
97+
+ - type: work
98+
+ number: '646-555-5678'
99+
- postalCode: '10001'
100+
- phoneNumbers:
101+
- - type: home
102+
- number: '212-555-1234'
103+
- - type: work
104+
- number: '646-555-5678'
105+
```
106+
90107
**🏄 Language Updates**
91108

92109
- KCL 0.9.0-beta.1 released.
@@ -123,16 +140,16 @@ For string literals, added hover highlights.
123140
- Fixed the unexpected error in the YAML Stream format import process of the KCL import tool.
124141

125142
- Package management tool updates.
126-
- - Added support for renaming dependencies to prevent name conflicts through the `mod add --rename` parameter and the `kcl.mod` file.
127-
- - Fixed the issue of missing dependencies in the `kcl.mod` file when adding a local file directory as a dependency.
128-
- - Added support for adding git third-party dependencies through branch names.
129-
- - Removed the invalid log output when updating dependencies.
130-
- - Added API support for writing `kcl.mod` and `kcl.mod.lock` files.
131-
- - Removed the process of requesting metadata when loading third-party dependencies.
132-
- - When packaging and uploading KCL, diagnostic information is output for the case of local dependencies in the KCL package.
133-
- - LFX term 1 task completed, the version management module mvp version merged into the main branch.
134-
- - Supported specifying files to be packaged and skipped through the `include` and `exclude` fields in the `kcl.mod` file.
135-
- - Removed the calculation checksum process of dependencies.
143+
- Added support for renaming dependencies to prevent name conflicts through the `mod add --rename` parameter and the `kcl.mod` file.
144+
- Fixed the issue of missing dependencies in the `kcl.mod` file when adding a local file directory as a dependency.
145+
- Added support for adding git third-party dependencies through branch names.
146+
- Removed the invalid log output when updating dependencies.
147+
- Added API support for writing `kcl.mod` and `kcl.mod.lock` files.
148+
- Removed the process of requesting metadata when loading third-party dependencies.
149+
- When packaging and uploading KCL, diagnostic information is output for the case of local dependencies in the KCL package.
150+
- LFX term 1 task completed, the version management module mvp version merged into the main branch.
151+
- Supported specifying files to be packaged and skipped through the `include` and `exclude` fields in the `kcl.mod` file.
152+
- Removed the calculation checksum process of dependencies.
136153

137154
**⛵️ API Updates**
138155

i18n/zh-CN/docusaurus-plugin-content-blog/2024-05-29-newsletter/index.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ image: /img/biweekly-newsletter.png
4040

4141
- 新增 difflib 三方库,支持比较配置差异。
4242

43+
通过 `kcl mod add difflib` 添加 `difflib` 依赖。
44+
4345
通过 `difflib` 三方库提供的 `diff` 方法,输出配置差异。
4446

4547
```python
@@ -87,6 +89,21 @@ data2 = {
8789
diff = difflib.diff(yaml.encode(data1), yaml.encode(data2))
8890
```
8991

92+
然后,对应配置的 diff 如下:
93+
94+
```
95+
+ postalCode: null
96+
+ phoneNumbers:
97+
+ - type: work
98+
+ number: '646-555-5678'
99+
- postalCode: '10001'
100+
- phoneNumbers:
101+
- - type: home
102+
- number: '212-555-1234'
103+
- - type: work
104+
- number: '646-555-5678'
105+
```
106+
90107
**🏄 语言更新**
91108

92109
- kcl 0.9.0-beta.1 新版本发布。
@@ -123,16 +140,16 @@ IDE 支持部分语法悬停高亮。
123140
- KCL Import 工具修复 YAML Stream 格式导入过程非预期的错误
124141

125142
- 包管理工具更新
126-
- - kcl 支持通过 mod add --rename 参数和 kcl.mod 文件中重命名依赖防止名称冲突。
127-
- - 修复了添加本地文件目录作为依赖时,kcl.mod 文件依赖丢失的问题。
128-
- - 支持通过分支名称添加 git 三方库。
129-
- - 移除了在更新依赖时输出的无效日志。
130-
- - 新增 API 支持写入 kcl.mod 和 kcl.mod.lock 文件。
131-
- - 移除了加载三方库过程中请求 metadata 过程。
132-
- - 在打包和上传 KCL 三方库时,针对 KCL 包中存在本地依赖的情况,输出诊断信息。
133-
- - LFX 1 期题目完成,版本管理模块 mvp 版本合并入 main 分支。
134-
- - 支持 kcl.mod 文件中通过 include 和 exclude 字段指定需要打包和跳过的文件。
135-
- - 移除本地计算三方库 checksum 过程。
143+
- kcl 支持通过 mod add --rename 参数和 kcl.mod 文件中重命名依赖防止名称冲突。
144+
- 修复了添加本地文件目录作为依赖时,kcl.mod 文件依赖丢失的问题。
145+
- 支持通过分支名称添加 git 三方库。
146+
- 移除了在更新依赖时输出的无效日志。
147+
- 新增 API 支持写入 kcl.mod 和 kcl.mod.lock 文件。
148+
- 移除了加载三方库过程中请求 metadata 过程。
149+
- 在打包和上传 KCL 三方库时,针对 KCL 包中存在本地依赖的情况,输出诊断信息。
150+
- LFX 1 期题目完成,版本管理模块 mvp 版本合并入 main 分支。
151+
- 支持 kcl.mod 文件中通过 include 和 exclude 字段指定需要打包和跳过的文件。
152+
- 移除本地计算三方库 checksum 过程。
136153

137154
**⛵️ API 更新**
138155

0 commit comments

Comments
 (0)