Skip to content

Latest commit

 

History

History
377 lines (226 loc) · 13.3 KB

Changelog.md

File metadata and controls

377 lines (226 loc) · 13.3 KB

Release History

7.4.3 ( 2024-12-07)

  • Update a 'walk' library to version 5.x.x;
  • Dev dependencies updates;

7.4.2 ( 2024-01-30)

  • Dependencies updates. @peter.naydenov/walk to version 4.2.3;
  • Dev dependencies updates. Chai to version 5.0.3;
  • Dev dependencies updates. C8 to version 9.1.0;
  • Folder 'dist' was added to the project. Includes commonjs, umd and esm versions of the library;
  • Package.json: "exports" section was added. Allows you to use package as commonjs or es6 module without additional configuration;
  • Rollup was added to the project. Used to build the library versions;

7.4.1 ( 2024-01-10)

  • Dependencies updates. @peter.naydenov/walk to version 4.2.1;
  • Dev dependencies updates. Chai to version 5.0.0;
  • Dev dependencies updates. C8 to version 9.0.0;

7.4.0 ( 2023-11-3)

  • Types were added to the project;

7.3.0 ( 2023-10-19 )

  • Model function recognize a dt-model model. Result is equal to result of export;
  • Model function recognize a dt-object model. Returns a new dt-object;
  • Method extractList recognize a dt-model and dt-object models;
  • Method init recognize a dt-model model. Result is equal to result of load;
  • Update of @peter.naydenov/walk to version 4.2.0;

7.2.0 (2023-09-18)

  • Convertors recognize HTML DOM nodes. Makes a copy by reference;
  • Convertors recognize functions. Makes a copy by reference;
  • Model 'files' is not possible for functions and DOM nodes, so the value in the result will be string. For functions will be function:functionName and for DOM nodes will be htmlElement:elementName;

7.1.3 (2023-09-14)

  • Fix: extractList: Negative value is treated as property does not exist and returns null instead of real value;

7.1.2 (2023-09-12)

  • Fix: Dt-Storage method 'from' is not filtering the list if requested 'breadcrumbs' does not exist;
  • Bug: extractList: Negative value is treated as property does not exist and returns null instead of real value;

7.1.1 (2023-09-05 )

  • Fix: Multiple queries in same programming scope;
  • Bug: Dt-Storage method 'from' is not filtering the list if requested 'breadcrumbs' does not exist;
  • Bug: extractList: Negative value is treated as property does not exist and returns null instead of real value;

7.1.0 (2023-08-28)

  • Method extractList was added;
  • Fix: Method model recognizes 'files' as a model;
  • Fix: Tuple model if data is just an array is wrong;
  • Fix: Convertor to files shows 'root' in the beginning of the path;
  • Fix: Convertor to breadcrumbs shows 'root' in the beginning of the path;
  • Bug: Multiple queries in same programming scope;
  • Bug: Dt-Storage method 'from' is not filtering the list if requested 'breadcrumbs' does not exist;

7.0.0 (2023-07-15)

  • Method look has new arguments: functions next and finish;
  • To stop iteration on current dt-line return next();
  • To stop iteration on all dt-lines return finish();
  • Method insert was renamed to insertSegment;
  • Method listSegments was added to show list of all segments in dt-object;
  • Method insertSegment expect the incoming data as dt-object, but if is not - will assume it as a standard javascript object and will convert it to dt-object automatically;
  • Method insertSegment can recognize a dt model object.
  • Bug: Method model doesn't recognize 'files' as a model;
  • Bug: Tuple model if data is just an array is wrong;
  • Bug: Convertor to files shows 'root' in the beginning of the path;
  • Bug: Convertor to breadcrumbs shows 'root' in the beginning of the path;
  • Bug: Multiple queries in same programming scope;
  • Bug: Dt-Storage method 'from' is not filtering the list if requested 'breadcrumbs' does not exist;

6.0.0 (2023-05-12)

  • Version 5 is full rethinking of the idea and rewrite from scratch;
  • Simplified API interface;
  • New internal data-model;
  • Multiple data inserts;
  • Predefined and custom filters for faster data scan;
  • Model and query functions to shape the results;

