Skip to content

Releases: noear/snack3

Solon 3.2.4

23 Dec 07:41
Compare
Choose a tag to compare
  • 增加接口 ONode::getRawString()
  • 增加接口 ONode::getRawNumber()
  • 增加接口 ONode::getRawBoolean()
  • 增加接口 ONode::getRawDate()
  • 增加接口 Options::getFeatures()
  • 增加 @ONodeAttr 注解,取代旧的 @nodename
  • Options 取消功能特性代码,只留配置特性
  • 增加接口 ONode::options(ops->...);
  • 取消 Act0, Act1, Fun0, Fun4 临时功能接口
  • 增加更复杂的泛型传导

v3.2.0

12 Oct 04:03
Compare
Choose a tag to compare
  • Constants 更名为 Options,并优化细节

  • ONode::get(key) ,不再自动为文档树添加节点;如有需要改用 ONode::getOrNew(key)

  • 增加自定义编码与解码支持

import org.noear.snack.core.Options;

import java.util.Date;

public class DemoTest {
    public void test(UserDto user) {
        Options options = Options.def();
        options.addEncoder(Date.class, (data, node)->{
            node.val().setNumber(data.getTimes());
        });
        
        ONode oNode = ONode.loadObj(user, options);
    }
}

v3.1.17

21 May 03:13
Compare
Choose a tag to compare

Completely transformed to operations based on nonparametric constructs and fields. Avoid malicious action induced by data injection.

v3.1.15

18 May 23:44
Compare
Choose a tag to compare
  1. 修改OValue对数字的存储统一为Number