Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit d5b7998

Browse files
committed
Idempotent -> deterministic.
1 parent 1470f5a commit d5b7998

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ once (it also simplifies the wrapper code).
225225

226226
[pull request]: https://github.com/jo/couchdb-compile/pull/29
227227

228-
### Idempotent output
228+
### Deterministic output
229229

230230
When generating JSON output, [couchdb-compile] internally uses [JSON.stringify],
231231
which does not guarantee the order of properties in the output. If the resulting
@@ -234,7 +234,8 @@ JSON is committed to a version control repository, this will sometimes produce
234234
meaningful way).
235235

236236
*CouchDB builder* utilizes [json-stable-stringify] instead of [JSON.stringify],
237-
to ensure that its output is idempotent (always the same, given the same input).
237+
to ensure that its output is deterministic (always the same, given the same
238+
input).
238239

239240
[json-stable-stringify]: https://github.com/substack/json-stable-stringify
240241

0 commit comments

Comments
 (0)