Skip to content

Commit a26e16a

Browse files
committed
9.0.6
1 parent a725522 commit a26e16a

File tree

4 files changed

+56
-51
lines changed

4 files changed

+56
-51
lines changed

CHANGES.md

Lines changed: 53 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
(nothing yet)
66

77

8-
## json 9.0.5
8+
## 9.0.6
9+
10+
- [issue #107] Fix man page installation with `npm install -g json`.
11+
12+
13+
## 9.0.5
914

1015
- [issue #112] Improve streaming (json -ga) performance for very long lines. For
1116
example, using a 35 MB JSON object on one line gave a 50x speed improvement.
@@ -14,29 +19,29 @@
1419
former case is expected to be much more common, and the latter may take a
1520
slight performance hit from this change.
1621

17-
## json 9.0.4
22+
## 9.0.4
1823

1924
- [issue #108] Fix a crash on `json foo.bar` if "foo" is null.
2025

2126

22-
## json 9.0.3
27+
## 9.0.3
2328

2429
- [issue #82] Fix a race in `-I/--in-place` temp file creation.
2530
By https://github.com/inator
2631

2732

28-
## json 9.0.2
33+
## 9.0.2
2934

3035
- [pull #72] Correct examples in docs for conditional filtering.
3136

3237

33-
## json 9.0.1
38+
## 9.0.1
3439

3540
- [issue #71] Support `-o json-tab` and `-o jsony-tab` for TAB (i.e. `\t`)
3641
indentation of emitted JSON.
3742

3843

39-
## json 9.0.0
44+
## 9.0.0
4045

4146
- [issue #52] Fix termination on EPIPE in some cases.
4247

@@ -117,26 +122,26 @@
117122
performance improvements and semantic changes.
118123

119124

120-
## json 8.0.0
125+
## 8.0.0
121126

122127
- [pull #70] Move from 'jsontool' to 'json' in the npm registry! Thanks
123128
to <https://github.com/zpoley> for graciously giving up the name, and to
124129
@izs for driving. `npm install json` FTW. Here after `jsontool` will
125130
stagnate at version 7.0.2.
126131

127132

128-
## json 7.0.2
133+
## 7.0.2
129134

130135
- [issue #68] Fix `--keys, -k` handling in streaming mode, i.e. `json -gak`.
131136

132137

133-
## json 7.0.1
138+
## 7.0.1
134139

135140
- [pull #60, issue #59] Fix not having a `json` on the PATH from
136141
'npm install -g jsontool'.
137142

138143

139-
## json 7.0.0
144+
## 7.0.0
140145

141146
- [issue #49] New `-C CODE` and `-E CODE` options to replace `-c CODE` and `-e
142147
CODE`. The new options can be **10x or more faster**. An example processing
@@ -319,7 +324,7 @@
319324
npm 1.3.3 work.
320325

321326

322-
## json 6.0.0
327+
## 6.0.0
323328

324329
- [Backwards incompatibility, issue #55] Drop support for grouping of adjacent
325330
arrays (via `-g`, `--group`) **separated by no space**:
@@ -375,29 +380,29 @@
375380
taken in this tool.
376381

377382

378-
## json 5.1.3
383+
## 5.1.3
379384

380385
- Fix an issue with option parsing that resulted in this failing:
381386

382387
json -f foo.json -- -1.someKey
383388

384389

385390

386-
## json 5.1.2
391+
## 5.1.2
387392

388393
- [pull #43] Add '-n' as a short alias for '--validate'. (By Bill Pijewski,
389394
github.com/pijewski).
390395

391396

392-
## json 5.1.1
397+
## 5.1.1
393398

394399
- [issue #42] Fix an edge case where a blank line would be emitted for
395400
`... | json -ga -c COND` where the `COND` resulted in no matches.
396401
- [issue #40] Improve "Lookups" section of docs to show how to lookup
397402
non-identifier keys.
398403

399404

400-
## json 5.1.0
405+
## 5.1.0
401406

402407
- [pull #39, issue #34] `json -ga` streams. (Largely by Fred Kuo, github.com/fkuo)
403408
This means you can use `json` with an input stream of JSON objects. E.g.:
@@ -415,7 +420,7 @@
415420
a stream of arrays. Such are the typical use cases I've encountered.
416421

417422

418-
## json 5.0.0
423+
## 5.0.0
419424

420425
- [**backward incompatible**, issue #35] Special case the output for **a single
421426
lookup AND JSON output** (i.e. `-j` or `-o json*`) to only output the value
@@ -464,13 +469,13 @@
464469

465470

466471

467-
## json 4.0.1
472+
## 4.0.1
468473

469474
- [issue #36] Turn off coloring for inspect output (`json -i`, `json -o
470475
inspect`) if stdout is not a TTY.
471476

472477

473-
## json 4.0.0
478+
## 4.0.0
474479

475480
- Add `--validate` option to just validate (no processing and output)
476481

@@ -531,7 +536,7 @@
531536
Minor change. Tabs are evil.
532537

533538

534-
## json 3.3.0
539+
## 3.3.0
535540

536541
- Add `-k|--keys` option to output the input objects keys:
537542

@@ -549,15 +554,15 @@
549554
enough now to not bother.
550555

551556

552-
## json 3.2.0
557+
## 3.2.0
553558

554559
- Support negative array indeces (a la Python list indeces), e.g.:
555560

556561
$ echo '["a", "b", "c"]' | json -- -1
557562
c
558563

559564

560-
## json 3.1.2
565+
## 3.1.2
561566

562567
- Update man page and move bulk examples from README to man page. Use ronn (the
563568
ruby one) instead of ronnjs: better and more reliable formatting. Add 'make
@@ -566,12 +571,12 @@
566571
- [issue #31] Fix error message for `json -o`.
567572

568573

569-
## json 3.1.1
574+
## 3.1.1
570575

571576
- [issue #32] Fix '-D' option processing so `json -D/` works (no space).
572577

573578

574-
## json 3.1.0
579+
## 3.1.0
575580

576581
- [pull #29] Add '-D' option to set a delimiter for lookups (default is '.'),
577582
so that this example works:
@@ -582,7 +587,7 @@
582587
By Yaniv Aknin.
583588

584589

585-
## json 3.0.3
590+
## 3.0.3
586591

587592
- [issue #30] Fix lookup strings with multiple double-quotes.
588593
- [issue #28] Don't error on a multi-level lookup where one of the components
@@ -591,17 +596,17 @@
591596
$ echo '{"foo": "bar"}' | json not_foo.bar
592597

593598

594-
## json 3.0.2
599+
## 3.0.2
595600

596601
- [issue #27] Fix issue handling multi-level lookups (e.g. 'json foo.bar').
597602

598603

599-
## json 3.0.1
604+
## 3.0.1
600605

601606
- Fix a bogus 'json' dep.
602607

603608

604-
## json 3.0.0
609+
## 3.0.0
605610

606611
- Switched to json 3.x dev on master. "2.x" branch created for any
607612
necessary 2.x releases. See the
@@ -649,14 +654,14 @@
649654
uno dos
650655

651656

652-
## json 2.2.1
657+
## 2.2.1
653658

654659
- Hack workaround for issue #24 to not get a spurious "process.stdout cannot be
655660
closed" from current node 0.6 versions. Note: currently this guard is only
656661
applied for node v0.6.0..v0.6.8 inclusive.
657662

658663

659-
## json 2.2.0
664+
## 2.2.0
660665

661666
- New "-e CODE" option to execute the given code on the input object; or,
662667
if '-a/--array' is given, then on each item in the input array. Execution
@@ -668,7 +673,7 @@
668673
}
669674

670675

671-
## json 2.1.0
676+
## 2.1.0
672677

673678
- Improve error message when input is not JSON to include context and line
674679
and column position. This is implemented using a JSON parser from
@@ -681,7 +686,7 @@
681686
[1,,2]
682687

683688

684-
## json 2.0.3
689+
## 2.0.3
685690

686691
- Auto-arrayification: Drop support for arrayifying an array adjacent to
687692
an object. I.e. only arrayify adjacent objects *or* adjacent arrays.
@@ -726,18 +731,18 @@
726731
- Fix stdout flushing in some cases.
727732

728733

729-
## json 2.0.2
734+
## 2.0.2
730735

731736
- Add node v0.6 support. Drop v0.2 and v0.3 support.
732737

733738

734-
## json 2.0.1
739+
## 2.0.1
735740

736741
- [issue#23] Fix output in '-a|--array' mode if one or more keys don't
737742
exist in one or more of the array items.
738743

739744

740-
## json 2.0.0
745+
## 2.0.0
741746

742747
- '-o | --output MODE' support. Supported modes:
743748

@@ -807,13 +812,13 @@
807812
no false matches inside JS strings.
808813

809814

810-
## json 1.4.1
815+
## 1.4.1
811816

812817
- [issue #9] Gracefully handle EPIPE (i.e. stdout being closed on json before
813818
it is finished writing).
814819

815820

816-
## json 1.4.0
821+
## 1.4.0
817822

818823
- [issue #19] Allow multiple lookup arguments:
819824

@@ -825,25 +830,25 @@
825830
`jsontool.processDatum` and `jsontool.processDatumExperimental`.
826831

827832

828-
## json 1.3.4
833+
## 1.3.4
829834

830835
- [issue #18] Fix `json --version` for standalone mode again (was broken in json 1.3.3).
831836

832837

833-
## json 1.3.3
838+
## 1.3.3
834839

835840
- WARNING: `json --version` is broken when running outside the source (or npm
836841
install'd) tree. I.e. this is a bad release for standalone.
837842
- [issue #17] Ensure stdout is flushed on exit.
838843

839844

840-
## json 1.3.2
845+
## 1.3.2
841846

842847
- [issue #16] Fix to use `<regex object>.exec` instead of using the regex
843848
object as a function -- no longer allowed in the v8 used in node v0.5.x.
844849

845850

846-
## json 1.3.1
851+
## 1.3.1
847852

848853
- Make "jsontool" require'able as a module. For example, you can now:
849854

@@ -869,7 +874,7 @@
869874
alias json='.../json/lib/jsontool.js'
870875

871876

872-
## json 1.3.0
877+
## 1.3.0
873878

874879
- package.json and publish to npm as "jsontool" ("json" name is taken)
875880
- Add experimental support for '*' in the lookup. This will extract all
@@ -904,28 +909,28 @@
904909
- Add '-x|--experimental' option to turn on incomplete/experimental features.
905910

906911

907-
## json 1.2.1
912+
## 1.2.1
908913

909914
- [issue #12] Fix handling of output when result of lookup is `undefined`.
910915

911916

912-
## json 1.2.0
917+
## 1.2.0
913918

914919
- [issue #10] Fix for node v0.5.
915920

916921

917-
## json 1.1.9
922+
## 1.1.9
918923

919924
- [Issue 8] Don't emit a newline for empty output.
920925

921926

922-
## json 1.1.8
927+
## 1.1.8
923928

924929
- [Issue 7] Handle "HTTP/1.1 100 Continue" leading header block.
925930
- [Issue 4] Add a man page (using ronnjs).
926931

927932

928-
## json 1.1.7
933+
## 1.1.7
929934

930935
- [Issue 5] Fix getting a key with a period. E.g.:
931936

@@ -938,12 +943,12 @@
938943
42
939944

940945

941-
## json 1.1.6
946+
## 1.1.6
942947

943948
- [Issue 6] Error exit value if invalid JSON.
944949

945950

946-
## json 1.1.4
951+
## 1.1.4
947952

948953
- [Issue 2] Fix bracket notation: `echo '{"foo-bar": "baz"}' | json '["foo-bar"]'`
949954

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ check-jsstyle: $(JSSTYLE_FILES)
113113
.PHONY: check-version
114114
check-version:
115115
@echo version is: $(shell cat package.json | lib/json.js version)
116-
[[ `cat package.json | lib/json.js version` == `grep '^## ' CHANGES.md | head -2 | tail -1 | awk '{print $$3}'` ]]
116+
[[ `cat package.json | lib/json.js version` == `grep '^## ' CHANGES.md | head -2 | tail -1 | awk '{print $$2}'` ]]
117117
[[ `cat package.json | lib/json.js version` == `grep '^var VERSION' lib/json.js | awk -F"'" '{print $$2}'` ]]
118118

119119
.PHONY: check

lib/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* See <https://github.com/trentm/json> and <https://trentm.com/json/>
99
*/
1010

11-
var VERSION = '9.0.5';
11+
var VERSION = '9.0.6';
1212

1313
var p = console.warn;
1414
var util = require('util');

0 commit comments

Comments
 (0)