Skip to content

Commit

Permalink
Merge branch 'release/v1.0.0'
Browse files Browse the repository at this point in the history
* release/v1.0.0: (29 commits)
  Update changelog
  build
  Update lib
  Remove all listeners on disconnect
  Update dependencies
  Fix linting
  Update some libs
  replace js-md5 with md5
  Add isStreamClient method
  Export spacebunny params interface
  Add bufferutil and utf8 validate
  Add message caching
  Add commonjs build
  Fix stomp & stomp stream Client
  Add timeout for reconnection Fix single stream hook for mqttstreamclient
  Update mqtt
  Better handling of listeners for amqp client Compilation improvements
  Fix create channel
  Handle AMQP automatic reconnection
  Remove lodash
  ...
  • Loading branch information
gfoiani committed Jun 25, 2021
2 parents b0cd18f + 3b40e90 commit a6b380a
Show file tree
Hide file tree
Showing 117 changed files with 11,797 additions and 161,643 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

19 changes: 18 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
NPM_USERNAME=username
NPM_PASSWORD=password
NPM_EMAIL=[email protected]
NPM_EMAIL=[email protected]

# Connection
HOST=HOST
PORT=PORT
VHOST=VHOST

# Device
DEVICE_KEY=DEVICE_KEY
DEVICE_ID=DEVICE_ID
SECRET=SECRET

# Stream
CLIENT=CLIENT
SECRET=SECRET
STREAM=STREAM
DEVICE_ID=DEVICE_ID
CHANNEL=CHANNEL
11 changes: 2 additions & 9 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
./assets
./config
./flow-typed
./dist
./docs
./examples
./lib
./node_modules
./public
lib
examples
50 changes: 38 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,50 @@
{
"extends": "eslint:recommended",
"extends": [
"airbnb/base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true
}
"project": "tsconfig.lint.json",
"sourceType": "module"
},
"rules": {
"no-console": 1,
"semi": 2,
"no-control-regex": 0,
"no-undef": 0,
"react/require-default-props": 0
"no-void": 0,
"comma-dangle": 0,
"camelcase": 0,
"no-use-before-define": 0,
"no-unneeded-ternary": 0,
"no-restricted-globals": 0,
"no-unused-expressions": 0,
"consistent-return": 0,
"max-len": 0,
"arrow-body-style": 0,
"arrow-parens": 0,
"import/no-extraneous-dependencies": 0,
"func-names": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"no-bitwise": 0,
"object-curly-newline": 0,
"no-unused-vars": 0,
"import/prefer-default-export": 0,
"import/no-dynamic-require": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0
},
"plugins": [
"@typescript-eslint"
]
}
23 changes: 0 additions & 23 deletions .flowconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.11.3
v12.16.0
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"christian-kohler.path-intellisense",
"mike-co.import-sorter",
"mikestead.dotenv",
"Orta.vscode-jest"
]
}
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug",
"program": "${workspaceRoot}/dist/app.js",
"smartStep": true,
"outFiles": [
"../dist/**/*.js"
],
"protocol": "inspector",
"env": {
"NODE_ENV": "production"
}
},
{
"type": "node",
"request": "attach",
"name": "Nodemon Debug",
"port": 9229,
"restart": true
}
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"files.exclude": {
"tsconfig.build.json": true,
},
"importSorter.generalConfiguration.sortOnBeforeSave": true,
"importSorter.importStringConfiguration.tabSize": 2,
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": false,
"jest.showCoverageOnLoad": true,
"jest.autoEnable": false
}
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ All notable changes to this project will be documented in this file.
- `0.6.x` Releases - [0.6.0] [0.6.1]
- `0.6.x` Releases - [0.6.0] [0.6.1]
- `0.7.x` Releases - [0.7.0] [0.7.1] [0.7.2] [0.7.3] [0.7.4] [0.7.5] [0.7.6] [0.7.7] [0.7.8] [0.7.9] [0.7.11] [0.7.12] [0.7.13] [0.7.14] [0.7.15]
- `1.0.x` Releases - [1.0.0]

---

## [1.0.0](https://github.com/space-bunny/node-sdk/releases/tag/v1.0.0)

#### Changed

- Rewrite the library in TS

---

Expand Down Expand Up @@ -195,13 +204,13 @@ All notable changes to this project will be documented in this file.

## [0.2.0](https://github.com/space-bunny/node-sdk/releases/tag/v0.2.0)

#### Added
#### Added

- Ack / Nack handling for STOMP clients
- support for DiscardMine and DiscardFromApi options

## [0.1.0](https://github.com/space-bunny/node-sdk/releases/tag/v0.1.0)

#### Added
#### Added
- AMQP, STOMP, MQTT clients
- AMQP, STOMP, MQTT stream clients
3 changes: 0 additions & 3 deletions EmptyModule.js

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(c) Copyright 2018 Fancy Pixel S.r.l., all rights reserved.
81 changes: 0 additions & 81 deletions config/constants.js

This file was deleted.

Loading

0 comments on commit a6b380a

Please sign in to comment.