Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSON storage limit utilities (#14)
* Add JSON storage limit utilities * Add handling for string length depending on encoding * Add handling for number sizes * Refactor code and add more tests * Add functional code improvements and tests * Add edge case handling and more complex tests * Refactor code, change approaches and improve tests * Minor code refactoring and additional test * Add one more unit test * Refactor tests and test data * Add skip feature for JSON size calculation * Add algorithm improvements and new test data * Minor refactoring of calculateStringSize function * Minor refactoring of isASCII function * Minor refactoring of skip sizing feature * Add unit tests for circular structures * Add test improvement with escape characters * Code refactoring * Code refactoring & improvements * Small code refactoring (review answer) * Another minor code refactoring (review answer) * Remove useless comment * Add more tests for serialization checks of functions and symbols * Add specific approach for handling Date objects * Add ECMA TC39 (test262) test scenarios and improve algorithm * Add another batch of ECMA TC39 (test262) test scenarios * Fix types in tests * Add optimized check for circular structures * Change approach for circular object detection * Improve circular object detection * Improve Date object sizing * Change type-check approach (if-else) * Add explanation comments for circular structure detection and improve tests
- Loading branch information