File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ - 2.1.17
3
+ - Dropped support of loading query in obsolete Immutable string format used in versions 0.* (issue #254 )
2
4
- 2.1.16
3
5
- Fixed issues with export to Mongo and JsonLogic of queries with nested groups (#279 , #279 )
4
6
- 2.1.15
Original file line number Diff line number Diff line change 1
1
import Immutable , { fromJS , Map } from "immutable" ;
2
- const transit = require ( "transit-immutable-js" ) ;
3
2
import { validateTree } from "../utils/validation" ;
4
3
import { extendConfig } from "../utils/configUtils" ;
5
4
import { getTreeBadFields } from "../utils/treeUtils" ;
@@ -21,7 +20,7 @@ export const loadTree = (serTree) => {
21
20
} else if ( typeof serTree == "string" && serTree . startsWith ( '["~#iM"' ) ) {
22
21
//tip: old versions of RAQB were saving tree with `transit.toJSON()`
23
22
// https://github.com/ukrbublik/react-awesome-query-builder/issues/69
24
- return transit . fromJSON ( serTree ) ;
23
+ throw "You are trying to load query in obsolete serialization format (Immutable string) which is not supported in versions starting from 2.1.17" ;
25
24
} else if ( typeof serTree == "string" ) {
26
25
return _fromJS ( JSON . parse ( serTree ) ) ;
27
26
} else throw "Can't load tree!" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-awesome-query-builder" ,
3
- "version" : " 2.1.16 " ,
3
+ "version" : " 2.1.17 " ,
4
4
"description" : " User-friendly query builder for React. Demo: https://ukrbublik.github.io/react-awesome-query-builder" ,
5
5
"keywords" : [
6
6
" query-builder" ,
67
67
"prop-types" : " ^15.6.0" ,
68
68
"react-redux" : " ^5.0.0" ,
69
69
"redux" : " ^3.5.0" ,
70
- "sqlstring" : " ^2.3.1" ,
71
- "transit-immutable-js" : " ^0.7.0" ,
72
- "transit-js" : " ^0.8.846"
70
+ "sqlstring" : " ^2.3.1"
73
71
},
74
72
"peerDependencies" : {
75
73
"antd" : " >=4.0.0 <4.5.0" ,
Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ module.exports = {
46
46
"redux" : "Redux" ,
47
47
"immutable" : "Immutable" ,
48
48
"moment" : 'moment' ,
49
- "transit-js" : "Transit" ,
50
- "transit-immutable-js" : "TransitImmutable" ,
51
49
"sqlstring" : "sqlstring" ,
52
50
"classnames" : "classnames" ,
53
51
} ,
You can’t perform that action at this time.
0 commit comments