particle-api-js 11.1.6 → 12.0.0

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.
Files changed (85) hide show
  1. package/README.md +90 -10
  2. package/dist/particle.min.js +1 -1
  3. package/dist/particle.min.js.map +1 -1
  4. package/fs.d.ts +2 -0
  5. package/lib/fs.d.ts +2 -0
  6. package/lib/fs.js +3 -0
  7. package/lib/package.json +109 -0
  8. package/lib/src/Agent.d.ts +38 -0
  9. package/lib/src/Agent.d.ts.map +1 -0
  10. package/lib/src/Agent.js +228 -0
  11. package/lib/src/Agent.js.map +1 -0
  12. package/lib/src/Client.d.ts +80 -0
  13. package/lib/src/Client.d.ts.map +1 -0
  14. package/lib/src/Client.js +104 -0
  15. package/lib/src/Client.js.map +1 -0
  16. package/lib/src/Defaults.d.ts +6 -0
  17. package/lib/src/Defaults.d.ts.map +1 -0
  18. package/lib/src/Defaults.js +12 -0
  19. package/lib/src/Defaults.js.map +1 -0
  20. package/lib/src/EventStream.d.ts +29 -0
  21. package/lib/src/EventStream.d.ts.map +1 -0
  22. package/lib/src/EventStream.js +270 -0
  23. package/lib/src/EventStream.js.map +1 -0
  24. package/lib/src/Library.d.ts +33 -0
  25. package/lib/src/Library.d.ts.map +1 -0
  26. package/lib/src/Library.js +19 -0
  27. package/lib/src/Library.js.map +1 -0
  28. package/{src/Particle.js → lib/src/Particle.d.ts} +797 -1653
  29. package/lib/src/Particle.d.ts.map +1 -0
  30. package/lib/src/Particle.js +2794 -0
  31. package/lib/src/Particle.js.map +1 -0
  32. package/lib/src/types/common.d.ts +71 -0
  33. package/lib/src/types/common.d.ts.map +1 -0
  34. package/lib/src/types/common.js +3 -0
  35. package/lib/src/types/common.js.map +1 -0
  36. package/lib/src/types/index.d.ts +4 -0
  37. package/lib/src/types/index.d.ts.map +1 -0
  38. package/lib/src/types/index.js +20 -0
  39. package/lib/src/types/index.js.map +1 -0
  40. package/lib/src/types/requests.d.ts +667 -0
  41. package/lib/src/types/requests.d.ts.map +1 -0
  42. package/lib/src/types/requests.js +3 -0
  43. package/lib/src/types/requests.js.map +1 -0
  44. package/lib/src/types/responses.d.ts +472 -0
  45. package/lib/src/types/responses.d.ts.map +1 -0
  46. package/lib/src/types/responses.js +3 -0
  47. package/lib/src/types/responses.js.map +1 -0
  48. package/package.json +34 -14
  49. package/scripts/postprocess-docs.js +306 -0
  50. package/typedoc.json +20 -0
  51. package/.circleci/config.yml +0 -104
  52. package/.nvmrc +0 -1
  53. package/CHANGELOG.md +0 -401
  54. package/EventStream-e2e-browser.html +0 -39
  55. package/EventStream-e2e-node.js +0 -34
  56. package/RELEASE.md +0 -12
  57. package/bower.json +0 -30
  58. package/docs/api.md +0 -2577
  59. package/eslint.config.mjs +0 -7
  60. package/examples/login/login.html +0 -17
  61. package/karma.conf.js +0 -80
  62. package/src/Agent.js +0 -397
  63. package/src/Client.js +0 -171
  64. package/src/Defaults.js +0 -8
  65. package/src/EventStream.js +0 -269
  66. package/src/Library.js +0 -33
  67. package/test/Agent.integration.js +0 -23
  68. package/test/Agent.spec.js +0 -488
  69. package/test/Client.spec.js +0 -216
  70. package/test/Defaults.spec.js +0 -30
  71. package/test/EventStream.feature +0 -65
  72. package/test/EventStream.spec.js +0 -263
  73. package/test/FakeAgent.js +0 -27
  74. package/test/Library.spec.js +0 -40
  75. package/test/Particle.integration.js +0 -38
  76. package/test/Particle.spec.js +0 -3198
  77. package/test/fixtures/index.js +0 -15
  78. package/test/fixtures/libraries.json +0 -33
  79. package/test/fixtures/library.json +0 -31
  80. package/test/fixtures/libraryVersions.json +0 -211
  81. package/test/out.tmp +0 -0
  82. package/test/support/FixtureHttpServer.js +0 -28
  83. package/test/test-setup.js +0 -17
  84. package/tsconfig.json +0 -17
  85. package/webpack.config.js +0 -46
