Skip to content

Latest commit

 

History

History
813 lines (383 loc) · 34.5 KB

CHANGELOG.md

File metadata and controls

813 lines (383 loc) · 34.5 KB

3.13.2 (2023-06-04)

Bug Fixes

  • support sanReferenceInfo in ts files (#168) (b9f0f32)

3.13.1 (2023-05-31)

Bug Fixes

  • renderOnly should backward compatible with old version (#167) (a989bb4)

3.13.0 (2023-04-18)

Bug Fixes

  • component attr string interpolation (3f0ffac)
  • use loader component with mark external (ee53d66)

Features

3.12.0 (2022-05-30)

Features

  • parse templateComponent (883cd24)
  • replace instance creation with object literal in template component (7a59118)
  • simplify the template component's rendering function (1955ddc)
  • support defineTemplateComponent (15c17ec)

5.4.0 (2022-05-09)

Features

  • add cache to getRenderer and getChildComponentClass (bf091b4)
  • remove map filter reduce foreach in runtime (a757013)

5.3.1 (2022-05-09)

Bug Fixes

  • update deps @semantic-release/commit-analyzer and @semantic-release/npm (cf75d47)

5.3.0 (2022-04-21)

Features

  • support custom output data (e3b8664)

5.2.0 (2022-04-18)

Bug Fixes

  • revert "computed 应该在 inited 之前调用" #144 (2b80c02)
  • 根组件有 if 指令时,没有输出数据 #146 (30b7f1c)

Features

  • support [] while calling data methods (30fd0dd), closes #145

5.1.0 (2022-04-02)

Bug Fixes

  • move define ComponentClass into if block (e7f1fd6)
  • 插值运算为 + 时,进行了局部转义,应为整体转义 (a6d4622)

Features

  • render 函数兼容多参数的情况 (ff24c26)
  • support auto require entry component (2ca6c32)

5.0.4 (2021-12-27)

Bug Fixes

  • emit comment 处理 interpExpr 的情况 (2644e55)

5.0.3 (2021-12-27)

Bug Fixes

  • emit comment 处理 interpExpr 的情况 (2fda583)

5.0.2 (2021-12-22)

Bug Fixes

  • dynamic component child with if (2dbc051)

5.0.1 (2021-12-15)

Bug Fixes

  • error using useProvidedComponentClass with componentLoader (7705623)
  • error when using useProvidedComponentClass with s-is (f08b821)
  • useProvidedComponentClass 时,传入复杂类,会报错 (d66d8a9)

5.0.0 (2021-12-06)

Bug Fixes

  • child components maybe undefined (3bdfec0)
  • ChildComponetClass 可能会重复 (d8e0fa0)
  • compile call expression twice got error (3404cd1)
  • compile call expression twice got error (0329a1d)
  • computed 应该在 inited 之前调用 (aa21455)
  • s-bind error if value is null or undefined #135 (e731d02)
  • toSource render params (631483e)
  • 使用字符串常量作为 COMPONENT_REFERENCE (3b48b37)
  • 修改 createInstanceFromClass,补全所有属性。 (d43b327)
  • 手动传入 class 时,使用 Object.create 创建 instance (2ad9def)

Features

  • customSSRFilePath 与 customComponentFilePath 参数中增加 tagName (158bdd3)
  • e2e 测试时,输出到每个case中output下的随机目录中 (4b7a5d9)
  • support dynamic tagName as normal html tags #134 (b3ac8a8)
  • 使用新版本的 san.d.ts (a9649f2)
  • 删除原始组件定义代码中无用的子组件定义 (1fc6d47)
  • 增加 lifeCycle 属性 (8d70ed6)
  • 支持渲染阶段使用手动传入的组件类 (1b66ed1)
  • 支持输入为 class 时,标记外部组件 (0537911)
  • 支持运行时改变子组件的路径 (aae9378)
  • 收敛 renderer 的参数 (c0e63f9)
  • 收敛 renderer 的参数 (47a0424)
  • 组件实例中增加 sourceSlots 属性。 (ae6c698)
  • 适配新版本的 san.d.ts (dcd29c2)

BREAKING CHANGES

  • a6deec81986575d687daab64e39e937fe69a24ae

5.0.0-beta.6 (2021-09-26)

Bug Fixes

  • compile call expression twice got error (15b950f)
  • compile call expression twice got error (916550e)

5.0.0-beta.5 (2021-09-26)

Bug Fixes

  • s-bind error if value is null or undefined #135 (a4efe27)

Features

  • support dynamic tagName as normal html tags #134 (729fee0)

5.0.0-beta.4 (2021-09-24)

Bug Fixes

  • computed 应该在 inited 之前调用 (1b3ac22)
  • 修改 createInstanceFromClass,补全所有属性。 (1388f06)

Features

  • 增加 lifeCycle 属性 (7d18e6f)
  • 组件实例中增加 sourceSlots 属性。 (ef57823)

5.0.0-beta.3 (2021-09-22)

Bug Fixes

  • 使用字符串常量作为 COMPONENT_REFERENCE (7434587)

5.0.0-beta.2 (2021-09-14)

Bug Fixes

  • 手动传入 class 时,使用 Object.create 创建 instance (dd37fe6)

5.0.0-beta.1 (2021-09-13)

Features

  • 收敛 renderer 的参数 (21b13a3)

BREAKING CHANGES

  • a6deec81986575d687daab64e39e937fe69a24ae

4.10.0-beta.1 (2021-09-13)

Bug Fixes

  • child components maybe undefined (9bc2bdc)
  • ChildComponetClass 可能会重复 (b6a04e5)
  • toSource render params (bc2a6cd)

Features

  • customSSRFilePath 与 customComponentFilePath 参数中增加 tagName (c04734c)
  • e2e 测试时,输出到每个case中output下的随机目录中 (66e1483)
  • 删除原始组件定义代码中无用的子组件定义 (2bff855)
  • 支持渲染阶段使用手动传入的组件类 (ac1d97e)
  • 支持输入为 class 时,标记外部组件 (0fe957d)
  • 支持运行时改变子组件的路径 (bf00b38)
  • 收敛 renderer 的参数 (a6deec8)

4.9.1 (2021-09-13)

Bug Fixes

4.9.0 (2021-09-09)

Bug Fixes

  • #119 (abf73e3)
  • binary, tertiary 表达式没有转义 (a3a69a2)
  • slot 内容为字符串时,可能会反解失败 (cbbeba5)

Features

  • 支持使用名称不为 san 的包 (b8ba4c2)

4.8.0 (2021-08-16)

Bug Fixes

  • render 函数使用未声明的变量 initData (ef4bb5e)

Features

4.7.1 (2021-08-09)

Bug Fixes

  • #117 兼容 ATextNode 直接为 interpolation 的情况 (7a2dd9a)

4.7.0 (2021-06-21)

Bug Fixes

Features

  • class-extend unit test (a4db92a)
  • comsrc 时,支持类的继承 (074c85e)

4.6.4 (2021-05-21)

Bug Fixes

  • template 表达式中不支持 % 运算符 (21d414f)

4.6.3 (2021-04-14)

Bug Fixes

  • 修复 initData() 返回值不是字面量时序列化结果不正确的问题, close #99 (17c2256)

4.6.2 (2021-04-06)

Bug Fixes

  • 修复 class 属性为 falsy 时直接取了默认值的问题 (609401f)

4.6.1 (2021-03-30)

Bug Fixes

  • 修复子组件未定义 attribute 时父组件无法指定的问题, close #94 (e6ece33)

4.6.0 (2021-03-22)

Features

  • 支持对象字面量形式的子组件 (dbcce56)

4.5.0 (2021-02-18)

Features

  • 支持 components 属性通过 self 调用自身组件 (41dda59)

4.4.2 (2021-02-05)

Bug Fixes

  • 修复 initData 初始值为 falsy 时会赋值成默认值的问题 (922e718)

4.4.1 (2021-01-27)

Bug Fixes

  • 修复属性值不支持 raw 的问题 (4874a94)

4.4.0 (2021-01-27)

Features

  • renderer AST 提供 SlotRenderCall 结构 (8ce69d1)

4.3.0 (2021-01-21)

Features

  • 支持配置正则移除模块引用 (b443052)

4.2.0 (2021-01-07)

Features

  • renderer AST 提供 GetRootCtxCall, ComponentReferenceLiteral, SlotRendererDefinition 结构 (3a26e0a)

4.1.1 (2020-12-18)

Performance Improvements

  • 语法结点采用 flyweight 设计 (7ae19b7)
  • 系统性地合并 html += 语句 (4f145b3)
  • 系统性地改 [] notation 为 . notation (2fed822)

4.1.0 (2020-12-07)

Features

  • 提供 emitHelpers 来单独产出运行时工具库 (0cd221f)
  • 转义 s-data 注释中的特殊字符,消除 XSS 隐患 (c29c22f)

4.0.3 (2020-11-20)

Bug Fixes

  • 修复 script 内容也错误地过了 HTML 转义的问题,见 #73 (3ea06a4)

4.0.2 (2020-11-11)

Bug Fixes

  • 添加 estree type (被 san-ssr export 了) 作为依赖 (e8d0f90)

4.0.1 (2020-11-09)

Bug Fixes

  • 所有 render 函数都统一通过 exports.sanSSRRenders 暴露出来 (74536c9)

4.0.0 (2020-11-05)

Documentation

  • demo/ 下添加更多用例 (17e19d2)

Features

BREAKING CHANGES

  • San 组件中,不再支持定义 getComponentType 方法
  • SanSourceFile ComponentInfo 类型有变化

3.0.1 (2020-08-27)

Bug Fixes

  • undefined/null 值应该输出为 "" (37e91b2)

3.0.0 (2020-08-04)

BREAKING CHANGES

  • 升级所有依赖,包括 ts-morph 版本(它也用于 ts2php)

2.2.4 (2020-07-31)

Bug Fixes

  • 修复输入为 TypeScript 时不调用构造函数的问题 (40bf654)

2.2.3 (2020-07-27)

Bug Fixes

  • 重命名 ComponentReference#relativeFilePath 为 specifier (adda06b)
  • 修复根元素为组件时,s-data 不正确的问题 (fd87852)

2.2.2 (2020-07-16)

Bug Fixes

2.2.1 (2020-07-10)

Bug Fixes

  • 只在合并数据时属性名转 camelCase (af4893f)

2.2.0 (2020-07-06)

Features

2.1.0 (2020-07-03)

Features

  • SanProject#compile({filePath, fileContent}) (4ed9cf1)

2.0.1 (2020-07-02)

Bug Fixes

  • more accurate type for parseSanSourceFile() (4078ad7)

2.0.0 (2020-07-02)

Features

  • TypeScript 输入静态分析;以 SourceFile 为粒度编译 (1000a05)

BREAKING CHANGES

    • ComponentTree 对象不再可用,只给出当前 SourceFile 的 Component 列表(平铺)
  • dependency resolver API 不再可用,比如 .getRuntimeDependencyDeclarations() 已经被移除

1.13.1 (2020-06-12)

Bug Fixes

1.13.0 (2020-06-02)

Features

1.12.0 (2020-05-29)

Features

1.11.2 (2020-05-18)

Bug Fixes

  • call SanData#get() without arguments, closes #57 (6b0e696)

1.11.1 (2020-05-14)

Bug Fixes

  • this.parentComponent for slots, see #52 (f23068f)

1.11.0 (2020-05-14)

Features

  • support for this.parentComponent, see #52 (480105c)

1.10.2 (2020-03-27)

Performance Improvements

  • reutilization of RendererCompiler (8269ae1)

1.10.1 (2020-03-19)

Bug Fixes

  • Component#getComponentType() not working (440e48f)
  • JSEmitter not flushing when fullText() called (d79fe95)

Performance Improvements

  • fix dot notation in dataAccess and callExpr (c708bcd)

1.10.0 (2020-03-04)

Features

  • data.removeAt() during SSR (30c929e)

1.9.7 (2020-03-02)

Bug Fixes

  • SanData#get() return undefined when not found (a54918f)

1.9.6 (2020-02-20)

Bug Fixes

1.9.5 (2020-02-20)

Bug Fixes

  • remove dependency ts2php (f930199)

1.9.4 (2020-02-19)

Bug Fixes

  • add /types in package.json#files (59d2c4f)

1.9.3 (2020-02-18)

Bug Fixes

  • remove console.log (a9393b6)
  • utils path in runtime emitter (6bf432e)

1.9.2 (2020-01-14)

Bug Fixes

1.9.1 (2020-01-10)

Bug Fixes

  • ensure data access with valid identifier (8284ddb)

1.9.0 (2020-01-08)

Features

  • filters#this point to component instance (034c295)

1.8.1 (2020-01-06)

Bug Fixes

  • not call inited in compile time, see #41 (8801964)

1.8.0 (2020-01-05)

Features

1.7.1 (2020-01-02)

Bug Fixes

1.7.0 (2020-01-02)

Features

  • not to calculate computed in compile time, see #42 (c0f4875)
  • SanProject#parseSanApp() (e628ab1)

1.6.0 (2020-01-02)

Features

1.5.3 (2019-12-26)

Bug Fixes

  • remove requiring test case impl on start (930c323)

1.5.2 (2019-12-26)

Bug Fixes

  • don't throw when tsconfig not specified (08aaa10)

1.5.1 (2019-12-26)

Bug Fixes

1.5.0 (2019-12-25)

Features

  • compileToSource, compileToRenderer, see #1 (b404dfa)

1.4.0 (2019-12-25)

Features

1.3.11 (2019-12-23)

Bug Fixes

  • common-js not caching the actual file path (aee90ea)

1.3.10 (2019-11-26)

Bug Fixes

  • add sourcefile before parseSanApp() (4ad19ed)

1.3.9 (2019-11-21)

Bug Fixes

1.3.8 (2019-11-21)

Bug Fixes

  • multiple parses for the same project (60424d1)

1.3.7 (2019-11-19)

Bug Fixes

  • not throw when tsconfig not defined (9ec8a18)

1.3.6 (2019-11-19)

Bug Fixes

1.3.5 (2019-11-15)

Bug Fixes

1.3.4 (2019-11-14)

Bug Fixes

  • format compilerOptions for ts2php, fixes #19 (cb2329d)
  • remove when noDataOutput is true, fixes #21 (c05ef7d)

1.3.3 (2019-11-13)

Bug Fixes

  • remove when noDataOutput is true, fixes #21 (4f5132c)

1.3.2 (2019-11-09)

Bug Fixes

  • format compilerOptions for ts2php, fixes #19 (279769a)

1.3.1 (2019-11-08)

Bug Fixes

  • temp fix for data.set call in method (e60a0ad)

1.3.0 (2019-11-08)

Features

  • configuable module content for CommonJS loader, fixes #12 (92e6b16)

1.2.1 (2019-11-07)

Bug Fixes

  • refactor non-constant property initializer for php, fixes #16 (b112ed5)

1.2.0 (2019-11-07)

Features

  • emit runtime/components/renderer only when targeted to php, close #2 (859966b)

1.1.2 (2019-11-06)

Bug Fixes

1.1.1 (2019-11-05)

Bug Fixes

  • remove IIFE for compatibility issues, see #9 (b3707c2)