UNPKG

9.48 kBMarkdownView Raw
1# 3.1.0 (2017-02-21)
2
3### Features
4
5* **client** Add new connection callback onNoServerUrlAvailable
6* **client** Add new connection callback onConnectionToServerFail
7* **client** Add getServers method to expose server urls
8* **client** Add createAsyncMacroService method to provide promise based macro services instance
9* **internal** Improve code separation to support tree shaking
10
11### Fixes
12
13* **persistence** Catch SessionPersistenceStrategy error in private navigation mode
14
15# 3.1.0-alpha.9 (2017-01-18)
16
17* **persistence** Catch SessionPersistenceStrategy error in private navigation mode
18
19# 3.0.1 (2017-01-18)
20
21### Fixes
22
23* **persistence** Catch SessionPersistenceStrategy error in private navigation mode
24
25# 3.1.0-alpha.8 (2017-01-09)
26
27* **chore** Upgrade eslint dependency to 3.13.0
28
29# 3.1.0-alpha.7 (2017-01-09)
30
31* **env** Update engines directive to "node": ">=6"
32
33# 3.1.0-alpha.6 (2017-01-02)
34
35* **client** Add new connection callback onNoServerUrlAvailable
36
37# 3.1.0-alpha.5 (2017-01-02)
38
39* **client** Add new connection callback onConnectionToServerFail
40
41# 3.1.0-alpha.4 (2017-01-02)
42
43* **npm** Bump to alpha.4 to avoid npm conflict
44
45# 3.1.0-alpha.3 (2017-01-02)
46
47* **client** Add getServers method to expose server urls
48
49# 3.1.0-alpha.2 (2016-11-14)
50
51* **internal** Improve code separation to support tree shaking
52
53# 3.1.0-alpha.1 (2016-11-04)
54
55* **client** Add createAsyncMacroService method to provide promise based macro services instance
56
57### Features
58
59# 3.0.0 (2016-10-24)
60
61### Changes
62
63* **client** Rename createService parameter from type to Type
64* **core:** Update lib/client, rename credentials to authentication
65
66### Fixes
67
68* **smart-client** Fix sessions persistence key generation
69
70### Features
71
72* **core** Add lib/smart-client
73* **test** ZetaPush core functionalities are now tested with Karma/Jasmine
74
75# 3.0.0-alpha.3 (2016-09-16)
76
77Major API modification
78
79### BREAKING CHANGES
80
81* **client** Rename createService parameter from type to Type
82
83**Before**
84
85```js
86// Create new service
87const service = new client.createService({
88 type: ZetaPush.services.Stack,
89 listener: {
90 list(message) {
91 console.log('on list', message)
92 }
93 }
94})
95```
96
97**After**
98
99```js
100// Create new service
101const service = new client.createService({
102 Type: ZetaPush.services.Stack,
103 listener: {
104 list(message) {
105 console.log('on list', message)
106 }
107 }
108})
109```
110
111# 3.0.0-alpha.2 (2016-09-06)
112
113### Fix
114
115* **smart-client** Fix sessions persistence key generation
116
117# 3.0.0-alpha.1 (2016-08-19)
118
119Major API modification
120
121### BREAKING CHANGES
122
123* **core:** Update lib/client, rename credentials to authentication
124
125**Before**
126
127```js
128// Create new ZetaPush Client
129const client = new ZetaPush.Client({
130 sandboxId: '<YOUR-SANDBOX-ID>',
131 credentials() {
132 return ZetaPush.AuthentFactory.createWeakHandshake({
133 token: null
134 })
135 }
136})
137```
138
139**After**
140
141```js
142// Create new ZetaPush Client
143const client = new ZetaPush.Client({
144 sandboxId: '<YOUR-SANDBOX-ID>',
145 authentication() {
146 return ZetaPush.Authentication.weak({
147 token: null
148 })
149 }
150})
151```
152
153### Features
154
155* **core** Add lib/smart-client
156* **test** ZetaPush core functionalities are now tested with Karma/Jasmine
157
158# 2.0.1 (2016-07-26)
159
160### Fixes
161
162* **cometd** Update cometd to 3.0.13 to fix network overflow on handshake failure with reconnect advice
163
164# 2.0.0 (2016-07-25)
165
166:tada: After a complete refactoring, ZetaPush 2.0 is production ready
167
168# 2.0.0-rc.3 (2016-07-15)
169
170### Fixes
171
172* **build** Improve build support with babel-plugin-transform-runtime
173
174# 2.0.0-rc.2 (2016-07-13)
175
176### Features
177
178* **core:** Update lib/client, add new transports option
179* **core:** Update lib/weak-client, add new transports option
180
181```js
182const client = new ZetaPush.WeakClient({
183 sandboxId: 'Y1k3xBDc',
184 transports: [ZetaPush.TransportTypes.LONG_POLLING]
185})
186```
187
188# 2.0.0-rc.1 (2016-07-12)
189
190Major API modification
191
192### BREAKING CHANGES
193
194* **core:** Update lib/authentication/handshake
195
196**Before**
197
198```js
199// Create new ZetaPush Client
200const client = new ZetaPush.Client({
201 sandboxId: '<YOUR-SANDBOX-ID>',
202 credentials() {
203 return ZetaPush.AuthentFactory.createWeakHandshake({
204 token: null
205 })
206 }
207})
208```
209
210**After**
211
212```js
213// Create new ZetaPush Client
214const client = new ZetaPush.Client({
215 sandboxId: '<YOUR-SANDBOX-ID>',
216 credentials() {
217 return ZetaPush.Authentication.weak({
218 token: null
219 })
220 }
221})
222```
223
224# 2.0.0-beta.23 (2016-07-08)
225
226### Fixes
227
228* **client** Expose user Id
229
230# 2.0.0-beta.22 (2016-07-07)
231
232### Changes
233
234* **tools** Build file is now generated via webpack instead of gulp
235
236# 2.0.0-beta.21 (2016-07-05)
237
238### Fixes
239
240* **stand by** Update cometd version version to fix stand by bug
241
242# 2.0.0-beta.20 (2016-07-05)
243
244### Changes
245
246* **log** Replace console.log in source code by cometd log layer
247* **examples** Update examples with new **zetapush.min.js** file name
248
249# 2.0.0-beta.19 (2016-07-04)
250
251### Changes
252
253* **dist** Add suffix min to build file
254
255# 2.0.0-beta.18 (2016-06-21)
256
257Major API modification
258
259### BREAKING CHANGES
260
261* **core:** Update lib/client.constructor()
262
263**Before**
264
265```js
266// Create new ZetaPush Client
267const client = new ZetaPush.Client({
268 sandboxId: '<YOUR-SANDBOX-ID>',
269 handshakeStrategy() {
270 return ZetaPush.AuthentFactory.createWeakHandshake({
271 token: null
272 })
273 }
274})
275```
276
277**After**
278
279```js
280// Create new ZetaPush Client
281const client = new ZetaPush.Client({
282 sandboxId: '<YOUR-SANDBOX-ID>',
283 credentials() {
284 return ZetaPush.AuthentFactory.createWeakHandshake({
285 token: null
286 })
287 }
288})
289```
290
291# 2.0.0-beta.17 (2016-06-20)
292
293Major API simplification
294
295### BREAKING CHANGES
296
297* **core:** Update lib/client.createService()
298* **core:** Update lib/client.unsubscribe()
299
300**Before**
301
302```js
303const service = client.createService({
304 type: ZetaPush.services.Stack,
305 listener: {
306 list(message) {
307 console.log('on list stack', message.data)
308 }
309 }
310})
311service.publisher.list({
312 stack: '<STACK-ID>'
313})
314```
315
316**After**
317
318```js
319const service = client.createService({
320 type: ZetaPush.services.Stack,
321 listener: {
322 list(message) {
323 console.log('on list stack', message.data)
324 }
325 }
326})
327service.list({
328 stack: '<STACK-ID>'
329})
330```
331
332# 2.0.0-beta.16 (2016-06-06)
333
334Major API simplification
335
336### BREAKING CHANGES
337
338* **core:** Add lib/client.createService()
339* **core:** Remove lib/client.createMacroPublisher()
340* **core:** Remove lib/client.createServicePublisher()
341* **core:** Remove lib/client.getSessionId()
342* **core:** Remove lib/client.subscribe()
343* **core:** Remove lib/client.createMacroPublisherSubscriber()
344* **core:** Remove lib/client.createServicePublisherSubscriber()
345* **core:** Remove lib/client.handshake()
346* **core:** Rename lib/definitions to lib/services
347
348**Before**
349
350```js
351var service = client.createServicePublisherSubscriber({
352 definition: ZetaPush.definitions.StackPublisherDefinition,
353 list: function (message) {
354 console.log('on list stack', message.data)
355 }
356 }
357})
358service.publisher.list({
359 stack: '<STACK-ID>'
360})
361```
362
363**After**
364
365```js
366const service = client.createService({
367 type: ZetaPush.services.Stack,
368 listener: {
369 list(message) {
370 console.log('on list stack', message.data)
371 }
372 }
373})
374service.publisher.list({
375 stack: '<STACK-ID>'
376})
377```
378
379# 2.0.0-beta.15 (2016-06-03)
380
381### Changes
382
383* **misc:** Update internal default deployment id
384
385# 2.0.0-beta.14 (2016-06-01)
386
387### Fix
388
389* **security:** Update forceHttps implementation
390
391# 2.0.0-beta.13 (2016-06-01)
392
393### Fix
394
395* **security:** Dont override forceHttps for WeakClient
396
397# 2.0.0-beta.12 (2016-06-01)
398
399### Changes
400
401* **security:** Force HTTPS when location.protocol is HTTPS
402
403# 2.0.0-beta.11 (2016-06-01)
404
405### Changes
406
407* **core:** Add shorthand methods to handle lifecycle connection events
408
409# 2.0.0-beta.10 (2016-06-01)
410
411### Changes
412
413* **core:** Use default deploymentId for all services and authentication
414
415# 2.0.0-beta.9
416
417### Changes
418
419* **core:** Add new API setLogLevel
420
421### Fix
422
423* **doc:** Update bower install path
424
425# 2.0.0-beta.8 (2016-05-23)
426
427### Changes
428
429* **core:** Use subscription queue to automatically reconnect subscription
430
431# 2.0.0-beta.7 (2016-05-23)
432
433### Fix
434
435* **core:** Fix connection status listener index
436
437# 2.0.0-beta.6 (2016-05-20)
438
439### Changes
440
441* **core:** Rename SmartClient to WeakClient
442
443# 2.0.0-beta.4 (2016-05-20)
444
445### Changes
446
447* **core:** Add new API isConnected
448
449# 2.0.0-beta.3 (2016-05-17)
450
451### Changes
452
453* **macro:** Allow hardFail and debug option for macro publisher
454
455# 2.0.0-beta.2 (2016-05-09)
456
457### Fix
458
459* **dependencies:** Update npm dependencies
460
461# 2.0.0-beta.1 (2016-05-09)
462
463### Fix
464
465* **dependencies:** Add zetapush-cometd as a dependency
466
467# 2.0.0-beta.0 (2016-05-09)
468
469### Changes
470
471* **core:** Add new API unsubscribe
472
473# 2.0.0-alpha.6 (2016-05-02)
474
475### Changes
476
477* **core:** Add new VERSION parameter
478* **core:** Add new API removeConnectionStatusListener
479
480# 2.0.0-alpha.5 (2016-04-29)
481
482### Changes
483
484* **connection:** Add new connection lifecycle onConnectionWillClose
485
486# 2.0.0-alpha.4 (2016-04-28)
487
488### Fixes
489
490* **npm:** Clean npm files
491
492# 2.0.0-alpha.3 (2016-04-28)
493
494### Features
495
496* **core:** Add createMacroPublisherSubscriber() API
497* **core:** Rename createServicePublisherSubscriber() API
498* **examples:** Add new examples
499
500# 2.0.0-alpha.2 (2016-04-25)
501
502### Features
503
504* **core:** Expose SmartClient API
505* **examples:** Add new api and app examples
506
507# 2.0.0-alpha.1 (2016-04-05)
508
509### Features
510
511* **core:** Complete API rewrite
512
513### BREAKING CHANGES
514
515* 2.x API is no longer compatible with 1.X