3.3.0 (2017-11-02)
Fix
- typescript Remove unsupported default parameters in typed definition
Features
- bower Remove bower support
- client Support custom deployment for SmartClient (#8)
3.2.2 (2017-11-02)
Fix issus on previously published version
3.2.1 (2017-11-02)
Features
- client Update TS definition to support optionnal parameters in publish method
3.2.0 (2017-10-06)
Features
- client Add new getUserInfo() method to retreive user public info
const { Authentication, Client } = require('zetapush-js')
// Create new ZetaPush Client
const client = new Client({
sandboxId: '<YOUR-SANDBOX-ID>',
authentication: () => Authentication.simple({
login: '<YOUR-USER-LOGIN>',
password: '<YOUR-USER-PASSWORD>'
})
})
// Add connection establised listener
client.onConnectionEstablished(() => {
console.log('onConnectionEstablished')
const profile = client.getUserInfo()
console.log('Your profile', profile)
})
client.connect()
- node Support node execution context
const { WeakClient } = require('zetapush-js')
const NodeJSTransports = require('zetapush-cometd/lib/node/Transports')
// Create new ZetaPush Client
const client = new WeakClient({
transports: NodeJSTransports,
sandboxId: '<YOUR-SANDBOX-ID>'
})
// Add connection establised listener
client.onConnectionEstablished(() => {
console.log('onConnectionEstablished')
})
client.connect()
- client Add new lifecycle handler onNegotiationFailed
Changes
- core Reduce bundle size
- core From webpack@2 to rollup
- client Update TransportLayer implementation
- zetapush-cometd Update TransportLayer implementation
3.1.3 (2017-04-13)
Fix
- typescript Fix TypeScript issues
3.1.2 (2017-04-13)
Features
- typescript Add TypeScript support
3.1.1 (2017-04-10)
Features
- client Normalize apiUrl
3.1.0 (2017-02-21)
Features
- client Add new connection callback onNoServerUrlAvailable
- client Add new connection callback onConnectionToServerFail
- client Add getServers method to expose server urls
- client Add createAsyncMacroService method to provide promise based macro services instance
- internal Improve code separation to support tree shaking
Fixes
- persistence Catch SessionPersistenceStrategy error in private navigation mode
3.1.0-alpha.9 (2017-01-18)
- persistence Catch SessionPersistenceStrategy error in private navigation mode
3.0.1 (2017-01-18)
Fixes
- persistence Catch SessionPersistenceStrategy error in private navigation mode
3.1.0-alpha.8 (2017-01-09)
- chore Upgrade eslint dependency to 3.13.0
3.1.0-alpha.7 (2017-01-09)
- env Update engines directive to "node": ">=6"
3.1.0-alpha.6 (2017-01-02)
- client Add new connection callback onNoServerUrlAvailable
3.1.0-alpha.5 (2017-01-02)
- client Add new connection callback onConnectionToServerFail
3.1.0-alpha.4 (2017-01-02)
- npm Bump to alpha.4 to avoid npm conflict
3.1.0-alpha.3 (2017-01-02)
- client Add getServers method to expose server urls
3.1.0-alpha.2 (2016-11-14)
- internal Improve code separation to support tree shaking
3.1.0-alpha.1 (2016-11-04)
- client Add createAsyncMacroService method to provide promise based macro services instance
Features
3.0.0 (2016-10-24)
Changes
- client Rename createService parameter from type to Type
- core: Update lib/client, rename credentials to authentication
Fixes
- smart-client Fix sessions persistence key generation
Features
- core Add lib/smart-client
- test ZetaPush core functionalities are now tested with Karma/Jasmine
3.0.0-alpha.3 (2016-09-16)
Major API modification
BREAKING CHANGES
- client Rename createService parameter from type to Type
Before
// Create new service
const service = new client.createService({
type: ZetaPush.services.Stack,
listener: {
list(message) {
console.log('on list', message)
}
}
})
After
// Create new service
const service = new client.createService({
Type: ZetaPush.services.Stack,
listener: {
list(message) {
console.log('on list', message)
}
}
})
3.0.0-alpha.2 (2016-09-06)
Fix
- smart-client Fix sessions persistence key generation
3.0.0-alpha.1 (2016-08-19)
Major API modification
BREAKING CHANGES
- core: Update lib/client, rename credentials to authentication
Before
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
credentials() {
return ZetaPush.AuthentFactory.createWeakHandshake({
token: null
})
}
})
After
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
authentication() {
return ZetaPush.Authentication.weak({
token: null
})
}
})
Features
- core Add lib/smart-client
- test ZetaPush core functionalities are now tested with Karma/Jasmine
2.0.1 (2016-07-26)
Fixes
- cometd Update cometd to 3.0.13 to fix network overflow on handshake failure with reconnect advice
2.0.0 (2016-07-25)
:tada: After a complete refactoring, ZetaPush 2.0 is production ready
2.0.0-rc.3 (2016-07-15)
Fixes
- build Improve build support with babel-plugin-transform-runtime
2.0.0-rc.2 (2016-07-13)
Features
- core: Update lib/client, add new transports option
- core: Update lib/weak-client, add new transports option
const client = new ZetaPush.WeakClient({
sandboxId: 'Y1k3xBDc',
transports: [ZetaPush.TransportTypes.LONG_POLLING]
})
2.0.0-rc.1 (2016-07-12)
Major API modification
BREAKING CHANGES
- core: Update lib/authentication/handshake
Before
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
credentials() {
return ZetaPush.AuthentFactory.createWeakHandshake({
token: null
})
}
})
After
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
credentials() {
return ZetaPush.Authentication.weak({
token: null
})
}
})
2.0.0-beta.23 (2016-07-08)
Fixes
- client Expose user Id
2.0.0-beta.22 (2016-07-07)
Changes
- tools Build file is now generated via webpack instead of gulp
2.0.0-beta.21 (2016-07-05)
Fixes
- stand by Update cometd version version to fix stand by bug
2.0.0-beta.20 (2016-07-05)
Changes
- log Replace console.log in source code by cometd log layer
- examples Update examples with new zetapush.min.js file name
2.0.0-beta.19 (2016-07-04)
Changes
- dist Add suffix min to build file
2.0.0-beta.18 (2016-06-21)
Major API modification
BREAKING CHANGES
- core: Update lib/client.constructor()
Before
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
handshakeStrategy() {
return ZetaPush.AuthentFactory.createWeakHandshake({
token: null
})
}
})
After
// Create new ZetaPush Client
const client = new ZetaPush.Client({
sandboxId: '<YOUR-SANDBOX-ID>',
credentials() {
return ZetaPush.AuthentFactory.createWeakHandshake({
token: null
})
}
})
2.0.0-beta.17 (2016-06-20)
Major API simplification
BREAKING CHANGES
- core: Update lib/client.createService()
- core: Update lib/client.unsubscribe()
Before
const service = client.createService({
type: ZetaPush.services.Stack,
listener: {
list(message) {
console.log('on list stack', message.data)
}
}
})
service.publisher.list({
stack: '<STACK-ID>'
})
After
const service = client.createService({
type: ZetaPush.services.Stack,
listener: {
list(message) {
console.log('on list stack', message.data)
}
}
})
service.list({
stack: '<STACK-ID>'
})
2.0.0-beta.16 (2016-06-06)
Major API simplification
BREAKING CHANGES
- core: Add lib/client.createService()
- core: Remove lib/client.createMacroPublisher()
- core: Remove lib/client.createServicePublisher()
- core: Remove lib/client.getSessionId()
- core: Remove lib/client.subscribe()
- core: Remove lib/client.createMacroPublisherSubscriber()
- core: Remove lib/client.createServicePublisherSubscriber()
- core: Remove lib/client.handshake()
- core: Rename lib/definitions to lib/services
Before
var service = client.createServicePublisherSubscriber({
definition: ZetaPush.definitions.StackPublisherDefinition,
list: function (message) {
console.log('on list stack', message.data)
}
}
})
service.publisher.list({
stack: '<STACK-ID>'
})
After
const service = client.createService({
type: ZetaPush.services.Stack,
listener: {
list(message) {
console.log('on list stack', message.data)
}
}
})
service.publisher.list({
stack: '<STACK-ID>'
})
2.0.0-beta.15 (2016-06-03)
Changes
- misc: Update internal default deployment id
2.0.0-beta.14 (2016-06-01)
Fix
- security: Update forceHttps implementation
2.0.0-beta.13 (2016-06-01)
Fix
- security: Dont override forceHttps for WeakClient
2.0.0-beta.12 (2016-06-01)
Changes
- security: Force HTTPS when location.protocol is HTTPS
2.0.0-beta.11 (2016-06-01)
Changes
- core: Add shorthand methods to handle lifecycle connection events
2.0.0-beta.10 (2016-06-01)
Changes
- core: Use default deploymentId for all services and authentication
2.0.0-beta.9
Changes
- core: Add new API setLogLevel
Fix
- doc: Update bower install path
2.0.0-beta.8 (2016-05-23)
Changes
- core: Use subscription queue to automatically reconnect subscription
2.0.0-beta.7 (2016-05-23)
Fix
- core: Fix connection status listener index
2.0.0-beta.6 (2016-05-20)
Changes
- core: Rename SmartClient to WeakClient
2.0.0-beta.4 (2016-05-20)
Changes
- core: Add new API isConnected
2.0.0-beta.3 (2016-05-17)
Changes
- macro: Allow hardFail and debug option for macro publisher
2.0.0-beta.2 (2016-05-09)
Fix
- dependencies: Update npm dependencies
2.0.0-beta.1 (2016-05-09)
Fix
- dependencies: Add zetapush-cometd as a dependency
2.0.0-beta.0 (2016-05-09)
Changes
- core: Add new API unsubscribe
2.0.0-alpha.6 (2016-05-02)
Changes
- core: Add new VERSION parameter
- core: Add new API removeConnectionStatusListener
2.0.0-alpha.5 (2016-04-29)
Changes
- connection: Add new connection lifecycle onConnectionWillClose
2.0.0-alpha.4 (2016-04-28)
Fixes
- npm: Clean npm files
2.0.0-alpha.3 (2016-04-28)
Features
- core: Add createMacroPublisherSubscriber() API
- core: Rename createServicePublisherSubscriber() API
- examples: Add new examples
2.0.0-alpha.2 (2016-04-25)
Features
- core: Expose SmartClient API
- examples: Add new api and app examples
2.0.0-alpha.1 (2016-04-05)
Features
- core: Complete API rewrite
BREAKING CHANGES
- 2.x API is no longer compatible with 1.X