-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support parse and stringify with comments #247
base: main
Are you sure you want to change the base?
feat: support parse and stringify with comments #247
Commits on Mar 13, 2024
-
feat: add support to save comments
parse(data, { preserveComments: true } ) parse(data, { commentsKey: ‘internalComments’, preserveComments: true } ) stringify(data, { preserveComments: true }) stringify(data, { commentsKey: ‘internalComments’, preserveComments: true } ) opt in to save comments when parsing and stringify save comments to internal object key upon parsing, add the option to save when stringifying data store comments internally upon parse and stringify to avoid conflicts when parsing and stringify multiple documents use platform eol include tests in default /test/foo.js
Configuration menu - View commit details
-
Copy full SHA for 3e3d9e2 - Browse repository at this point
Copy the full SHA 3e3d9e2View commit details -
chore: add test for preserving comments
Test option for reading (parse) and saving (stringify) comments in configuration file. Test option for reading (parse) and saving (stringify) comments in configuration file using a custom commentsKey.
Configuration menu - View commit details
-
Copy full SHA for 6e2190c - Browse repository at this point
Copy the full SHA 6e2190cView commit details -
docs: add option to preserve comments
Option for reading (parse) and saving (stringify) comments in configuration file.
Configuration menu - View commit details
-
Copy full SHA for 2e835c4 - Browse repository at this point
Copy the full SHA 2e835c4View commit details
Commits on Mar 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bd7f21e - Browse repository at this point
Copy the full SHA bd7f21eView commit details -
fix: code scan on commentsRegEx
Code scanning / CodeQL Polynomial regular expression used on uncontrolled data https://codeql.github.com/codeql-query-help/javascript/js-polynomial-redos/
Configuration menu - View commit details
-
Copy full SHA for 77b762a - Browse repository at this point
Copy the full SHA 77b762aView commit details -
fix: code scan on commentsRegEx
Code scanning / CodeQL Polynomial regular expression used on uncontrolled data https://codeql.github.com/codeql-query-help/javascript/js-polynomial-redos/
Configuration menu - View commit details
-
Copy full SHA for c199a7e - Browse repository at this point
Copy the full SHA c199a7eView commit details -
If line starts with comment character ; or # match line string and push line into line comment array
Configuration menu - View commit details
-
Copy full SHA for 79f6d72 - Browse repository at this point
Copy the full SHA 79f6d72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69c7264 - Browse repository at this point
Copy the full SHA 69c7264View commit details -
fix: remove option to specify commentsKey
Comments will be stored using the ‘comments’ key Removes security vulnerability
Configuration menu - View commit details
-
Copy full SHA for 9c83f30 - Browse repository at this point
Copy the full SHA 9c83f30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 040639c - Browse repository at this point
Copy the full SHA 040639cView commit details
Commits on Jul 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8ae5a06 - Browse repository at this point
Copy the full SHA 8ae5a06View commit details -
Configuration menu - View commit details
-
Copy full SHA for f17c0ee - Browse repository at this point
Copy the full SHA f17c0eeView commit details -
feat: store comments data as Symbol
parse/decode - store comments as a symbol on object stringify/encode - restore comments using preserveComments flag
Configuration menu - View commit details
-
Copy full SHA for 4213a94 - Browse repository at this point
Copy the full SHA 4213a94View commit details