Skip to content

Commit

Permalink
Release 1.2.6 (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Pusher CI <[email protected]>
  • Loading branch information
sonologico and pusher-ci authored Sep 30, 2022
1 parent 2554d49 commit 45b0652
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 49 deletions.
91 changes: 48 additions & 43 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
# Changelog

## 1.2.5

* [CHANGED] Added `data` type for `ApnsPayload`

## 1.2.4

* [CHANGED] Remove some redundant steps from release action

## 1.2.3

* [CHANGED] Switch from Travis CI to GH actions

## 1.2.2

* [REMOVED] `requests` dependency and replaced with standard library

## 1.2.1

* [FIXED] Added missing TypeScript types for web push publish payload

## 1.2.0

* [ADDED] More payload fields to TypeScript bindings (collapse\_key, expiration, etc.)

## 1.1.1

* [FIXED] Fixes double JSON encoding

## 1.1.0

* [ADDED] Support for publishing to Authenticated Users
* [ADDED] TypeScript typings for Authenticated Users
* [DEPRECATED] Deprecates `publish` in favour of `publishToInterests`

## 1.0.1

* [FIXED] Accessing property on undefined object on non-json response

## 1.0.0

* [ADDED] Changelog for GA release
# Changelog

## 1.2.6

* [FIXED] Fix the hide_notification_if_site_has_focus TypeScript
* [FIXED] Fixes the incorrect TypeScript signature for the generateToken function

## 1.2.5

* [CHANGED] Added `data` type for `ApnsPayload`

## 1.2.4

* [CHANGED] Remove some redundant steps from release action

## 1.2.3

* [CHANGED] Switch from Travis CI to GH actions

## 1.2.2

* [REMOVED] `requests` dependency and replaced with standard library

## 1.2.1

* [FIXED] Added missing TypeScript types for web push publish payload

## 1.2.0

* [ADDED] More payload fields to TypeScript bindings (collapse\_key, expiration, etc.)

## 1.1.1

* [FIXED] Fixes double JSON encoding

## 1.1.0

* [ADDED] Support for publishing to Authenticated Users
* [ADDED] TypeScript typings for Authenticated Users
* [DEPRECATED] Deprecates `publish` in favour of `publishToInterests`

## 1.0.1

* [FIXED] Accessing property on undefined object on non-json response

## 1.0.0

* [ADDED] Changelog for GA release
6 changes: 3 additions & 3 deletions __tests__/publishToInterests.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('publishToInterests', () => {
expect(headers).toEqual({
authorization: 'Bearer SECRET_KEY',
accept: 'application/json',
'x-pusher-library': 'pusher-push-notifications-node 1.2.4',
'x-pusher-library': 'pusher-push-notifications-node 1.2.6',
host: 'instance_id.pushnotifications.pusher.com',
'content-type': 'application/json',
'content-length': 55
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('publishToInterests', () => {
'content-type': 'application/json',
'content-length': 55,
authorization: 'Bearer SECRET_KEY',
'x-pusher-library': 'pusher-push-notifications-node 1.2.4',
'x-pusher-library': 'pusher-push-notifications-node 1.2.6',
host: 'instance_id.pushnotifications.pusher.com'
});
expect(body).toEqual({
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('publishToInterests', () => {
'content-type': 'application/json',
'content-length': 1846,
authorization: 'Bearer 1234',
'x-pusher-library': 'pusher-push-notifications-node 1.2.4',
'x-pusher-library': 'pusher-push-notifications-node 1.2.6',
host: '1234.pushnotifications.pusher.com'
});
expect(body).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion __tests__/publishToUsers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('publishToUsers', () => {
'content-type': 'application/json',
'content-length': 72,
authorization: 'Bearer SECRET_KEY',
'x-pusher-library': 'pusher-push-notifications-node 1.2.4',
'x-pusher-library': 'pusher-push-notifications-node 1.2.6',
host: 'instance_id.pushnotifications.pusher.com'
});
expect(body).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pusher/push-notifications-server",
"version": "1.2.5",
"version": "1.2.6",
"description": "NodeJS Server SDK for Pusher Push Notifications",
"main": "push-notifications.js",
"repository": "https://github.com/pusher/push-notifications-node",
Expand Down
2 changes: 1 addition & 1 deletion push-notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const jwt = require('jsonwebtoken');
const http = require('http');
const https = require('https');

const SDK_VERSION = '1.2.4';
const SDK_VERSION = '1.2.6';
const INTERESTS_REGEX = new RegExp('^(_|\\-|=|@|,|\\.|;|[A-Z]|[a-z]|[0-9])*$');
const {
INTEREST_STRING_MAX_LENGTH,
Expand Down

0 comments on commit 45b0652

Please sign in to comment.