Skip to content

Releases: regularjs/regular

release v0.5.2

26 Sep 03:44
Compare
Choose a tag to compare

v0.5.2 is a pure performance-related version, see #129 for detail

all update here .

release v0.5.0

25 Aug 10:22
Compare
Choose a tag to compare

v0.4.4

27 May 03:20
Compare
Choose a tag to compare

更新了以下部分 更新列表v.4.4

重要度排序

  1. 默认extend不再预解析模板, 这个可能在组件数量很大的情况下并且使用类似webpack的整体打包工具时,会引入不必要的组件解析成本。 解析默认放置在实例化阶段, 并且每个组件的模板只会被解析一次。不过你仍然可以通过Regular.config来控制它
Regular.config({
   PRECOMPILE: true
})
  1. 增加了两个事件 $afterConfig, $afterInit, 使得在使用mixin时,可以更好的插入到组件逻辑中,具体顺序请看testcase
 it('feature #82', function(){
 +      var i = 0;
 +      var mixins =  {
 +        events: {
 +          $afterConfig: function(){
 +            i++;
 +            expect(i).to.equal(3)
 +          },
 +          $config: function(){
 +            i++;
 +            expect(i).to.equal(1)
 +          },
 +          $init: function(){
 +            i++;
 +            expect(i).to.equal(4)
 +
 +          },
 +          $afterInit: function(){
 +            i++;
 +            expect(i).to.equal(6)
 +          }
 +        }
 +      }
 +
 +      var Component = Regular.extend({
 +        config: function(){
 +            i++;
 +            expect(i).to.equal(2)
 +        },
 +        init: function(){
 +            i++;
 +            expect(i).to.equal(5)
 +        }
 +      }).implement(mixins)
 +
 +      new Component();
 +
 +      expect(i).to.equal(6);
 +  })
  1. 初始化时, 父组件不再强制将自己的数据同步给子组件,这个允许子组件在config中准备自己的数据后,同步给父组件

v0.4.3

08 Dec 04:01
Compare
Choose a tag to compare

see milestone:v0.4.3 for details.

summary

new feature

  • #62 : stateman #list now support Object. you can also use #else or track by syntax. see testcase for help
  • #61 : precompile r-animation value if the value is a Expression. for Example: <div r-anim='on:enter; class: {animationClass}'>

bugfix

v0.4.2

20 Nov 07:41
Compare
Choose a tag to compare

see milestone:v0.4.2 for detail

0.4.0

29 Sep 08:40
Compare
Choose a tag to compare
  1. r-component for dynamic component <r-component is={componentName} props.... />

  2. if Express is const, now regularjs will pass a value but not a Expression like in previous version. value = {1} , 1 will pass to directive.

  3. $watch now accept function for watch complex value

    this.$watch(function(){
      return global.value
    }, function (gval, old_gval)) {
    
    })
  4. #list now support alternative syntax ( {#list list as item} {item.content} {#else} list is not exsits {/list})

  5. support track-by in list statement, performance is awesome now (http://leeluolee.github.io/js-repaint-perfs/).

    {#list list as item by item_index}  
    // content here won't be destroy, only updating 
    {/list}
  6. r-class r-style will add '{}' for you if you pass a String and missed '{}' for object literal ( "left: left + 'px'" is valid now)

  7. fix bugs
    #43
    #46
    #44
    #49
    #45
    #40
    #39

0.3.1 released

26 Feb 02:22
Compare
Choose a tag to compare
  1. add $outer property to make transcluded component easily, see demo like tab-pane. see issues at #26
  2. r-animation: command on now bind component event when the particular event is not a dom event. see testcase for detail
  3. fix some bug

Regularjs v0.3.0 released

27 Jan 07:07
Compare
Choose a tag to compare

v0.3.0 is the biggest release after v0.0.1 , we introduce serveral feature to help us using regularjs easily

  1. The default Syntax changed from {{}} to {} now. but you can return to old syntax use
    Regular.config({END: '}}', BEGIN: '{{'})
  2. Two-way filter is introduced . see reference for detail . It is used to control the flow from view back to model. you can combine it with r-model to realize some complex binding.
  3. prevent the safe error. like nested undefined error. for example {blog.title} won't throw' read title of undefined 'error now.
  4. Unified {#include} and transclude . see reference for detail. , you can use transclude content in {#include} now 。
  5. add component.$mute to disable a component . $inject(false) to remove component from document. you can use component.$mute(true).$inject(false) to compeletely remove a component from document now.
  6. ... and fixing some bug

fix #6 and accept [Element ] as the 'template'

11 Sep 02:29
Compare
Choose a tag to compare

fix some bug

04 Sep 09:16
Compare
Choose a tag to compare

fix some bug.

  1. r-model in list or if get uncorrect value. beacuse the dom is not construct ready