Skip to content

issues Search Results · repo:BridgeAR/safe-stable-stringify language:JavaScript

Filter by

33 results
 (79 ms)

33 results

inBridgeAR/safe-stable-stringify (press backspace or delete to remove)

Array order is non-deterministic: const a = [1, 3, 2] console.log(stringify(a)) Results in: [1,3,2] Instead of: [1,2,3] This seems like an oversight, given that the library is used to compare JSON ...
  • Fmstrat
  • Opened 
    3 days ago
  • #55

I am assuming that setting { deterministic: true } has performance implications, vs just using { deterministic: false }. It would be good to know how measurable those are.
enhancement
good first issue
help wanted
  • punkpeye
  • 2
  • Opened 
    on Jan 18
  • #54

e.g. I want to check if a property value is an instance of Error, and use custom serialization.
  • punkpeye
  • 3
  • Opened 
    on Jan 2
  • #53

Hi, This is a bit of an odd one, and the issue very may lie somewhere other than this library. But I figured I d pass this along in case anybody has any ideas. If I run the following Node.js script (TypeScript ...
invalid
  • AndrewThorwall
  • 1
  • Opened 
    on Nov 21, 2024
  • #51

It would be good to at least opt-in into a safe toJSON and getter execution. In case the call triggers an error, the error message could be part of the serialized output.
enhancement
  • BridgeAR
  • Opened 
    on Aug 9, 2024
  • #50

Hi @BridgeAR, we have a use-case that requires to emit JSON objects with a specific deterministic key order. All keys should be ordered alphabetically, except for a single key which should always be emitted ...
  • flobernd
  • 3
  • Opened 
    on Jul 17, 2024
  • #48

Hello, I have noticed that when simply testing performance with console.time console.timeEnd, I see that safe-stable-stringify in most cases give a slower results with large object sizes. With a data ...
question
  • arataqueh
  • 2
  • Opened 
    on Apr 15, 2024
  • #47

The array used in the benchmark is an array of length 2, with the first entry as { length: 10 } and the second entry (_, i) = i. Is this intended? It seems like what you would want for the benchmark is ...
  • gmaclennan
  • 2
  • Opened 
    on Feb 9, 2024
  • #45

When using util.inspect(myObject)) circular references are named like ref 1, ref 2 etc... Would be great to have an option for named circular references, something like this: const stringify = configure({namedCircularReferences: ...
enhancement
  • valerii15298
  • 5
  • Opened 
    on May 13, 2023
  • #43

Try this code with both JSON.stringify and safe-stable-stringify: const keys: Array any = []; JSON.stringify([ a , b ], function (key: any, value: any) { keys.push(key); return value; }); console.log(jsonStringifyKeys); ...
bug
  • james-hu
  • 1
  • Opened 
    on Mar 19, 2023
  • #42
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub