Skip to content

Releases: noear/snack3

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