4.0.7 (2022-03-03)

  • Library '@peter.naydenov/walk' was included as a dependency;
  • Cleaning: Method 'help.generateObject' was removed. Not in use anymore;
  • Cleaning: Method 'help.generateList' was removed. Not in use anymore;
  • Cleaning: Old convertor file 'convertors_oldVersion.js' was removed;
  • Refactoring: Convertor 'standard' is using 'walk';
  • Fix: Initialization with 'tuples' doesn't work;

4.0.6 (2022-03-03)

  • Fix: Sometimes empty array structures are converted to empty objects;
  • Bug: Initialization with 'tuples' doesn't work;

4.0.5 (2022-03-01)

  • Fix: Arrays are recognized as objects. Object members of arrays are recognized as arrays;
  • Bug: Sometimes empty array structures are converted to empty objects;
  • Bug: Initialization with 'tuples' doesn't work;

4.0.4 (2022-03-01)

  • Fix: Convertor for 'midFlat' is loosing empty data-structures;
  • Fix: Boolean values "true" are converted to 1(number);
  • Fix: Operation "add" treats numbers as string;
  • Fix: Convertor from 'breadcrumbs' breaks;
  • Bug: Arrays are recognized as objects. Object members of arrays are recognized as arrays;
  • Bug: Initialization with 'tuples' doesn't work;

4.0.3 (2022-02-23)

  • Fix: Initialize with breadcrumbs is not working at all;
  • Bug: Convertor for 'midFlat' is loosing empty data-structures;
  • Bug: Boolean values "true" are converted to 1(number);
  • Bug: Operation "add" treats numbers as string;
  • Bug: Convertor from 'breadcrumbs' breaks;
  • Bug: Initialization with 'tuples' doesn't work;

4.0.2 (2022-02-21)

  • Fix: Methods 'keep' and 'remove' received flat keys instead of breadcrumbs keys. If need a flat key, its still available as third argument.
    .remove ( (value, breadcrumbKey, flatKey)=> {
                                // ... set your filter here...
                    })
  • Bug: Initialize with breadcrumbs is not working at all;
  • Bug: Convertor for 'midFlat' is loosing empty data-structures;
  • Bug: Boolean values "true" are converted to 1(number);
  • Bug: Operation "add" treats numbers as string;
  • Bug: Convertor from 'breadcrumbs' breaks;
  • Bug: Initialization with 'tuples' doesn't work;

4.0.1 (2021-04-08)

  • Fix: Methods "add/update/overwrite/combine/append/prepend" expect by default data-type 'standard'. Should be a 'flat' data-type. This update is coming as major release because may require some changes. Everything else is according documentation for version 3.x.x;
  • Bug: Methods 'keep' and 'remove' received flat keys instead of breadcrumbs keys
  • Bug: Initialize with breadcrumbs is not working at all;
  • Bug: Initialization with 'tuples' doesn't work;
  • Bug: Convertor for 'midFlat' is loosing empty data-structures;
  • Bug: Boolean values "true" are converted to 1(number);
  • Bug: Operation "add" treats numbers as string;
  • Bug: Convertor from 'breadcrumbs' breaks;

3.1.0 ( 2021-03-25)

  • Methods "export" and "exportAll" were added;
  • [] Bug: Methods "add/update/overwrite/combine/append/prepend" expect by default data-type 'standard'. Should be a 'flat' data-type;

3.0.2 ( 2021-02-28 )

  • Fix: Convert to 'standard' fails on some objects;
  • [] Bug: Methods "add/update/overwrite/combine/append/prepend" expect by default data-type 'standard'. Should be a 'flat' data-type;

3.0.0 ( 2021-02-25 )

  • Complete rewrite of the library;
  • Dt-toolbox is using . Consider this for support of old browsers;
  • Export API was removed. Methods were moved to main API or removed;
  • Method that is searching for string in keys was renamed from 'folder' to 'find';
  • Method 'folder' works like 'space' in previous versions. That makes more sense...;
  • Method 'space' is depricated;
  • New method 'purify'. Removes empty structures from the selection;
  • Method 'loadFast' was depricated. Use 'load' instead;
  • Added support for different data-models: standard, tuples, flat, midFlat, breadcrumbs, files;
  • New method 'flatten' was added;
  • New method 'mix' was added;
  • New method 'keyPrefix' was added;
  • New method 'replace' was added;
  • New method 'combine' was added;
  • All methods expect data as 'flat'. Other models should be converted or provide an option/model param;
  • [] Bug: Convert to 'standard' fails on some objects;
  • [] Bug: Methods "add/update/overwrite/combine/append/prepend" expect by default data-type 'standard'. Should be a 'flat' data-type;

