@lovrabet/sdk 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -353,6 +353,49 @@ const client = createClient({ token });
353
353
 
354
354
  ## 📝 What's New
355
355
 
356
+ ### v1.1.14 (2025-10-11)
357
+
358
+ **新增功能 (New Features):**
359
+
360
+ - ✨ **OpenAPI Create/Update 支持** - OpenAPI 模式现已支持完整的 CRUD 操作
361
+ ```typescript
362
+ // 创建记录
363
+ const newUser = await client.models.users.create({
364
+ name: "John Doe",
365
+ email: "john@example.com",
366
+ });
367
+
368
+ // 更新记录
369
+ const updated = await client.models.users.update(userId, {
370
+ name: "Jane Doe",
371
+ });
372
+ ```
373
+ - 认证信息自动添加到请求头(X-Token、X-Time-Stamp)
374
+ - 请求体只包含业务数据(`appCode`、`datasetCode`、`paramMap`)
375
+ - 与查询接口保持一致的架构设计
376
+
377
+ - 🐛 **调试日志功能** - 新增 `debug` 选项,便于开发调试
378
+ ```typescript
379
+ const client = createClient({
380
+ appCode: "your-app",
381
+ accessKey: process.env.ACCESS_KEY,
382
+ options: {
383
+ debug: true, // 启用调试日志
384
+ },
385
+ });
386
+ ```
387
+ - 在控制台输出完整的 HTTP 请求信息(URL、Headers、Body)
388
+ - 便于排查接口调用问题
389
+ - 推荐仅在开发环境启用
390
+
391
+ **文档更新 (Documentation):**
392
+
393
+ - 📚 新增 [调试指南](./DEBUG.md) - 详细说明如何使用调试功能
394
+ - 📚 更新 OpenAPI 文档 - 添加 create/update 接口说明和软删除建议
395
+ - 📚 优化 CSRF 防护说明 - 明确应用层与 API 层的职责分离
396
+
397
+ ---
398
+
356
399
  ### v1.1.11 (2025-10-09)
357
400
 
358
401
  **新增功能 (New Features):**