citation-js 0.5.0 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,679 +0,0 @@
1
- # Changelog
2
-
3
- ## [`0.5.0`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.10...v0.5.0) - 2021-04-01
4
-
5
- * Pin component versions to [`0.5.0`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-2021-04-01):
6
-
7
- > ### Bug Fixes
8
- >
9
- > * **plugin-bibtex:** remove CSL 1.0.2 types ([365fe1c](https://github.com/citation-js/citation-js/commit/365fe1c0a950de5f333ed8fc7e70ba17c59b7c21))
10
- > * **plugin-bibtex:** remove lookbehind regex ([fe20199](https://github.com/citation-js/citation-js/commit/fe2019901f60bbfa89c2676c4eebae24e8dbfb79))
11
- >
12
- >
13
- > ### Features
14
- >
15
- > * **plugin-bibtex:** allow URL in howpublished ([3884e08](https://github.com/citation-js/citation-js/commit/3884e0807c9509b585b8e0ce82ec746915886c63))
16
- > * **plugin-ris:** add formatting 'spec' option ([ec0bbad](https://github.com/citation-js/citation-js/commit/ec0bbada4019be7f92e33c82d1870b7a4052f089))
17
-
18
- ## [`0.5.0-alpha.10`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.9...v0.5.0-alpha.10) - 2021-01-28
19
-
20
- * Pin component versions to [`0.5.0-alpha.10`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha10-2021-01-28):
21
-
22
- > ### Bug Fixes
23
- >
24
- > * **core:** clean `type` as regular string ([6982ae6](https://github.com/citation-js/citation-js/commit/6982ae627b8ceb0f1fb3ac59ff5351b27912769f))
25
- > * **core:** do not snapshot initial Cite() state ([19afac7](https://github.com/citation-js/citation-js/commit/19afac7ff22f5a5ea23852374a33aaf879317a1d))
26
- > * **core:** reset Grammar log on each run ([68d8a2a](https://github.com/citation-js/citation-js/commit/68d8a2a61a4f745d0acf38ec590ba7643d3a8f61))
27
- > * **core:** reset Grammar state on each run ([834f679](https://github.com/citation-js/citation-js/commit/834f679dfbd0ddd2dcb7d2e0e0488fc4c9aba3da))
28
- > * **plugin-bibtex:** apply upstream changes ([f5a1514](https://github.com/citation-js/citation-js/commit/f5a15144a78af2c8538eef9465f50a904d55ee17))
29
- > * **plugin-bibtex:** apply various fixes ([861cb36](https://github.com/citation-js/citation-js/commit/861cb36504cb6f20ae859d220d437dc58c53a086))
30
- > * **plugin-bibtex:** apply various fixes ([86e55df](https://github.com/citation-js/citation-js/commit/86e55df2261170efba4ff2106569d8cd5e8fcc02))
31
- > * **plugin-bibtex:** do not escape verbatim value ([a90f4a5](https://github.com/citation-js/citation-js/commit/a90f4a50a99a27bd61469487e003054ea5181e75))
32
- > * **plugin-bibtex:** do not ignore month after day ([4914797](https://github.com/citation-js/citation-js/commit/4914797c3333f0fe898c538080bf3c98e0b79fcb))
33
- > * **plugin-bibtex:** escape more unicode in output ([1647734](https://github.com/citation-js/citation-js/commit/1647734903430d483db9b47349dcecb01a70c88e))
34
- > * **plugin-bibtex:** fix howpublished/url mapping ([b655bec](https://github.com/citation-js/citation-js/commit/b655becf004825fc12d174cc8c2625d57d020804))
35
- > * **plugin-bibtex:** fix mapping bugs ([a644b3a](https://github.com/citation-js/citation-js/commit/a644b3af3f7dc280875f1ac7efcadaccfa9bb3b6))
36
- > * **plugin-bibtex:** output w/ case protection ([07f99b5](https://github.com/citation-js/citation-js/commit/07f99b5ba15b672f059f0384dbc75354c40bcc66))
37
- > * **plugin-bibtex:** remove unicode from label ([81d657d](https://github.com/citation-js/citation-js/commit/81d657d2eb73b3eb022bb58133923f8824181835))
38
- > * **plugin-bibtex:** update BibTeX mappings ([db79896](https://github.com/citation-js/citation-js/commit/db7989659742cc5473e236cae3bde78d9ba1a1b2))
39
- >
40
- >
41
- > ### Features
42
- >
43
- > * **core:** add mainRule param to Grammar ([e8679d5](https://github.com/citation-js/citation-js/commit/e8679d5c33edd7251de1d1779293219754b4b2da))
44
- > * **core:** move DOI corrections to core ([03b804b](https://github.com/citation-js/citation-js/commit/03b804b5d07841cfab4234dac648bb67c0c18e45))
45
- > * **plugin-bibtex:** add -subtitle, -titleaddon ([eef0e6c](https://github.com/citation-js/citation-js/commit/eef0e6cf5c01b00a46c4f46b206f667a713bb3b2)), closes [#116](https://github.com/citation-js/citation-js/issues/116)
46
- > * **plugin-bibtex:** add 'strict' parser option ([64f0c38](https://github.com/citation-js/citation-js/commit/64f0c38605eb9119c9344e8e1296fc3add4d8378))
47
- > * **plugin-bibtex:** add BibLaTex mappings ([84655a4](https://github.com/citation-js/citation-js/commit/84655a4aa14ae4f4ad9f70ff8541d6f3da1052c4))
48
- > * **plugin-bibtex:** rename sentenceCase option ([35943d2](https://github.com/citation-js/citation-js/commit/35943d21aad0458010ccb3c33ec51b6a624a0d38))
49
- > * **plugin-bibtex:** update BibTeX mappings ([987b75c](https://github.com/citation-js/citation-js/commit/987b75c80e6bd6d5ff35afe3a3a8100de45b88d4))
50
- > * **plugin-bibtex:** update BibTeX parser ([9df7558](https://github.com/citation-js/citation-js/commit/9df75585579560332b7d495c695c72f6e553ae1f))
51
- > * **plugin-csl:** add 'asEntryArray' option to bibliography ([8039967](https://github.com/citation-js/citation-js/commit/8039967e65565d8b3fd49b91deaef82a0cf1d39d))
52
- > * **plugin-csl:** add 'entry' option to bibliography ([298819b](https://github.com/citation-js/citation-js/commit/298819bd6b37ad8e622e3d6f7a2b5c5ee6a3e52f))
53
- >
54
- >
55
- > ### BREAKING CHANGES
56
- >
57
- > * **core:** Constructing a Cite instance no longer automatically creates a snapshot.
58
- > You can do this manually instead.
59
- > * **plugin-bibtex:** - The @bibtex input type prefix has been
60
- > changed to @biblatex
61
- > - The @bibtex input type prefix is now used for
62
- > parsing as pure @bibtex. These types have no
63
- > type parser so are not automatically used.
64
- > - The `bibtex` output format now outputs valid
65
- > BibTeX, use the `biblatex` output format for
66
- > BibLaTeX output.
67
- > - The output option `generateLabel` has been
68
- > replaced by the config option
69
- > `format.useIdAsLabel`
70
- > * **plugin-bibtex:** Although the file parsing has been tested extensively,
71
- > the mapping has not. In addition, since the mapping has been created
72
- > from scratch according to the BibLaTeX documentation behaviour might
73
- > change. Please report any problems at
74
- > https://github.com/citation-js/citation-js/issues
75
-
76
- ## [`0.5.0-alpha.9`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.8...v0.5.0-alpha.9) - 2020-10-20
77
-
78
- * Pin component versions to [`0.5.0-alpha.9`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha9-2020-10-20)
79
-
80
- ## [`0.5.0-alpha.8`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.7...v0.5.0-alpha.8) - 2020-10-20
81
-
82
- * Pin component versions to [`0.5.0-alpha.8`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha8-2020-10-20):
83
-
84
- > ### Bug Fixes
85
- >
86
- > * **plugin-bibtex:** fix closing tag behavior ([466d5b1](https://github.com/citation-js/citation-js/commit/466d5b1d234c8e327cfabb6528f8e72b065e2469))
87
- > * **plugin-csl:** fix disambig error ([35ec98d](https://github.com/citation-js/citation-js/commit/35ec98de69ce8b24f45a37139a989cd6754b2200))
88
-
89
- ## [`0.5.0-alpha.7`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.6...v0.5.0-alpha.7) - 2020-08-29
90
-
91
- * Pin component versions to [`0.5.0-alpha.7`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha7-2020-08-29):
92
-
93
- > ### Bug Fixes
94
- >
95
- > * **cli:** fix check for prefixed options ([4b7fe6b](https://github.com/citation-js/citation-js/commit/4b7fe6b1f6b908b3304929b1c1f05a09d137cf34))
96
- > * **plugin-bibtex:** avoid error on non-utf-8 webpages ([c09a9e4](https://github.com/citation-js/citation-js/commit/c09a9e467e85f6a8c52eb78c36a98734e32ee14c))
97
- > * **plugin-csl:** remove entry caching ([efa648b](https://github.com/citation-js/citation-js/commit/efa648ba570de7dabf0651442ca8ffdf52fcd5fe))
98
-
99
- ## [`0.5.0-alpha.6`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.5...v0.5.0-alpha.6) - 2020-07-05
100
-
101
- * Pin component versions to [`0.5.0-alpha.6`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha6-2020-07-04):
102
-
103
- > ### Bug Fixes
104
- >
105
- > * **plugin-bibtex:** fix combining tilde ([cc9fd8b](https://github.com/citation-js/citation-js/commit/cc9fd8bf12cb1f62b6a631d18ebc7eba0e05abfe))
106
- > * **plugin-bibtex:** normalize strings ([447b0b4](https://github.com/citation-js/citation-js/commit/447b0b419abe0719e89bd16e189fe58f4f62cc01))
107
- > * **plugin-bibtex:** support all 10 escaped characters ([#75](https://github.com/citation-js/citation-js/issues/75)) ([da016b4](https://github.com/citation-js/citation-js/commit/da016b41ac67793f3613e263658551817d7a2e70))
108
- > * **plugin-ris:** format literal names ([893d144](https://github.com/citation-js/citation-js/commit/893d144d21d665a3a70b5412fdfa44a5514d722c)), closes [#87](https://github.com/citation-js/citation-js/issues/87)
109
- >
110
- >
111
- > ### Features
112
- >
113
- > * **plugin-bibtex:** improve BibTeX mappings ([#76](https://github.com/citation-js/citation-js/issues/76)) ([214e77b](https://github.com/citation-js/citation-js/commit/214e77b6eda586e519ddc774dbf7054466472216))
114
- > * **plugin-csl:** update apa to 7th edition ([#89](https://github.com/citation-js/citation-js/issues/89)) ([2b5f2c5](https://github.com/citation-js/citation-js/commit/2b5f2c59ddefadd1e8c6ad78efde8f331a8e5332))
115
- >
116
- >
117
- > ### BREAKING CHANGES
118
- >
119
- > * **plugin-csl:** default APA style is now 7th edition
120
-
121
- ## [`0.5.0-alpha.5`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.4...v0.5.0-alpha.5) - 2020-03-08
122
-
123
- * Pin component versions to [`0.5.0-alpha.5`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha5-2019-10-28):
124
-
125
- > ### Bug Fixes
126
- >
127
- > * **core:** do not use User-Agent in CORS ([047847d](https://github.com/citation-js/citation-js/commit/047847d))
128
- > * **plugin-bibtex:** ignore braces for grouping command ([#64](https://github.com/citation-js/citation-js/issues/64)) ([20763dc](https://github.com/citation-js/citation-js/commit/20763dc))
129
- > * **plugin-ris:** allow string for keyword component ([#70](https://github.com/citation-js/citation-js/issues/70)) ([0294999](https://github.com/citation-js/citation-js/commit/0294999)), closes [#67](https://github.com/citation-js/citation-js/issues/67)
130
- > * **plugin-ris:** normalize DOIs ([#68](https://github.com/citation-js/citation-js/issues/68)) ([eb97fa5](https://github.com/citation-js/citation-js/commit/eb97fa5))
131
- > * **plugin-ris:** trim lines in parse function ([#71](https://github.com/citation-js/citation-js/issues/71)) ([f81b845](https://github.com/citation-js/citation-js/commit/f81b845)), closes [#66](https://github.com/citation-js/citation-js/issues/66)
132
-
133
- ## [`0.5.0-alpha.4`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.3...v0.5.0-alpha.4) - 2019-10-15
134
-
135
- * Pin component versions to [`0.5.0-alpha.4`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha4-2019-10-15):
136
-
137
- > ### Bug Fixes
138
- >
139
- > * **core:** fix normalising headers code for the browser ([d4693a7](https://github.com/citation-js/citation-js/commit/d4693a7))
140
- > * **plugin-bibtex:** do not try to format raw dates ([b28eca8](https://github.com/citation-js/citation-js/commit/b28eca8))
141
- > * **plugin-bibtex:** warn for umatched entry braces ([7905667](https://github.com/citation-js/citation-js/commit/7905667))
142
-
143
- ## [`0.5.0-alpha.3`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.2...v0.5.0-alpha.3) - 2019-10-08
144
-
145
- * Pin component versions to [`0.5.0-alpha.3`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha3-2019-10-07):
146
-
147
- > ### Bug Fixes
148
- >
149
- > * **plugin-bibtex:** remove nocase from diacritics ([7f7e52f](https://github.com/citation-js/citation-js/commit/7f7e52f))
150
- > * **plugin-bibtex:** replace trimEnd() with trim() ([b59da57](https://github.com/citation-js/citation-js/commit/b59da57))
151
- > * **plugin-ris:** fix handling of multiline values ([eba2bfe](https://github.com/citation-js/citation-js/commit/eba2bfe))
152
- > * **plugin-ris:** handle \r\n line endings ([f0a3b29](https://github.com/citation-js/citation-js/commit/f0a3b29))
153
- >
154
- >
155
- > ### Features
156
- >
157
- > * **bibtex:** add new BibTeX parser ([3c3588e](https://github.com/citation-js/citation-js/commit/3c3588e))
158
- > * **core:** add Grammar class to utils ([052754f](https://github.com/citation-js/citation-js/commit/052754f))
159
-
160
- ## [`0.5.0-alpha.2`](https://github.com/larsgw/citation.js/compare/v0.5.0-alpha.0...v0.5.0-alpha.2) - 2019-09-10
161
-
162
- * Pin component versions to [`0.5.0-alpha.2`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha2-2019-09-10):
163
-
164
- > ### Bug Fixes
165
- >
166
- > * **core:** fix date value null check ([f6a3ab2](https://github.com/citation-js/citation-js/commit/f6a3ab2))
167
- > * **core:** fix cleaning 'null' date values ([c927f81](https://github.com/citation-js/citation-js/commit/c927f81)), closes [/github.com/larsgw/citation.js/issues/190#issuecomment-529917382](https://github.com//github.com/larsgw/citation.js/issues/190/issues/issuecomment-529917382)
168
- > * **core:** fix cleaning 'null' name values ([2d59a32](https://github.com/citation-js/citation-js/commit/2d59a32))
169
-
170
- ## [`0.5.0-alpha.0`](https://github.com/larsgw/citation.js/compare/v0.4.10...v0.5.0-alpha.0) - 2019-09-07
171
-
172
- * Pin component versions to [`v0.5.0-alpha.0`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#050-alpha0-2019-09-07):
173
-
174
- > * chore!: drop Node 6 support ([f27d812](https://github.com/citation-js/citation-js/commit/f27d812)), closes [#55](https://github.com/citation-js/citation-js/issues/55)
175
- >
176
- >
177
- > ### Bug Fixes
178
- >
179
- > * **core:** do not return empty name lists when cleaning ([d31ca8a](https://github.com/citation-js/citation-js/commit/d31ca8a))
180
- > * **core:** fix Cite#sort handling of multi-value props ([3a7751c](https://github.com/citation-js/citation-js/commit/3a7751c))
181
- > * **core:** fix handling of generic best guesses ([c8e8c78](https://github.com/citation-js/citation-js/commit/c8e8c78))
182
- > * **core:** fix util.fetchId ([7850e75](https://github.com/citation-js/citation-js/commit/7850e75))
183
- > * **core:** improve date handling when cleaning ([08da3e7](https://github.com/citation-js/citation-js/commit/08da3e7))
184
- > * **core:** only overwrite individual headers in fetchFile ([8d47684](https://github.com/citation-js/citation-js/commit/8d47684))
185
- > * **core:** pass around bestGuessConversions ([50fa283](https://github.com/citation-js/citation-js/commit/50fa283))
186
- > * **core:** pass checkContentType in fetchFile ([e415f76](https://github.com/citation-js/citation-js/commit/e415f76))
187
- > * **core:** set userAgent properly in fetchFile ([a91fd7b](https://github.com/citation-js/citation-js/commit/a91fd7b))
188
- > * **plugin-bibtex:** fix label for incomplete author ([352ca4f](https://github.com/citation-js/citation-js/commit/352ca4f)), closes [#56](https://github.com/citation-js/citation-js/issues/56)
189
- >
190
- >
191
- > ### Features
192
- >
193
- > * **core:** complete input option validation ([d9be626](https://github.com/citation-js/citation-js/commit/d9be626))
194
- > * **core:** support has() & list() on plugins.config ([fe7f59f](https://github.com/citation-js/citation-js/commit/fe7f59f))
195
- >
196
- >
197
- > ### BREAKING CHANGES
198
- >
199
- > * drops Node 6 support
200
-
201
- ## [`0.4.10`](https://github.com/larsgw/citation.js/compare/v0.4.9...v0.4.10) - 2019-08-27
202
-
203
- * Pin component versions to [`v0.4.10`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#0410-2019-08-27):
204
-
205
- > ### Bug Fixes
206
- >
207
- > * **plugin-csl:** use global symbol registry (dd8e839)
208
-
209
- ## [`0.4.9`](https://github.com/larsgw/citation.js/compare/v0.4.8...v0.4.9) - 2019-08-27
210
-
211
- * Pin component versions to [`v0.4.9`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#049-2019-08-27):
212
-
213
- > ### Bug Fixes
214
- >
215
- > * **core:** cap sync-rpc version ([2157335](https://github.com/citation-js/citation-js/commit/2157335)), closes [#54](https://github.com/citation-js/citation-js/issues/54)
216
- > * **core:** remove Object.entries call ([c38e3b9](https://github.com/citation-js/citation-js/commit/c38e3b9))
217
- > * **core:** remove use of object spread ([d82342a](https://github.com/citation-js/citation-js/commit/d82342a)), closes [#53](https://github.com/citation-js/citation-js/issues/53)
218
- > * **plugin-csl:** defer error to citeproc-js ([0f76fcb](https://github.com/citation-js/citation-js/commit/0f76fcb))
219
- > * **plugin-csl:** only proxy @bibliography/style once ([a372012](https://github.com/citation-js/citation-js/commit/a372012))
220
- > * **plugin-csl:** pass 'this' in getWrapperProxy ([c3e670a](https://github.com/citation-js/citation-js/commit/c3e670a))
221
- > * **plugin-csl:** return proxy in getWrapperProxy ([39e57a3](https://github.com/citation-js/citation-js/commit/39e57a3))
222
- > * **plugin-ris:** fix legacy EP tag ([d7c6ea5](https://github.com/citation-js/citation-js/commit/d7c6ea5))
223
- >
224
- >
225
- > ### Features
226
- >
227
- > * **core:** add match=none to propertyConstraint ([9bafb58](https://github.com/citation-js/citation-js/commit/9bafb58))
228
- > * **core:** add Translator to utils ([0dd4963](https://github.com/citation-js/citation-js/commit/0dd4963))
229
- > * **plugin-ris:** add RIS input support ([1c49bcb](https://github.com/citation-js/citation-js/commit/1c49bcb))
230
-
231
- ## [`0.4.8`](https://github.com/larsgw/citation.js/compare/v0.4.7...v0.4.8) - 2019-07-06
232
-
233
- * Pin component versions to [`v0.4.8`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#048-2019-07-06):
234
-
235
- > ### Bug Fixes
236
- >
237
- > * **core:** do not attempt to clone non-standard objects ([5309d08](https://github.com/citation-js/citation-js/commit/5309d08)), closes [#52](https://github.com/citation-js/citation-js/issues/52)
238
- > * **plugin-wikidata:** properly collect id from fetched items ([710a276](https://github.com/citation-js/citation-js/commit/710a276))
239
- >
240
- >
241
- > ### Features
242
- >
243
- > * **core:** use central User-Agent in fetchFile ([3fa8863](https://github.com/citation-js/citation-js/commit/3fa8863)), closes [#39](https://github.com/citation-js/citation-js/issues/39)
244
-
245
- ## [`0.4.7`](https://github.com/larsgw/citation.js/compare/v0.4.6...v0.4.7) - 2019-06-29
246
-
247
- * Pin component versions to [`v0.4.7`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#047-2019-06-29):
248
-
249
- > ### Bug Fixes
250
- >
251
- > * **core:** make fetchFile checkResponse optional ([a51a185](https://github.com/citation-js/citation-js/commit/a51a185))
252
- > * **plugin-doi:** use new checkContentType option ([92df863](https://github.com/citation-js/citation-js/commit/92df863))
253
-
254
- ## [`0.4.6`](https://github.com/larsgw/citation.js/compare/v0.4.5...v0.4.6) - 2019-06-29
255
-
256
- * Pin component versions to [`v0.4.6`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#046-2019-06-28):
257
-
258
- > ### Bug Fixes
259
- >
260
- > * **core:** check if fetchFile response matches request ([e9f9132](https://github.com/citation-js/citation-js/commit/e9f9132)), closes [#36](https://github.com/citation-js/citation-js/issues/36)
261
- > * **core:** fix getBody in fetchFile ([e4247da](https://github.com/citation-js/citation-js/commit/e4247da))
262
- > * **core:** remove console.log call ([e0b1790](https://github.com/citation-js/citation-js/commit/e0b1790))
263
- > * **plugin-wikidata:** fix typo ([8916446](https://github.com/citation-js/citation-js/commit/8916446))
264
- >
265
- >
266
- > ### Features
267
- >
268
- > * **core:** support POST in fetchFile ([ece8a2d](https://github.com/citation-js/citation-js/commit/ece8a2d))
269
-
270
- ## [`0.4.5`](https://github.com/larsgw/citation.js/compare/v0.4.4...v0.4.5) - 2019-06-13
271
-
272
- * Pin component versions to [`v0.4.5`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#045-2019-06-12):
273
-
274
- > ### Bug Fixes
275
- >
276
- > * **plugin-bibtex:** fix parsing of name lists ([11d7dd7](https://github.com/citation-js/citation-js/commit/11d7dd7))
277
- > * **plugin-bibtex:** fix safe labels for unicode names ([8167958](https://github.com/citation-js/citation-js/commit/8167958))
278
- > * **plugin-bibtex:** safe author name ([a232fe7](https://github.com/citation-js/citation-js/commit/a232fe7))
279
- > * **plugin-bibtex:** strip unknown commands in input ([5b3508e](https://github.com/citation-js/citation-js/commit/5b3508e))
280
- > * **plugin-wikidata:** exclude emoji flags as country names ([73b0e84](https://github.com/citation-js/citation-js/commit/73b0e84))
281
- > * **plugin-wikidata:** fix cache fetching ([63a4f0d](https://github.com/citation-js/citation-js/commit/63a4f0d)), closes [#41](https://github.com/citation-js/citation-js/issues/41)
282
- > * **plugin-wikidata:** fix country name check ([90d1c07](https://github.com/citation-js/citation-js/commit/90d1c07))
283
- >
284
- >
285
- > ### Features
286
- >
287
- > * **cli:** add --plugins option ([229c95c](https://github.com/citation-js/citation-js/commit/229c95c)), closes [#40](https://github.com/citation-js/citation-js/issues/40)
288
- > * **cli:** plugin config & format options ([8bd2a4a](https://github.com/citation-js/citation-js/commit/8bd2a4a))
289
- > * **cli:** support for input options ([87d8eb5](https://github.com/citation-js/citation-js/commit/87d8eb5))
290
- > * **plugin-bibtex:** add generateLabel option ([d10631c](https://github.com/citation-js/citation-js/commit/d10631c))
291
- >
292
- >
293
- > ### BREAKING CHANGES
294
- >
295
- > * **plugin-bibtex:** strips unkown commands entirely instead of replacing
296
- > the braces with no-case tags
297
-
298
- ## [`0.4.4`](https://github.com/larsgw/citation.js/compare/v0.4.2...v0.4.4) - 2019-06-13
299
-
300
- * Pin component versions to [`v0.4.4`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#044-2019-05-24):
301
-
302
- > * **plugin-wikidata:** additional mappings ([01be936](https://github.com/citation-js/citation-js/commit/01be936)), closes [#18](https://github.com/citation-js/citation-js/issues/18)
303
-
304
- ## [`0.4.2`](https://github.com/larsgw/citation.js/compare/v0.4.1...v0.4.2) - 2019-06-13
305
-
306
- * Pin component versions to [`v0.4.2`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#042-2019-04-26):
307
-
308
- > ### Bug Fixes
309
- >
310
- > * **plugin-bibtex:** fix label creation ([c7cde40](https://github.com/citation-js/citation-js/commit/c7cde40)), closes [#35](https://github.com/citation-js/citation-js/issues/35)
311
- > * **plugin-wikidata:** support imprecise dates ([c898db7](https://github.com/citation-js/citation-js/commit/c898db7)), closes [#33](https://github.com/citation-js/citation-js/issues/33)
312
- >
313
- >
314
- > ### Features
315
- >
316
- > * **plugin-wikidata:** support more URL properties ([#34](https://github.com/citation-js/citation-js/issues/34)) ([d489843](https://github.com/citation-js/citation-js/commit/d489843))
317
-
318
- ## [`0.4.1`](https://github.com/larsgw/citation.js/compare/v0.4.0...v0.4.1) - 2019-06-13
319
-
320
- Pin component versions to [`v0.4.1`](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md#041-2019-04-14):
321
-
322
- > * **plugin-wikidata:** fix getting label if no title exists ([#32](https://github.com/citation-js/citation-js/issues/32)) ([69243c5](https://github.com/citation-js/citation-js/commit/69243c5))
323
-
324
- ## [`0.4.0`](https://github.com/larsgw/citation.js/compare/v0.4.0-12...v0.4.0) - 2019-04-13
325
-
326
- Updated components to `v0.4.0`, release `v0.4`.
327
-
328
- ## [`0.4.0-12`](https://github.com/larsgw/citation.js/compare/v0.4.0-11...v0.4.0-12) - 2019-03-17
329
-
330
- Updated components from `v0.4.0-rc.1` to `v0.4.0-rc.4`, see [that changelog](https://github.com/citation-js/citation-js/blob/master/CHANGELOG.md).
331
-
332
- ## [`0.4.0-11`](https://github.com/larsgw/citation.js/compare/v0.4.0-10...v0.4.0-11) - 2018-12-27
333
-
334
- ### BREAKING
335
-
336
- * Moved all code to '@citation-js' components. There should be full backwards compatibility, apart from the structure of files.
337
-
338
- ## [`0.4.0-10`](https://github.com/larsgw/citation.js/compare/v0.4.0-9...v0.4.0-10) - 2018-11-02
339
-
340
- ### Added
341
-
342
- * [meta] More test work
343
- * `util.Register`: Alias `remove` to `delete`
344
- * `input/@wikidata`: Support 'stated as' (P1932) qualifier, if possible preferring that over fetching author labels (#131)
345
- * `output/@csl`: Bibliography `nosort` option
346
- * `input/@bibtex`: Support for comma-delimited entries (#157)
347
-
348
- ### Changed
349
-
350
- * Deprecated wrapper CSL locale and template methods
351
-
352
- ### Fixed
353
-
354
- * `output/@csl`: Affixes now work reliably for all formats (#84)
355
-
356
- ## [`0.4.0-9`](https://github.com/larsgw/citation.js/compare/v0.4.0-8...v0.4.0-9) - 2018-07-19
357
-
358
- ### Added
359
- * Support for styled text in title fields in BibTeX input (see #150). Values wrapped in double brackets are treated as values wrapped in single brackets (see #155)
360
-
361
- ### Changed
362
- * BibTeX title fields are no longer wrapped in double brackets when creating output (#155)
363
-
364
- ### Fixed
365
- * Handling of styled text in CSL-JSON title fields when creating BibTeX output (#150)
366
- * Bug introduced when fixing REDOS that made the @else/url type not match @wikidata/api in some cases (#156)
367
-
368
- ## [`0.4.0-8`](https://github.com/larsgw/citation.js/compare/v0.4.0-7...v0.4.0-8) - 2018-07-14
369
-
370
- Bug fixes.
371
-
372
- ### Added
373
- * [meta] Point `unpkg` & `jsdelivr` field to citation.min.js
374
-
375
- ### Changed
376
- * Update for BibJSON parsing (#32). Including tests & documentation.
377
-
378
- ### Fixed
379
- * Cite option validation (and tests that broke because of it)
380
- * Handling incomplete dates in output formatters (https://github.com/larsgw/citation.js/issues/53#issuecomment-404995961). It was caused by #139, a fix for #138 of which #127 is part of
381
- * Make a check when polishing API data not fail when a date field is an empty object (#147)
382
- * [meta] Docs index issue (070cf12)
383
-
384
- ## [`0.4.0-7`](https://github.com/larsgw/citation.js/compare/v0.4.0-6...v0.4.0-7) - 2018-07-12
385
-
386
- ### Added
387
-
388
- * [meta] A lot of tests cases regarding input parsing mechanisms (#123)
389
- * General plugin system (#88)
390
- * Alias `type` option to `format` in most output formats
391
- * CSL config is now registered with the general plugin system
392
- * CSL `citation` support (see #148)
393
-
394
- ### Changed
395
-
396
- * Reformed input plugin system (again) (#106)
397
- * The `parseDate` method now has an internal parsing implementation (#127, #138)
398
- * Updated documentation (both in-code JSDoc and guides)
399
-
400
- ### Testing
401
-
402
- * Tests now support HTTP(S) request mocking (#134, #136)
403
- * Added REDOS flagging tools
404
- * Tests for global plugin system
405
-
406
- ### Fixed
407
-
408
- * `@else/url` blocking type recognition (#104)
409
- * `@else/json` type predicate for empty objects:
410
- ```js
411
- '{}' // didn't work
412
- '{a: 1}' // worked
413
- '{ }' // worked as well
414
- ```
415
- * REDOS (mostly, anyway) (see #107, 7c52beff44b37443b812ee5864733e441e29a812)
416
- * JSON output still being invalid (#143, see also #144)
417
- * [meta] Invalid Babel `browsers` target
418
-
419
- ## [`0.4.0-6`](https://github.com/larsgw/citation.js/compare/v0.4.0-5...v0.4.0-6) - 2018-07-01
420
-
421
- ### Fixed
422
- * BibTeX output typo, trying to find the non-existent `url` CSL property, instead of the `URL` one (#153)
423
-
424
- ## [`0.4.0-5`](https://github.com/larsgw/citation.js/compare/v0.4.0-4...v0.4.0-5) - 2018-06-03
425
-
426
- ### Fixed
427
- * Webpack error because of browserify-centric setup (#151)
428
-
429
- ## [`0.4.0-4`](https://github.com/larsgw/citation.js/compare/v0.4.0-3...v0.4.0-4) - 2018-05-19
430
-
431
- ### Fixed
432
- * DOI bug due to a regression in 0.4.0-3 (dda2360f4d91af1d48e1bf859d784b2bdc694c6d)
433
-
434
- ## [`0.4.0-3`](https://github.com/larsgw/citation.js/compare/v0.4.0-2...v0.4.0-3) - 2018-05-12
435
-
436
- ### Added
437
- * RIS output support (#125)
438
-
439
- ### Refactored
440
- * A lot of the building scripts
441
- * All code uses the util fetchFile(Async) functions, to make testing easier
442
-
443
- ### Fixed
444
- * Subtle type checking bug in translation scheme parsing code (#128)
445
- * Logging API not supported on Node.js v6 (#124)
446
-
447
- ## [`0.4.0-2`](https://github.com/larsgw/citation.js/compare/v0.4.0-1...v0.4.0-2) - 2018-05-12
448
-
449
- > Was skipped due to publishing the wrong files.
450
-
451
- ## [`0.4.0-1`](https://github.com/larsgw/citation.js/compare/v0.4.0-0...v0.4.0-1) - 2017-12-31
452
-
453
- ### Added
454
-
455
- * New formatting system w/ plugins (#82)
456
- * `Register` class for general-purpose registers (already used in 4 places) (#115)
457
- * `Cite#format` (a `Cite` formatting method for output plugins)
458
-
459
- ### Changed
460
-
461
- * Modularised most output formatting code
462
- * Adding CSL locales and templates now overwrites existing ones. Previously, it didn't, but there wasn't any way of getting them back anyway
463
- * Generalised formatting functions (there are still backwards-compatible wrappers)
464
- * Expanded output options validation issue error messages
465
- * Deprecated `Cite#get`
466
-
467
- ### Refactored
468
-
469
- * Use ESLint envs instead of listing globals (#114)
470
-
471
- ### Fixed
472
-
473
- * Docs issues (#112)
474
- * CLI ouptut file extensions (#121)
475
- * `Cite.async` behaviour w/ callback & no options (#122)
476
- * Output options validation issues (#120)
477
- * Moved input parsing to actual respective test cases
478
-
479
- ## [`0.4.0-0`](https://github.com/larsgw/citation.js/compare/v0.3.4...v0.4.0-0) - 2017-12-22
480
-
481
- ### Added
482
- * New parsing system w/ plugins
483
-
484
- > This change should be mostly backwards-compatible, although certain workarounds may stop working. If there's an issue, please report it [here](https://github.com/larsgw/citation.js/issues)
485
-
486
- * Support for dynamic output types
487
- * Greatly improved docs
488
- * Map namespaces in JSDoc comments
489
- * Add tutorials
490
-
491
- ### Changed
492
- * `Cite#options()` now doesn't update options when they are invalid
493
- * Improved BibTeX field mappings
494
- * Support month names in BibTeX
495
- * CLI logging now on stderr (instead of stdout)
496
-
497
- ## [`0.3.4`](https://github.com/larsgw/citation.js/compare/v0.3.3...v0.3.4) - 2017-09-12
498
-
499
- ### Changed
500
- * Updated README
501
-
502
- ### Fixed
503
- * Command sequence normalisation in BibTeX
504
- * BibTeX test case output
505
-
506
- ## [`0.3.3`](https://github.com/larsgw/citation.js/compare/v0.3.2...v0.3.3) - 2017-09-12
507
-
508
- ### Added
509
- * A lot of Wikidata entry type mappings
510
- * Support for option-less piping stdin -> stdout in the CLI
511
-
512
- ### Changed
513
- * Greatly improve name parsing
514
- * Wikidata entry type default is now `book` to align with, among other things, BibTeX
515
-
516
- ### Fixed
517
- * Unknown Wikidata entry type now actually defaults to something
518
- * CLI now uses the API changed in 0.3.1
519
-
520
- ## [`0.3.2`](https://github.com/larsgw/citation.js/compare/v0.3.1...v0.3.2) - 2017-09-10
521
-
522
- ### Added
523
- * New Wikidata field mappings (see [#76](https://github.com/larsgw/citation.js/issues/76))
524
-
525
- ### Changed
526
- * BibTeX name field output now uses reverse notation
527
- * Main parsing function aliases/shortcuts:
528
- * `Cite.normalise()` -> `Cite.input()`
529
- * `Cite.normaliseAsync()` -> `Cite.inputAsync()`
530
-
531
- ## [`0.3.1`](https://github.com/larsgw/citation.js/compare/v0.3.0...v0.3.1) - 2017-09-02
532
-
533
- ### Added
534
- * Options parameter in `parseInput` and `parseInputAsync`
535
- * Option for max parsing chain length
536
- * Option to generate parsing chain data in `_graph` property
537
- * Option to force type when parsing
538
-
539
- ### Changed
540
- * Options API in `Cite` and `Cite.async`
541
-
542
- ```js
543
- Cite(data, outputOptions)
544
-
545
- // BECOMES
546
-
547
- Cite(data, {
548
- ...parsingOptions,
549
- output: outputOptions
550
- })
551
- ```
552
-
553
- * Author ordinal in Wikidata props is now a property `_ordinal` instead of an array element
554
- * Parsing invalid dates now returns input as literal date instead of an empty `date-parts`
555
-
556
- ### Refactored
557
- * Simplify code to normalise CSL-JSON
558
- * Mock APIs for async tests
559
-
560
- ### Fixed
561
- * Parsing names with lowercase particles now doesn't omit family names
562
- * Better error messaging when API/file requests fails
563
-
564
- ## [`0.3.0`](https://github.com/larsgw/citation.js/compare/v0.3.0-14...v0.3.0) - 2017-08-25
565
-
566
- See `0.3.0-14`.
567
-
568
- ## [`0.3.0-14`](https://github.com/larsgw/citation.js/compare/v0.3.0-13...v0.3.0-14) - 2017-08-24
569
-
570
- ### Added
571
- * Alias for main parsing functions: `Cite.parse.input.chain -> Cite.normalise` and `Cite.parse.input.async.chain -> Cite.normaliseAsync`
572
- * Async versions of `Cite#set()` and `Cite#add()` (only Promise, no callback)
573
-
574
- ### Refactored
575
- * Wikidata JSON parsing system
576
-
577
- ### Fixed
578
- * Wikidata prop parsing function now returns with the proper field name when parsing an author prop
579
-
580
- ## [`0.3.0-13`](https://github.com/larsgw/citation.js/compare/v0.3.0-12...v0.3.0-13) - 2017-08-22
581
-
582
- ### Added
583
- * Support for matching several tokens in a row with TokenStack
584
-
585
- ### Refactored
586
- * Add explanation to complex code
587
- * BibTeX publication type parsing now uses a type map
588
-
589
- ### Fixed
590
- * Typo in BibTeX de-escaping code, now correctly parsing % signs in author fields
591
- * False positive parsing Array JSON string as Bib.TXT
592
-
593
- ## [`0.3.0-12`](https://github.com/larsgw/citation.js/compare/v0.3.0-11...v0.3.0-12) - 2017-08-01
594
-
595
- ### Added
596
- * Support for BibTeX literals in author and date fields
597
- * Support for BibTeX fields year and month
598
-
599
- ### Changed
600
- * `Cite#retrieveVersion()` now returns `null` on all invalid versions
601
-
602
- ### Refactored
603
- * Testing now with the mocha framework
604
- * BibTeX parser
605
-
606
- ### Fixed
607
- * Sorting by any date field
608
-
609
- ## [`0.3.0-11`](https://github.com/larsgw/citation.js/compare/v0.3.0-10...v0.3.0-11) - 2017-07-28
610
-
611
- ### Added
612
- * Custom templates & locales register
613
-
614
- ### Fixed
615
- * Use correct date format
616
-
617
- ## [`0.3.0-10`](https://github.com/larsgw/citation.js/compare/v0.3.0-9...v0.3.0-10) - 2017-07-28
618
-
619
- ### Added
620
- * DOI support
621
- * CSL normaliser
622
-
623
- ### Fixed
624
- * Async prop parsing
625
-
626
- ## [`0.3.0-9`](https://github.com/larsgw/citation.js/compare/v0.3.0-8...v0.3.0-9) - 2017-07-06
627
-
628
- ### Added
629
- * CLI stdin input
630
-
631
- ### Fixed
632
- * DOM HTML output
633
- * CLI non-file input
634
-
635
- ## [`0.3.0-8`](https://github.com/larsgw/citation.js/compare/v0.3.0-7...v0.3.0-8) - 2017-06-03
636
-
637
- ### Added
638
- * Iterator to Cite
639
-
640
- ### Fixed
641
- * CLI Windows support
642
- * Wikidata input when value is empty
643
- * DOM HTML output
644
- * Output JSON is now valid JSON
645
- * Sorting by callback and custom props
646
- * Input support for BibTeX JSON
647
-
648
- ## [`0.3.0-7`](https://github.com/larsgw/citation.js/compare/v0.3.0-6...v0.3.0-7) - 2017-05-22
649
-
650
- ### Added
651
- * Bib.TXT i/o support
652
-
653
- ### Fixed
654
- * CLI Citation.js v0.3.0-7 support
655
-
656
- ## [`0.3.0-6`](https://github.com/larsgw/citation.js/compare/v0.3.0-5...v0.3.0-6) - 2017-05-15
657
-
658
- ### Added
659
- * Async support
660
-
661
- ### Fixed
662
- * Increased browser support
663
-
664
- ## [`0.3.0-5`](https://github.com/larsgw/citation.js/compare/v0.3.0-4...v0.3.0-5) - 2017-05-08
665
-
666
- ### Added
667
- * Exposition of most Cite functions to users
668
-
669
- ### Changed
670
- * Logging non-standard
671
-
672
- ### Removed
673
- * Remove `Cite#_input`
674
-
675
- ### Refactored
676
- * Code style and ES6+
677
-
678
- ## Older changelogs coming later
679
- I really don't recommend using those versions anyway.