2.1.2 (2019-09-12)

  • Fix: Similar namespaces bug - Overwrite of object properties values. Ex: "s1" and "s11";
  • Browser version was updated;

2.1.1 (2019-06-06)

  • Fix: Build a ST object with repeating structure;
  • Browser version was updated;
  • Bug: Similar namespaces bug - Overwrite of object properties values. Ex: "s1" and "s11";

2.1.0 (2019-06-02)

  • Modify methods ( add/update/overwrite ) can receive DT data model;
  • Browser version was updated;
  • Bug: Build a ST object with repeating structure;
  • Bug: Similar namespaces bug - Overwrite of object properties values. Ex: "s1" and "s11";

2.0.2 (2019-05-30)

  • Fix: ST Build regression with boolean values;
  • Browser version was updated;
  • Bug: Build a ST object with repeating structure;
  • Bug: Similar namespaces bug - Overwrite of object properties values. Ex: "s1" and "s11";

2.0.1 (2019-05-30)

  • Fix: ST Build (lib._build) was refactored;
  • Improvment: Method 'lib._toFolderFiles' has array of counters in sync with duplications;
  • Browser version was updated;
  • Bug: ST Build regression with boolean values;
  • Bug: Build a ST object with repeating structure;
  • Bug: Similar namespaces bug - Overwrite of object properties values. Ex: "s1" and "s11".;

2.0.0 (2017-12-28)

  • Breaking change: Method ‘modifyKeys’ argument should be a function;
  • Test cases updates;
  • Browser version was updated;
  • Problems with building heavy ST structures;
  • Build a wrong ST object when similar namespaces are available. Example: "sample1" and "sample11";

1.8.0 (2017-12-28)

  • Method 'remove' has new argument-key. Evaluate the key name;
  • Method 'keep' has new argument-key. Evaluate the key name;
  • Test coverage - 100%;

1.7.0 (2017-12-24)

  • Browser version is available;
  • Dependencies updates ( Mocha, chai );
  • Istambul coverage tool was added;
  • Some minor project structure changes;
  • Unit tests updates for Mocha v.4;

1.6.0 (2017-04-22)

  • ExportAPI method keyValue returns a key-value string;

1.5.0 (2017-04-17)

  • ExportAPI method 'cut' will cut out number of key elements;
  • ExportAPI method 'file' will convert dt data to a 'file' model;
  • Fix: ExportAPI method 'map' could break the app if callback function does not return a string;

1.4.0 (2017-03-28)

  • Fix: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method 'map' could break the app if callback function does not return a string;

1.3.0 (2017-02-19)

  • API method 'invert' - selector. Invert existing selection;
  • Warning: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method 'map' could break the app if callback function does not return a string;

1.2.0 (2017-02-16)

  • ExportAPI method 'list'. Returns findings in an array.
  • API method 'deepArray' - selector
  • API method 'deepObject' - selector
  • API method 'loadFast' - load DT data without meta information calculation.
  • ExportLib method map is 'root/' aware.
  • Warning: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method 'map' could break the app if callback function does not return a string;

1.1.2 (2017-02-05)

  • Fix: ExportAPI method map has index argument;
  • ExportAPI method map is not aware of 'root/'. Add 'root/' explicitly;
  • Warning: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method 'map' could break the app if callback function does not return a string;

1.1.1 (2017-02-04)

  • Fix: Method empty now works as it was intended;
  • Method spreadAll was added and could be used instead the chain: .select().all().spread()
  • ExportAPI method map is not aware of 'root/'. Add 'root/' explicitly;
  • Error: ExportAPI method map has no index argument;
  • Warning: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method 'map' could break the app if callback function does not return a string;

1.1.0

  • Method empty returns empty DT object;
  • Compare method were added: identical, change, same, different, missing
  • Error: Method empty is actually an object;
  • Error: ExportAPI method map has no index argument;
  • Warning: Very large files can cause 'stack overflow';
  • Warning: ExportAPI method map is not aware of 'root/'. Add 'root/' explicitly;
  • Warning: ExportAPI method map could break the app if callback function does not return a string;

1.0.2 (2017-01-14)

  • Bug fix - init with files;

1.0.0 (2017-01-14)

  • Initial code;
  • Test package;
  • Documentation;