UNPKG

15.9 kBMarkdownView Raw
1# Changelog
2
3[npm history][1]
4
5[1]: https://www.npmjs.com/package/gtoken?activeTab=versions
6
7### [5.3.1](https://www.github.com/googleapis/node-gtoken/compare/v5.3.0...v5.3.1) (2021-08-11)
8
9
10### Bug Fixes
11
12* **build:** migrate to using main branch ([#392](https://www.github.com/googleapis/node-gtoken/issues/392)) ([992e3c5](https://www.github.com/googleapis/node-gtoken/commit/992e3c5e1520a376269b2476e5ce225f6ee96e2b))
13
14## [5.3.0](https://www.github.com/googleapis/node-gtoken/compare/v5.2.1...v5.3.0) (2021-06-10)
15
16
17### Features
18
19* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#369](https://www.github.com/googleapis/node-gtoken/issues/369)) ([3142215](https://www.github.com/googleapis/node-gtoken/commit/3142215277ae2daa33f7fb3300f09ef438ded01f))
20
21### [5.2.1](https://www.github.com/googleapis/node-gtoken/compare/v5.2.0...v5.2.1) (2021-01-26)
22
23
24### Bug Fixes
25
26* **deps:** remove dependency on mime ([#357](https://www.github.com/googleapis/node-gtoken/issues/357)) ([0a1e6b3](https://www.github.com/googleapis/node-gtoken/commit/0a1e6b32206364106631c0ca8cdd2e325de2af32))
27
28## [5.2.0](https://www.github.com/googleapis/node-gtoken/compare/v5.1.0...v5.2.0) (2021-01-14)
29
30
31### Features
32
33* request new tokens before they expire ([#349](https://www.github.com/googleapis/node-gtoken/issues/349)) ([e84d9a3](https://www.github.com/googleapis/node-gtoken/commit/e84d9a31517c1449141708a0a2cddd9d0129fa95))
34
35## [5.1.0](https://www.github.com/googleapis/node-gtoken/compare/v5.0.5...v5.1.0) (2020-11-14)
36
37
38### Features
39
40* dedupe concurrent requests ([#351](https://www.github.com/googleapis/node-gtoken/issues/351)) ([9001f1d](https://www.github.com/googleapis/node-gtoken/commit/9001f1d00931f480d40fa323c9b527beaef2254a))
41
42### [5.0.5](https://www.github.com/googleapis/node-gtoken/compare/v5.0.4...v5.0.5) (2020-10-22)
43
44
45### Bug Fixes
46
47* **deps:** update dependency gaxios to v4 ([#342](https://www.github.com/googleapis/node-gtoken/issues/342)) ([7954a19](https://www.github.com/googleapis/node-gtoken/commit/7954a197e923469b031f0833a2016fa0378285b1))
48
49### [5.0.4](https://www.github.com/googleapis/node-gtoken/compare/v5.0.3...v5.0.4) (2020-10-06)
50
51
52### Bug Fixes
53
54* **deps:** upgrade google-p12-pem ([#337](https://www.github.com/googleapis/node-gtoken/issues/337)) ([77a749d](https://www.github.com/googleapis/node-gtoken/commit/77a749d646c7ccc68e974f27827a9d538dfea784))
55
56### [5.0.3](https://www.github.com/googleapis/node-gtoken/compare/v5.0.2...v5.0.3) (2020-07-27)
57
58
59### Bug Fixes
60
61* move gitattributes files to node templates ([#322](https://www.github.com/googleapis/node-gtoken/issues/322)) ([1d1786b](https://www.github.com/googleapis/node-gtoken/commit/1d1786b8915cd9a33577237ec6a6148a29e11a88))
62
63### [5.0.2](https://www.github.com/googleapis/node-gtoken/compare/v5.0.1...v5.0.2) (2020-07-09)
64
65
66### Bug Fixes
67
68* typeo in nodejs .gitattribute ([#311](https://www.github.com/googleapis/node-gtoken/issues/311)) ([8e17b4c](https://www.github.com/googleapis/node-gtoken/commit/8e17b4c0757832b2d31178684a6b24e1759d9f76))
69
70### [5.0.1](https://www.github.com/googleapis/node-gtoken/compare/v5.0.0...v5.0.1) (2020-04-13)
71
72
73### Bug Fixes
74
75* **deps:** update dependency gaxios to v3 ([#287](https://www.github.com/googleapis/node-gtoken/issues/287)) ([033731e](https://www.github.com/googleapis/node-gtoken/commit/033731e128fef0034b07b13183044e5060809418))
76* **deps:** update dependency google-p12-pem to v3 ([#280](https://www.github.com/googleapis/node-gtoken/issues/280)) ([25121b0](https://www.github.com/googleapis/node-gtoken/commit/25121b00cc9a4d32854f36ea8bc4bbd2cb77afbb))
77* apache license URL ([#468](https://www.github.com/googleapis/node-gtoken/issues/468)) ([#293](https://www.github.com/googleapis/node-gtoken/issues/293)) ([14a5bcd](https://www.github.com/googleapis/node-gtoken/commit/14a5bcd52d7b18d787c620451471e904784222d9))
78
79## [5.0.0](https://www.github.com/googleapis/node-gtoken/compare/v4.1.4...v5.0.0) (2020-03-24)
80
81
82### ⚠ BREAKING CHANGES
83
84* drop Node 8 from engines (#284)
85* typescript@3.7.x introduced breaking changes to compiled code
86
87### Features
88
89* drop Node 8 from engines ([#284](https://www.github.com/googleapis/node-gtoken/issues/284)) ([209e007](https://www.github.com/googleapis/node-gtoken/commit/209e00746116a82a3cf9acc158aff12a4971f3d0))
90
91
92### Build System
93
94* update gts and typescript ([#283](https://www.github.com/googleapis/node-gtoken/issues/283)) ([ff076dc](https://www.github.com/googleapis/node-gtoken/commit/ff076dcb3da229238e7bed28d739c48986652c78))
95
96### [4.1.4](https://www.github.com/googleapis/node-gtoken/compare/v4.1.3...v4.1.4) (2020-01-06)
97
98
99### Bug Fixes
100
101* **deps:** pin TypeScript below 3.7.0 ([f1ae7b6](https://www.github.com/googleapis/node-gtoken/commit/f1ae7b64ead1c918546ae5bbe8546dfb4ecc788a))
102* **deps:** update dependency jws to v4 ([#251](https://www.github.com/googleapis/node-gtoken/issues/251)) ([e13542f](https://www.github.com/googleapis/node-gtoken/commit/e13542f888a81ed3ced0023e9b78ed25264b1d1c))
103
104### [4.1.3](https://www.github.com/googleapis/node-gtoken/compare/v4.1.2...v4.1.3) (2019-11-15)
105
106
107### Bug Fixes
108
109* **deps:** use typescript ~3.6.0 ([#246](https://www.github.com/googleapis/node-gtoken/issues/246)) ([5f725b7](https://www.github.com/googleapis/node-gtoken/commit/5f725b71f080e83058b1a23340acadc0c8704123))
110
111### [4.1.2](https://www.github.com/googleapis/node-gtoken/compare/v4.1.1...v4.1.2) (2019-11-13)
112
113
114### Bug Fixes
115
116* **docs:** add jsdoc-region-tag plugin ([#242](https://www.github.com/googleapis/node-gtoken/issues/242)) ([994c5cc](https://www.github.com/googleapis/node-gtoken/commit/994c5ccf92731599aa63b84c29a9d5f6b1431cc5))
117
118### [4.1.1](https://www.github.com/googleapis/node-gtoken/compare/v4.1.0...v4.1.1) (2019-10-31)
119
120
121### Bug Fixes
122
123* **deps:** update gaxios to 2.1.0 ([#238](https://www.github.com/googleapis/node-gtoken/issues/238)) ([bb12064](https://www.github.com/googleapis/node-gtoken/commit/bb1206420388399ef8992efe54c70bdb3fdcd965))
124
125## [4.1.0](https://www.github.com/googleapis/node-gtoken/compare/v4.0.0...v4.1.0) (2019-09-24)
126
127
128### Features
129
130* allow upstream libraries to force token refresh ([#229](https://www.github.com/googleapis/node-gtoken/issues/229)) ([1fd4dd1](https://www.github.com/googleapis/node-gtoken/commit/1fd4dd1))
131
132## [4.0.0](https://www.github.com/googleapis/node-gtoken/compare/v3.0.2...v4.0.0) (2019-07-09)
133
134
135### ⚠ BREAKING CHANGES
136
137* This commit creates multiple breaking changes. The `getToken()`
138method previously returned `Promise<string>`, where the string was the
139`access_token` returned from the response. However, the `oauth2` endpoint could
140return a variety of other fields, such as an `id_token` in special cases.
141
142```js
143const token = await getToken();
144// old response: 'some.access.token'
145// new response: { access_token: 'some.access.token'}
146```
147
148To further support this change, the `GoogleToken` class no longer exposes
149a `token` variable. It now exposes `rawToken`, `accessToken`, and `idToken`
150fields which can be used to access the relevant values returned in the
151response.
152
153### Bug Fixes
154
155* expose all fields from response ([#218](https://www.github.com/googleapis/node-gtoken/issues/218)) ([d463370](https://www.github.com/googleapis/node-gtoken/commit/d463370))
156
157### [3.0.2](https://www.github.com/googleapis/node-gtoken/compare/v3.0.1...v3.0.2) (2019-06-26)
158
159
160### Bug Fixes
161
162* **docs:** make anchors work in jsdoc ([#215](https://www.github.com/googleapis/node-gtoken/issues/215)) ([c5f6c89](https://www.github.com/googleapis/node-gtoken/commit/c5f6c89))
163
164### [3.0.1](https://www.github.com/googleapis/node-gtoken/compare/v3.0.0...v3.0.1) (2019-06-13)
165
166
167### Bug Fixes
168
169* **docs:** move to new client docs URL ([#212](https://www.github.com/googleapis/node-gtoken/issues/212)) ([b7a8c75](https://www.github.com/googleapis/node-gtoken/commit/b7a8c75))
170
171## [3.0.0](https://www.github.com/googleapis/node-gtoken/compare/v2.3.3...v3.0.0) (2019-05-07)
172
173
174### Bug Fixes
175
176* **deps:** update dependency gaxios to v2 ([#191](https://www.github.com/googleapis/node-gtoken/issues/191)) ([da65ea7](https://www.github.com/googleapis/node-gtoken/commit/da65ea7))
177* **deps:** update dependency google-p12-pem to v2 ([#196](https://www.github.com/googleapis/node-gtoken/issues/196)) ([b510f06](https://www.github.com/googleapis/node-gtoken/commit/b510f06))
178* fs.readFile does not exist in browser ([#186](https://www.github.com/googleapis/node-gtoken/issues/186)) ([a16d8e7](https://www.github.com/googleapis/node-gtoken/commit/a16d8e7))
179
180
181### Build System
182
183* upgrade engines field to >=8.10.0 ([#194](https://www.github.com/googleapis/node-gtoken/issues/194)) ([ee4d6c8](https://www.github.com/googleapis/node-gtoken/commit/ee4d6c8))
184
185
186### BREAKING CHANGES
187
188* upgrade engines field to >=8.10.0 (#194)
189
190## v2.3.3
191
19203-13-2019 14:54 PDT
193
194### Bug Fixes
195- fix: propagate error message ([#173](https://github.com/google/node-gtoken/pull/173))
196
197### Documentation
198- docs: update links in contrib guide ([#171](https://github.com/google/node-gtoken/pull/171))
199- docs: move CONTRIBUTING.md to root ([#166](https://github.com/google/node-gtoken/pull/166))
200- docs: add lint/fix example to contributing guide ([#164](https://github.com/google/node-gtoken/pull/164))
201
202### Internal / Testing Changes
203- build: Add docuploader credentials to node publish jobs ([#176](https://github.com/google/node-gtoken/pull/176))
204- build: use node10 to run samples-test, system-test etc ([#175](https://github.com/google/node-gtoken/pull/175))
205- build: update release configuration
206- chore(deps): update dependency mocha to v6
207- build: use linkinator for docs test ([#170](https://github.com/google/node-gtoken/pull/170))
208- build: create docs test npm scripts ([#169](https://github.com/google/node-gtoken/pull/169))
209- build: test using @grpc/grpc-js in CI ([#168](https://github.com/google/node-gtoken/pull/168))
210- build: ignore googleapis.com in doc link check ([#162](https://github.com/google/node-gtoken/pull/162))
211- build: check for 404s on all docs
212
213## v2.3.2
214
21501-09-2019 13:40 PST
216
217### Documentation
218- docs: generate docs with compodoc ([#154](https://github.com/googleapis/node-gtoken/pull/154))
219- docs: fix up the readme ([#153](https://github.com/googleapis/node-gtoken/pull/153))
220
221### Internal / Testing Changes
222- build: Re-generated to pick up changes in the API or client library generator. ([#158](https://github.com/googleapis/node-gtoken/pull/158))
223- build: check broken links in generated docs ([#152](https://github.com/googleapis/node-gtoken/pull/152))
224- fix: add a system test and get it passing ([#150](https://github.com/googleapis/node-gtoken/pull/150))
225- chore(build): inject yoshi automation key ([#149](https://github.com/googleapis/node-gtoken/pull/149))
226
227## v2.3.1
228
22912-10-2018 15:28 PST
230
231### Dependencies
232- fix(deps): update dependency pify to v4 ([#87](https://github.com/google/node-gtoken/pull/87))
233- fix(deps): use gaxios for http requests ([#125](https://github.com/google/node-gtoken/pull/125))
234
235### Internal / Testing Changes
236- build: add Kokoro configs for autorelease ([#143](https://github.com/google/node-gtoken/pull/143))
237- chore: always nyc report before calling codecov ([#141](https://github.com/google/node-gtoken/pull/141))
238- chore: nyc ignore build/test by default ([#140](https://github.com/google/node-gtoken/pull/140))
239- chore: update synth metadata and templates ([#138](https://github.com/google/node-gtoken/pull/138))
240- fix(build): fix system key decryption ([#133](https://github.com/google/node-gtoken/pull/133))
241- chore(deps): update dependency typescript to ~3.2.0 ([#132](https://github.com/google/node-gtoken/pull/132))
242- chore: add a synth.metadata
243- chore(deps): update dependency gts to ^0.9.0 ([#127](https://github.com/google/node-gtoken/pull/127))
244- chore: update eslintignore config ([#126](https://github.com/google/node-gtoken/pull/126))
245- chore: use latest npm on Windows ([#124](https://github.com/google/node-gtoken/pull/124))
246- chore: update CircleCI config ([#123](https://github.com/google/node-gtoken/pull/123))
247- chore: include build in eslintignore ([#120](https://github.com/google/node-gtoken/pull/120))
248- chore: update issue templates ([#116](https://github.com/google/node-gtoken/pull/116))
249- chore: remove old issue template ([#114](https://github.com/google/node-gtoken/pull/114))
250- build: run tests on node11 ([#113](https://github.com/google/node-gtoken/pull/113))
251- chore(deps): update dependency nock to v10 ([#111](https://github.com/google/node-gtoken/pull/111))
252- chores(build): do not collect sponge.xml from windows builds ([#112](https://github.com/google/node-gtoken/pull/112))
253- chore(deps): update dependency typescript to ~3.1.0 ([#110](https://github.com/google/node-gtoken/pull/110))
254- chores(build): run codecov on continuous builds ([#109](https://github.com/google/node-gtoken/pull/109))
255- chore: update new issue template ([#108](https://github.com/google/node-gtoken/pull/108))
256- chore: update CI config ([#105](https://github.com/google/node-gtoken/pull/105))
257- Update kokoro config ([#103](https://github.com/google/node-gtoken/pull/103))
258- Update CI config ([#101](https://github.com/google/node-gtoken/pull/101))
259- Don't publish sourcemaps ([#99](https://github.com/google/node-gtoken/pull/99))
260- Update kokoro config ([#97](https://github.com/google/node-gtoken/pull/97))
261- test: remove appveyor config ([#96](https://github.com/google/node-gtoken/pull/96))
262- Update CI config ([#95](https://github.com/google/node-gtoken/pull/95))
263- Enable prefer-const in the eslint config ([#94](https://github.com/google/node-gtoken/pull/94))
264- Enable no-var in eslint ([#93](https://github.com/google/node-gtoken/pull/93))
265- Update CI config ([#92](https://github.com/google/node-gtoken/pull/92))
266- Add synth and update CI config ([#91](https://github.com/google/node-gtoken/pull/91))
267- Retry npm install in CI ([#90](https://github.com/google/node-gtoken/pull/90))
268- chore(deps): update dependency nyc to v13 ([#88](https://github.com/google/node-gtoken/pull/88))
269- chore: ignore package-log.json ([#86](https://github.com/google/node-gtoken/pull/86))
270- chore: update renovate config ([#83](https://github.com/google/node-gtoken/pull/83))
271- chore(deps): lock file maintenance ([#85](https://github.com/google/node-gtoken/pull/85))
272- chore: remove greenkeeper badge ([#82](https://github.com/google/node-gtoken/pull/82))
273- test: throw on deprecation ([#81](https://github.com/google/node-gtoken/pull/81))
274- chore(deps): update dependency typescript to v3 ([#80](https://github.com/google/node-gtoken/pull/80))
275- chore: move mocha options to mocha.opts ([#78](https://github.com/google/node-gtoken/pull/78))
276- chore(deps): lock file maintenance ([#79](https://github.com/google/node-gtoken/pull/79))
277- test: use strictEqual in tests ([#76](https://github.com/google/node-gtoken/pull/76))
278- chore(deps): lock file maintenance ([#77](https://github.com/google/node-gtoken/pull/77))
279- chore(deps): update dependency typescript to ~2.9.0 ([#75](https://github.com/google/node-gtoken/pull/75))
280- chore: Configure Renovate ([#74](https://github.com/google/node-gtoken/pull/74))
281- Update gts to the latest version 🚀 ([#73](https://github.com/google/node-gtoken/pull/73))
282- Add Code of Conduct
283- build: start testing against Node 10 ([#69](https://github.com/google/node-gtoken/pull/69))
284- chore(package): update nyc to version 12.0.2 ([#67](https://github.com/google/node-gtoken/pull/67))
285- chore(package): update @types/node to version 10.0.3 ([#65](https://github.com/google/node-gtoken/pull/65))
286
287### 2.0.0
288New features:
289- API now supports callback and promise based workflows
290
291Breaking changes:
292- `GoogleToken` is now a class type, and must be instantiated.
293- `GoogleToken.expires_at` renamed to `GoogleToken.expiresAt`
294- `GoogleToken.raw_token` renamed to `GoogleToken.rawToken`
295- `GoogleToken.token_expires` renamed to `GoogleToken.tokenExpires`