package/CHANGELOG.md DELETED
@@ -1,401 +0,0 @@
1
- # changelog
2
-
3
- ## 11.1.6 - 20 September 2025
4
- * Fix request params to support `FormData` passed in the data argument
5
- * Update docs on queries receiving `data`
6
- * Update eslint configuration
7
-
8
- ## 11.1.5 - 19 September 2025
9
- * Ensure node 22 works as expected
10
- * Remove node 12 validations
11
- * Update eslint configuration
12
-
13
- ## 11.1.4 - 20 August 2025
14
- * Clarify license is Apache 2.0
15
-
16
- ## 11.1.3 - 22 July 2025
17
- * Bump form-data to resolve security warning
18
-
19
- ## 11.1.2 - 11 December 2024
20
- * Add context docs for x-particle-tool and x-particle-project headers
21
-
22
- ## 11.1.1 - 5 November 2024
23
- * Workaround for Firefox failing to open multiple event streams
24
-
25
- ## 11.1.0 - 3 October 2024
26
- * Re-add `deleteAccessToken` method, but with basic auth removed
27
-
28
- ## 11.0.0 - 1 October 2024
29
- * Remove `listAccessTokens` and `deleteAccessToken` methods that relied on HTTP basic auth
30
- * Update EventStream to send access_token in the Authorization header instead. No functional change
31
-
32
- ## 10.6.0 - 21 August 2024
33
- * Add DeviceOS versions endpoints
34
-
35
- ## 10.5.1 - 21 June 2024
36
- * Don't add an empty query string to the URL
37
-
38
- ## 10.5.0 - 14 June 2024
39
- * Add `unprotectDevice`
40
- * Remove `changeProduct`
41
-
42
- ## 10.4.3 - 25 March 2024
43
- * Add `utm` paramater to `createUser`
44
-
45
- ## 10.4.2 - 3 January 2024
46
- * Add `setMode` arg to `setLedgerInstance`
47
- * Fix a few incorrect logic function JSDocs
48
-
49
- ## 10.4.1 - 2 January 2024
50
-
51
- * Fix `setLedgerInstance` taking wrong argument and passing a bad request body to the API
52
-
53
- ## 10.4.0 - 19 December 2023
54
-
55
- * Add `listLedgerInstanceVersions` function
56
- * Add `getLedgerInstanceVersion` function
57
-
58
- ## 10.3.1 - 6 December 2023
59
-
60
- * Add `todayStats` query option to listLogicFunctions
61
- * Add `scope`, `archived`, `page`, and `perPage` query options to listLedgers
62
- * Add `page` and `perPage` query options to listLedgerInstances
63
- * Add JSDocs for constructor
64
- * Fix JSDocs across most functions in the library to be more accurate
65
-
66
- ## 10.3.0 - 7 November 2023
67
-
68
- * Add support for sandbox accounts on all logic/ledger APIs by allowing the omission of the `org` property
69
- * Add `executeLogic` function for testing logic functions before deploying them
70
-
71
- ## 10.2.0 - 6 October 2023
72
-
73
- * Migrate LogicBlocks methods to LogicFunctions, LogicTriggers, and LogicRuns
74
-
75
- ## 10.1.0 - 8 Sept 2023
76
-
77
- * Use wepback to bundle for browser use
78
- * Remove babel, browserify and their related dependencies
79
- * Adds support for checkJS loose type/docs validations
80
-
81
- ## 10.0.0 - 8 Sept 2023
82
-
83
- * Change library to handle requests from `superagent` to `fetch`/`node-fetch`
84
-
85
- ## 9.4.1 - 17 June 2022
86
-
87
- * Fixes incompatible versions of `eslint`, `chai`, `sinon-chai` and `chai-as-promised`.
88
-
89
- ## 9.4.0 - 14 June 2022
90
-
91
- * Adds `.setDefaultAuth(auth)` so token authenticated methods don't need to pass their own auth token.
92
- * Adds support for `auth` option in Particle constructor, calls `.setDefaultAuth()` if provided
93
- * Fixes bug where `.setBaseUrl(baseUrl)` was not honored for `.getEventStream()` method (sc-105035)
94
-
95
- ## 9.3.0 - 8 June 2022
96
- * Adds `.setBaseUrl(baseUrl)` to override backend api endpoint
97
-
98
- ## 9.2.0 - 30 May 2022
99
- * Move to `node@16` and `npm@8` for local development
100
-
101
- ## 9.1.2 - 9 December 2021
102
- * Fix library download
103
-
104
- ## 9.1.1 - 7 December 2021
105
- * Use unforked copy of `stream-http` dependency
106
-
107
- ## 9.1.0 - 8 December 2020
108
- * `.listAccessTokens()` accepts `otp` option to support users with MFA enabled
109
-
110
- ## 9.0.2 - 28 July 2020
111
- * Add `.deleteActiveAccessTokens()` method
112
- * Add `invalidateTokens` arguments to `.confirmMfa()` and `.changeUsername()` methods
113
-
114
- ## 9.0.1 - 1 June 2020
115
- * Add `.getProductDeviceConfiguration()` and `.getProductDeviceConfigurationSchema()` methods
116
-
117
- ## 9.0.0 - 20 May 2020
118
- * Add support for configuration and location services
119
- * All top-level api methods optionally accept a `headers` option object
120
- * Breaking: Base http methods (`.get()`, `.put()`, etc) on agent and particle classes accept options object vs. positional arguments ([see here](https://github.com/particle-iot/particle-api-js/pull/115/commits/c209a43ebcda53b9dc6857e1b54228906f506feb))
121
- * Breaking: `.downloadFile()` method uses `uri` option (vs. `url`) ([docs](https://github.com/particle-iot/particle-api-js/blob/master/docs/api.md#downloadfile))
122
- * Breaking: Refactored options object for the `.createWebhook()` method - hook-related options are now passed in via `options.hook` ([docs](https://github.com/particle-iot/particle-api-js/blob/master/docs/api.md#createwebhook))
123
-
124
- ## 8.4.0 - 28 April 2020
125
- * Allow invalidating access tokens when changing password
126
-
127
- ## 8.3.0 - 11 February 2020
128
- * Add delete user
129
-
130
- ## 8.2.1 - 4 February 2020
131
- * fix file download methods `.downloadFile()`, `.downloadFirmwareBinary()`, and `.downloadProductFirmware()` [PR #112](https://github.com/particle-iot/particle-api-js/pull/112)
132
-
133
- ## 8.2.0 - 28 January 2020
134
- * `.addDeviceToProduct()` accepts `file` option to facillitate bulk importing of devices [PR #109](https://github.com/particle-iot/particle-api-js/pull/109)
135
-
136
- ## 8.1.0 - 24 January 2020
137
- * Add support for `groups` query parameter when listing product devices via `.listDevices()` [PR #108](https://github.com/particle-iot/particle-api-js/pull/108)
138
- * Update `eslint` and related configuration [PR #107](https://github.com/particle-iot/particle-api-js/pull/107)
139
-
140
- ## 8.0.1 - 2 December 2019
141
- * Update to latest superagent to fix deprecation warnings in Node v12
142
-
143
- ## 8.0.0 - 30 July 2019
144
-
145
- * EventStream returned by getEventStream handles errors better [PR #99](https://github.com/particle-iot/particle-api-js/pull/99).
146
- **Breaking changes for EventStream:**
147
- - Only emits a single event named 'event' for each Particle event received instead of 2 events, one named 'event' and another named after the Particle event name. This behavior caused EventStream to disconnects if a Particle event named 'error' was published.
148
- - Does not emit the 'error' event when a network error happens. Instead it emits 'disconnect' and automatically reconnects.
149
-
150
- ## 7.4.1 - 6 May 2019
151
- * Do not require network ID to remove a device from its network [PR #103](https://github.com/particle-iot/particle-api-js/pull/103)
152
-
153
- ## 7.4.0 - 27 Feb 2019
154
- * Add support for mesh network management [PR #98](https://github.com/particle-iot/particle-api-js/pull/98)
155
-
156
- ## 7.3.0 - 10 Jan 2019
157
- * Support flashing product devices [PR #97](https://github.com/particle-iot/particle-api-js/pull/97)
158
-
159
- ## 7.2.3 - 4 Aug 2018
160
- * Add sendOtp method to allow users enrolled in MFA/Two-Step Auth to login [PR #92](https://github.com/particle-iot/particle-api-js/pull/92)
161
-
162
- ## 7.2.2 - 23 Jul 2018
163
- * Fix npm api key for publishing to registry
164
-
165
- ## 7.2.1 - 23 Jul 2018
166
- * Support enrolling user in MFA/Two-step authentication
167
-
168
- ## 7.2.0 - 22 Mar 2018
169
- * Support changing user's username(i.e., email) and password [PR #84](https://github.com/particle-iot/particle-api-js/pull/84)
170
-
171
- ## 7.1.1 - 13 Feb 2018
172
- * Fix country parameter for activate sim [PR #81](https://github.com/particle-iot/particle-api-js/pull/81)
173
-
174
- ## 7.1.0 - 17 Jan 2018
175
-
176
- * Update jsDelivr link [PR #66](https://github.com/particle-iot/particle-api-js/pull/66). Thanks @LukasDrgon!
177
- * Stop auto reconnecting when event stream is intentionally disconnected [PR #69](https://github.com/particle-iot/particle-api-js/pull/69). Thanks @spacetc62!
178
- * Add createCustomer [PR #78](https://github.com/particle-iot/particle-api-js/pull/78). Thanks @monkeytronics!
179
- * Fix event stream exception when it is an HTML response [PR #64](https://github.com/particle-iot/particle-api-js/pull/64). Thanks @spacetc62!
180
- * Update links after GitHub organization rename to `particle-iot` [PR #79](https://github.com/particle-iot/particle-api-js/pull/79)
181
-
182
- ## 7.0.1 - 16 Nov 2017
183
- * Add loginAsClientOwner method
184
-
185
- ## 7.0.0 - 7 Nov 2017
186
- * Update to latest superagent with support for nested directory. **Drops support for Node versions earlier than 4.**
187
- * Add serial number endpoint
188
-
189
- ## 6.6.2 - 15 Sep 2017
190
- * Fix nested directories bug
191
-
192
- ## 6.6.1 - 14 Sep 2017
193
- * Update form-data to v1.0.0-relativepath.2
194
-
195
- ## 6.6.0 - 12 Sep 2017
196
-
197
- * Add support for deleting current token
198
-
199
- ## 6.5.0 - 02 May 2017
200
-
201
- * Add support for all product API endpoints.
202
- * Add support for sending additional context with each call.
203
-
204
- ## 6.4.3 - 15 Feb 2017
205
-
206
- * Create a wrapper for `listBuildTargets` in `Client.js`.
207
- * Marked `compileCode`, `signalDevice`, `listDevices` and `listBuildTargets` as deprecated. Those methods will be removed in 6.5
208
-
209
- ## 6.4.2 - 05 Jan 2017
210
-
211
- * Create a wrapper for `listDevices` in `Client.js`.
212
-
213
- ## 6.4.1 - 15 Dec 2016
214
-
215
- * Add scopes to library listing
216
-
217
- ## 6.4.0 - 09 Nov 2016
218
-
219
- * Create a wrapper for `signalDevice` in `Client.js`.
220
-
221
- ## 6.3.0 - 31 Oct 2016
222
-
223
- * Add support for account verification endpoint via verifyUser function
224
- * Change account_info input parameter in createUser and setUserInfo to be camel case - accountInfo
225
-
226
- ## 6.2.0 - 19 Oct 2016
227
-
228
- * Add support for account information fields in createUser and setUserInfo
229
- * Add "shortErrorDescription" in response body to contain English description only
230
-
231
- ## 6.1.0 - 19 Oct 2016
232
-
233
- * Add library publish
234
-
235
- ## 6.0.8 - 17 Oct 2016
236
-
237
- * Rename library publish to library contribute
238
-
239
- ## 6.0.7 - 29 Sept 2016
240
-
241
- * Add library versions endpoint
242
-
243
- ## 6.0.6 - 19 Sept 2016
244
-
245
- * Add library delete
246
-
247
- ## 6.0.5 - 8 Sept 2016
248
-
249
- * Add library publish
250
-
251
- ## 6.0.4 - 30 Aug 2016
252
-
253
- * Use only HTTP dependencies to be able to install on computers without git
254
-
255
- ## 6.0.3 - 25 Aug 2016
256
-
257
- * Support nested directories when compiling sources
258
-
259
- ## 6.0.2 - 23 Aug 2016
260
-
261
- * Add compile code to client
262
-
263
- ## 6.0.1 - 22 Aug 2016
264
-
265
- * Fix the login method content type
266
-
267
- ## 6.0.0 - 17 Aug 2016
268
-
269
- * Add libraries endpoints
270
- * Add stateful client
271
- * Add object interface for libraries
272
-
273
- ## 5.3.1 - 2 Aug 2016
274
-
275
- * Handle empty event names in the event stream.
276
-
277
- ## 5.3.0 - 8 June 2016
278
-
279
- * Add details to README
280
- * Adding responseTemplate and responseTopic to webhook creation. Thanks @acasas! [#20](https://github.com/particle-iot/particle-api-js/pull/20)
281
- * Add password reset route [#27](https://github.com/particle-iot/particle-api-js/pull/27)
282
- * Make event stream compatible with new product routes [#28](https://github.com/particle-iot/particle-api-js/pull/28)
283
-
284
- ## 5.2.7 - 2 May 2016
285
-
286
- * Fix files parameter default name to be `file` and not `file1`.
287
-
288
- ## 5.2.6 - 25 Mar 2016
289
-
290
- * Don't double publish event stream events if the event is named `event`.
291
-
292
- ## 5.2.5 - 21 Mar 2016
293
-
294
- * Handle `JSON.parse` exceptions when parsing event stream
295
-
296
- ## 5.2.4 - 21 Mar 2016
297
-
298
- * `flashDevice` `latest` also needs to be a string, not a boolean. [#12](https://github.com/particle-iot/particle-api-js/issues/12)
299
-
300
- ## 5.2.3 - 11 Mar 2016
301
-
302
- * Remove setting of `User-Agent` header because that is not allowed in browsers. [#10](https://github.com/particle-iot/particle-api-js/issues/10)
303
-
304
- ## 5.2.2 - 3 Mar 2016
305
-
306
- * Fix named event streams by encoding event name.
307
- * Move access token to query string to eliminate preflight CORS request.
308
- * Use fork of `stream-http` that prevents usage of `fetch` because it does not abort.
309
- * Use correct streaming mode of `stream-http`.
310
-
311
- ## 5.2.1 - 3 Mar 2016
312
-
313
- * Improve cleanup on `abort`.
314
-
315
- ## 5.2.0 - 3 Mar 2016
316
-
317
- * Add support for organization and product slugs to `getEventStream`.
318
-
319
- ## 5.1.1 - 26 Feb 2016
320
-
321
- * `JSON.parse` HTTP response body for `getEventStream` error case.
322
-
323
- ## 5.1.0 - 26 Feb 2016
324
-
325
- * Fix event stream. [#8](https://github.com/particle-iot/particle-api-js/issues/8)
326
- * Add `downloadFirmwareBinary`
327
- * Add ability to intercept requests for debugging
328
- * Use library version for User-Agent
329
- * Allow request transfer for `claimDevice`
330
- * `signalDevice` needs to use strings, not numbers.
331
- * `compileCode` `latest` should be a string, not a boolean.
332
-
333
- ## 5.0.2 - 24 Feb 2016
334
-
335
- * Remove trailing slash from `baseUrl`. [#7](https://github.com/particle-iot/particle-api-js/issues/7)
336
-
337
- ## 5.0.1 - 18 Feb 2016
338
-
339
- * Remove need for `require('particle-api-js').default` in CommonJS usage. It is now just `require('particle-api-js')`.
340
-
341
- ## 5.0.0 - 18 Feb 2016
342
-
343
- * Removed need for `babel-runtime`.
344
- * Add `flashDevice`, `compileCode`, and `listAccessTokens`.
345
- * Add missing options to `createWebhook`.
346
- * Remove `downloadFirmwareBinary`.
347
-
348
- ## 4.2.1 - 8 Feb 2016
349
-
350
- * Update contributors.
351
-
352
- ## 4.2.0 - 8 Feb 2016
353
-
354
- * Add `downloadFirmwareBinary`.
355
-
356
- ## 4.1.0 - 14 Jan 2016
357
-
358
- * Add `validatePromoCode`.
359
- * `activateSIM` now requires `promo_code` and `action`.
360
-
361
- ## 4.0.2 - 16 Nov 2015
362
-
363
- * Fix old `code` reference.
364
-
365
- ## 4.0.1 - 16 Nov 2015
366
-
367
- * Change `code` to `statusCode` in rejection.
368
-
369
- ## 4.0.0 - 16 Nov 2015
370
-
371
- * Add `statusCode` to Promise fulfillment.
372
-
373
- ## 3.0.3 - 6 Nov 2015
374
-
375
- * Add `listBuildTargets`.
376
-
377
- ## 3.0.2 - 5 Nov 2015
378
-
379
- * Add `countryCode` to `activateSIM`.
380
-
381
- ## 3.0.1 - 26 Oct 2015
382
-
383
- * Fix `activateSIM`.
384
-
385
- ## 3.0.0 - 26 Oct 2015
386
-
387
- * Replace `request` with `superagent`.
388
- * Add `iccid` to `getClaimCode`.
389
- * Only use form encoding on `login` and `signup`.
390
-
391
- ## 2.0.1 - 23 Oct 2015
392
-
393
- * Removed browser entry in package.json. This makes it possible to bundle the module with other apps that use browserify without causing relative pathing issues.
394
-
395
- ## 2.0.0 - 20 Oct 2015
396
-
397
- * Improved error handling and reporting. Network errors and HTTP errors now both return `code` property that can be more easily used to programmatically detect error types.
398
-
399
- ## 1.0.1 - 24 Sep 2015
400
-
401
- ## 1.0.0 - 24 Sep 2015
@@ -1,39 +0,0 @@
1
- <!--
2
- End-to-end test program for the event stream in the browser
3
-
4
- Steps:
5
- - npm run build
6
- - Replace the path to particle.min.js
7
- - Replace your access token in `auth`
8
- - Open this file in the browser
9
- - Follow the scenarios in EventStream.feature
10
-
11
- -->
12
-
13
- <html>
14
- <body>
15
- <p>Open the Javascript Console</p>
16
- <script type="text/javascript" src="file:///home/user/path/to/particle-api-js/dist/particle.min.js"></script>
17
- <script type="text/javascript">
18
-
19
-
20
- const baseUrl = 'http://localhost:9090';
21
- const auth = '<my-token>';
22
- const particle = new Particle({ baseUrl });
23
-
24
- particle.getEventStream({ deviceId: 'mine', auth }).then(stream => {
25
- console.log('event stream connected');
26
-
27
- ['event', 'error', 'disconnect', 'reconnect', 'reconnect-success', 'reconnect-error'].forEach(eventName => {
28
- stream.on(eventName, (arg) => {
29
- console.log(eventName, arg);
30
- });
31
- });
32
-
33
- }).catch(function (err) {
34
- console.log(err);
35
- });
36
-
37
- </script>
38
- </body>
39
- </html>
@@ -1,34 +0,0 @@
1
- /*
2
-
3
- End-to-end test program for the event stream with Node
4
-
5
- Steps:
6
- - PARTICLE_API_TOKEN=<my-token> node EventStream-e2e-node.js
7
- - Follow the scenarios in EventStream.feature
8
-
9
- */
10
- 'use strict';
11
- const Particle = require('./src/Particle');
12
- const baseUrl = process.env.PARTICLE_API_BASE_URL || 'http://localhost:9090';
13
- const auth = process.env.PARTICLE_API_TOKEN;
14
- const particle = new Particle({ baseUrl });
15
-
16
-
17
- /* eslint-disable no-console */
18
- particle.getEventStream({ deviceId: 'mine', auth })
19
- .then(stream => {
20
- console.log('event stream connected');
21
-
22
- ['event', 'error', 'disconnect', 'reconnect', 'reconnect-success', 'reconnect-error']
23
- .forEach(eventName => {
24
- stream.on(eventName, (arg) => {
25
- console.log(eventName, arg);
26
- });
27
- });
28
- })
29
- .catch((err) => {
30
- console.error(err);
31
- process.exit(1);
32
- });
33
- /* eslint-enable no-console */
34
-
package/RELEASE.md DELETED
@@ -1,12 +0,0 @@
1
- # Releasing a new version
2
-
3
- 1. Merge your changes to master and be on `master`
4
- 2. Run `npm version <major|minor|patch>`
5
- 1. This builds the distribution file `particle.js.min` and generates the
6
- API documentation. Before the command finishes, update `CHANGELOG.md`.
7
- 3. Push to origin `git push --follow-tags`
8
- 4. CircleCI will publish the npm package to the `latest` tag
9
- 5. Create a release on GitHub with the notes from the `CHANGELOG.md`
10
- 6. Point your project to the new version `npm install particle-api-js@latest`
11
-
12
- - After updating major version, update the installation instructions in the [docs](https://github.com/particle-iot/docs/blob/master/src/content/reference/cloud-apis/javascript.md)
package/bower.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "name": "particle-api-js",
3
- "homepage": "https://github.com/particle-iot/particle-api-js",
4
- "authors": [
5
- "Bryce Kahle <bryce@particle.io>"
6
- ],
7
- "description": "Particle API JavaScript library",
8
- "main": "dist/particle.min.js",
9
- "moduleType": [
10
- "amd",
11
- "globals",
12
- "node"
13
- ],
14
- "keywords": [
15
- "particle",
16
- "IoT"
17
- ],
18
- "license": "LGPL-3.0",
19
- "ignore": [
20
- "**/.*",
21
- "node_modules",
22
- "bower_components",
23
- "test",
24
- "tests"
25
- ],
26
- "repository": {
27
- "type": "git",
28
- "url": "git://github.com/particle-iot/particle-api-js.git"
29
- }
30
- }