Skip to content

Commit

Permalink
feat: sdk audit and maintenance (#81)
Browse files Browse the repository at this point in the history
* Don't start a timer

When the queue has hit the maximum length don't start a timer. If a
timer exists flush will cancel it.

* Bump extend from 3.0.1 to 3.0.2

Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases)
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
- [Commits](justmoon/node-extend@v3.0.1...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump eslint-utils from 1.3.1 to 1.4.2

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](mysticatea/eslint-utils@v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump mixin-deep from 1.3.1 to 1.3.2

Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](jonschlinkert/mixin-deep@1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

* fix data parameter always undefined on callback for track method

* Fixed a typo to reflect actual code behaviour

* Allow passing axios instance or config in options.

* v3.4.0-beta.2

* Update History.md

* Add missing callback function to a remaining flush call

* removed appended path from host

* allow to configure batch events path from initialization

* Bump elliptic from 6.4.1 to 6.5.3

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](indutny/elliptic@v6.4.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump handlebars from 4.1.2 to 4.7.6

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.7.6)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump node-fetch from 2.6.0 to 2.6.1

Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](node-fetch/node-fetch@v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix for infinite axios-retry on 5xx responses and axios client options leakage

* Fixing a formatting issue with test

* Enabled snyk for my account

* Added additonal unit test to prevent infinite axios retry from coming recurring

* Update history and bump the package

* Bump codecov from 3.5.0 to 3.7.1

Bumps [codecov](https://github.com/codecov/codecov-node) from 3.5.0 to 3.7.1.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/commits/v3.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ini from 1.3.5 to 1.3.7

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](npm/ini@v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump axios from 0.19.2 to 0.21.1

Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](axios/axios@v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump dot-prop from 4.2.0 to 4.2.1

Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](sindresorhus/dot-prop@v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

* update changelog and bump the version

* Bump acorn from 6.1.1 to 6.4.2

Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.2.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@6.1.1...6.4.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump https-proxy-agent from 2.2.1 to 2.2.4

Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](TooTallNate/proxy-agents@2.2.1...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

* few dependency fixes

* remove size task

* remove more size

* pin yargs-parser

* Add callback to flush binding

* throws error when message is over 32kb

* Fixing conflicts

* releasing a major version

* using axios instance

* calling post method as its more testable

* testing if we can use the custom axios instance

* Release a patch version to fix the issue with axios instance

* upgrade uuid dep to support bundler tree shaking

See https://github.com/uuidjs/uuid/blob/master/README_js.md#deep-requires-now-deprecated

From the above document, the motivation for upgrading:

As of uuid@7.x this library now provides ECMAScript modules builds,
which allow packagers like Webpack and Rollup to do "tree-shaking" to
remove dead code.

* Bump y18n from 3.2.1 to 3.2.2

Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* flushing when payload max size has reached

* Bump handlebars from 4.7.6 to 4.7.7

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump lodash from 4.17.20 to 4.17.21

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump hosted-git-info from 2.7.1 to 2.8.9

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.7.1...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

* bumping up payload size to 500kb

* lock

* returning promise from flush

* sample code to test more easily

* making queue big enough that it would reach queue size limit

* dropping support for node 8

* segmentio#284 Added options for axiosRetryConfig, disable axiosRetry if retryCount is 0

* Remove unnessesary `|| {}`

Co-authored-by: Patrick Bassut <patrickbassut@hotmail.com>

* prep for 5.0.0 release

* v5.0.0

* Bump tar from 4.4.10 to 4.4.15

Bumps [tar](https://github.com/npm/node-tar) from 4.4.10 to 4.4.15.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v4.4.10...v4.4.15)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump path-parse from 1.0.6 to 1.0.7

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update test.js

Co-authored-by: Patrick Bassut <patrickbassut@hotmail.com>

* Bump jszip from 3.2.1 to 3.7.1

Bumps [jszip](https://github.com/Stuk/jszip) from 3.2.1 to 3.7.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/master/CHANGES.md)
- [Commits](Stuk/jszip@v3.2.1...v3.7.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump tar from 4.4.15 to 4.4.19

Bumps [tar](https://github.com/npm/node-tar) from 4.4.15 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](isaacs/node-tar@v4.4.15...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* segmentio#287 Flush now returns promises correctly with the data that callback would have gotten. Removed pify from devDependencies

* Bumped axios version to patch ReDos vulnerability

* update history + bump package.json

* let np takes care of version

* v5.1.0

* update axios retry

* version bump with np

* v5.1.1

* pinning axios-retry to 3.2.0

* v5.1.2

* flush when approaching the limit instead of surpassing the limit

* v5.2.0

* v6.0.0

* callback called twice fixed

* enqueue's flushes await

* undo wrong commit

* donde function updated

* Test fixed

* Update code snippet to match analyics-code API

Following the [documentation example here](https://segment.com/docs/connections/sources/catalog/libraries/server/node/#track) as well as the official `analytics-node` API signature, this code snippet example needs to be updated. The current example is from `analytics.js`, Segment's clientside library.

* Bump ajv from 6.10.0 to 6.12.6

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](ajv-validator/ajv@v6.10.0...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump follow-redirects from 1.14.3 to 1.14.8

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.3 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.14.3...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump trim-off-newlines from 1.0.1 to 1.0.3

Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](stevemao/trim-off-newlines@v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump node-fetch from 2.6.1 to 2.6.7

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update library axios to 0.27.2

* Add sentat note to readme

Resolves Issue segmentio#338

* add an errorHandler property to the class initializer such that we can return a value using this error handler in case of axios exception instead of throwing. unit test included.

* Update History.md

* Update History.md

* Update History.md file with new changes

* Update History.md file to 6.1.0

* Update History.md

* v6.1.0

* Ensure callback is called when envoking errorHanlder

A property, errorHanlder, was recently added which will be called
instead of throwing an error in the .flush() method. This is important
because errors in .flush() could, previously, only be handled via
process.on('uncaughtException', err => { ... }).

However, this property is currently unusable as, when the flush method
invokes this property, it fails to call the callbacks of the events
being flushed.

This commit makes sure the callbacks are called.

* v6.2.0

* flush: ensure previous flush completion

* allow recovering from failed flushs

* standard --fix

* fix error handling

* first check for reasons not to flush and then for pending flushes

* feat: added gzip

* test: debugging test cases

* test: fix issues with gzip and 404 responses of dataplane batch endpoint

* chore: turned bull into optional dependency, queue prefix logic updated

* chore: removed unnecessary files

* chore: added dataplaneurl support in optional config

* chore: updated bull package dependency to latest

* ci: added github actions

* chore: eslintcache ignored

* ci: added nvmrc

* ci: updated test workflow

* chore: added example apps, test cases updated

* test: test cases updated

* ci: enabled sonar

* chore: type declaration added for screen API

* chore: added .env for example apps, version bumped

* chore: minor changes

* chore: security vulnerabilities adressed

* chore: cli app updated

* ci: sonar project properties update

* chore: changelog updated

* chore: readme update

* chore: readme update

* chore: readme update

* chore: readme update

* chore: cleanup, changelog update

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Christopher Pardy <chris@rategravity.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Albertinin Mourato <ams11@cin.ufpe.br>
Co-authored-by: Emanuele Libralato <10ko@users.noreply.github.com>
Co-authored-by: Kris Dages <krisdages@git.whiteboxsoftware.net>
Co-authored-by: Pooya Jaferian <pooya.j@gmail.com>
Co-authored-by: ankur <ankurchandraa@gmail.com>
Co-authored-by: David Reichert <dreichert@gmail.com>
Co-authored-by: albertmourato <albertinin.mourato@liferay.com>
Co-authored-by: Shane L. Duvall <shane@northtwofive.com>
Co-authored-by: Patrick Bassut <patrickbassut@hotmail.com>
Co-authored-by: Garrett Wu <wugarrett@gmail.com>
Co-authored-by: Dave <dhaden@atlassian.com>
Co-authored-by: Dahaden <dahaden@gmail.com>
Co-authored-by: Shane L. Duvall <sduvall@mark4tech.com>
Co-authored-by: Felipe Najson <felipe@team.northtwofive.com>
Co-authored-by: Felipe Najson <89416739+felipe-najson-ntf@users.noreply.github.com>
Co-authored-by: Benjamin Hoffman <6520022+benjaminhoffman@users.noreply.github.com>
Co-authored-by: “Edson <edson@alcatrazstudios.com>
Co-authored-by: Tam CARRE <kokone@takat.su>
Co-authored-by: Tim Haley <thaley@atlassian.com>
Co-authored-by: Horacio Peña <horape@gmail.com>
Co-authored-by: Michael Grosse Huelsewiesche <mihuelsewiesche@twilio.com>
Co-authored-by: George Bardis <gbardis@rudderstack.com>
  • Loading branch information
25 people committed Jan 4, 2023
1 parent a8b8f4f commit 23e4079
Show file tree
Hide file tree
Showing 34 changed files with 39,858 additions and 14,063 deletions.
7 changes: 0 additions & 7 deletions .buildscript/circle.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .buildscript/e2e.sh

This file was deleted.

2 changes: 2 additions & 0 deletions .env.example
@@ -0,0 +1,2 @@
WRITE_KEY=
DATAPLANE_URL=
10 changes: 10 additions & 0 deletions .eslintignore
@@ -0,0 +1,10 @@
.husky/
lib/
node_modules/
reports/
stats/
*.json
*.md
*.d.ts
.nyc_output
examples/
26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

41 changes: 41 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,41 @@
{
"env": {
"browser": true,
"es2020": true,
"jest": true
},
"extends": ["airbnb-base", "plugin:sonarjs/recommended", "prettier", "plugin:compat/recommended"],
"plugins": ["unicorn", "compat"],
"parser": "@babel/eslint-parser",
"globals": {},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"unicorn/filename-case": [
"error",
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } }
],
"unicorn/no-instanceof-array": "error",
"unicorn/no-static-only-class": "error",
"unicorn/consistent-destructuring": "error",
"unicorn/better-regex": "error",
"unicorn/no-for-loop": "error",
"unicorn/prefer-array-some": "error",
"unicorn/explicit-length-check": "error",
"unicorn/prefer-array-find": "error",
"unicorn/no-lonely-if": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/no-useless-spread": "error",
"unicorn/no-useless-length-check": "error",
"unicorn/prefer-export-from": "error",
"sonarjs/prefer-immediate-return": "off",
"sonarjs/no-nested-template-literals": "off",
"sonarjs/max-switch-cases": "off",
"sonarjs/cognitive-complexity": ["error", 40],
"compat/compat": "warn"
}
}
40 changes: 40 additions & 0 deletions .github/workflows/build-and-quality-checks.yml
@@ -0,0 +1,40 @@
name: Build & Code Quality Checks

on:
pull_request:
branches: ['master', 'develop']
types: ['opened', 'reopened', 'synchronize']

jobs:
build:
name: Build & Code Quality Checks
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
env:
HUSKY: 0
run: |
npm ci
- name: Execute quality checks
run: |
npm run check:circular
npm run check:duplicates
- name: Execute security checks
run: |
npm run check:security
- name: Generate build
run: |
npm run build
17 changes: 17 additions & 0 deletions .github/workflows/check_pr_title.yml
@@ -0,0 +1,17 @@
name: Check PR title

on:
pull_request:
branches: ['master', 'develop']
types: ['opened', 'reopened', 'edited', 'synchronize']

jobs:
check_pr_title:
name: Check PR title
runs-on: ubuntu-latest
steps:
- name: Checkout source branch
uses: actions/checkout@v3

- name: Check PR title
uses: rudderlabs/github-action-check-pr-title@v1.0.7
40 changes: 40 additions & 0 deletions .github/workflows/housekeeping.yaml
@@ -0,0 +1,40 @@
name: Handle stale PRs

on:
schedule:
- cron: '42 1 * * *'

jobs:
prs:
name: Clean up stale prs
runs-on: ubuntu-latest

permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v7
with:
repo-token: ${{ github.token }}
operations-per-run: 200
stale-pr-message: 'This PR is considered to be stale. It has been open 30 days with no further activity thus it is going to be closed in 10 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.'
days-before-pr-stale: 30
days-before-pr-close: 10
stale-pr-label: 'Stale'

branches:
name: Cleanup old branches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run delete-old-branches-action
uses: beatlabs/delete-old-branches-action@v0.0.9
with:
repo_token: ${{ github.token }}
date: '2 months ago'
dry_run: false
delete_tags: false
extra_protected_branch_regex: ^(main|master|develop)$
exclude_open_pr_branches: true
55 changes: 55 additions & 0 deletions .github/workflows/notion-pr-sync.yml
@@ -0,0 +1,55 @@
name: Notion PR Sync

on:
issues:
types:
[
opened,
edited,
deleted,
transferred,
pinned,
unpinned,
closed,
reopened,
assigned,
unassigned,
labeled,
unlabeled,
locked,
unlocked,
milestoned,
demilestoned,
]
pull_request:
types:
[
assigned,
unassigned,
labeled,
unlabeled,
opened,
edited,
closed,
reopened,
synchronize,
converted_to_draft,
ready_for_review,
locked,
unlocked,
review_requested,
review_request_removed,
auto_merge_enabled,
auto_merge_disabled,
]

jobs:
request:
runs-on: ubuntu-latest
steps:
- name: Sync GitHub PRs to Notion
uses: sivashanmukh/github-notion-pr-sync@1.0.0
with:
notionKey: ${{ secrets.NOTION_BOT_KEY }}
notionDatabaseId: ${{ secrets.NOTION_PR_DB_ID }}
githubKey: ${{ secrets.PAT }}
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,40 @@
name: 'Unit Tests, Coverage & Sonar'

on:
workflow_dispatch:
push:
branches: ['master', 'develop']
pull_request:
branches: ['master', 'develop']
types: ['opened', 'reopened', 'synchronize']

jobs:
build:
name: 'Unit Tests, Coverage & Sonar'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Execute unit tests
env:
HUSKY: 0
run: |
npm ci
npm run test:ci
npm run check:lint:ci
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7 changes: 5 additions & 2 deletions .gitignore
Expand Up @@ -3,5 +3,8 @@ coverage
.nyc_output
coverage.lcov
lib
./example/node_modules
./example/package-lock.json
examples/**/package-lock.json
.idea/
.DS_Store
.eslintcache
.env
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commit-msg
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
Empty file removed .npmrc
Empty file.
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
16.15.1
5 changes: 5 additions & 0 deletions .prettierignore
@@ -0,0 +1,5 @@
lib/
node_modules/
.nyc_output
CHANGELOG.md
CONTRIBUTING.md
7 changes: 7 additions & 0 deletions .prettierrc
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 100
}
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
@@ -0,0 +1 @@
* @MoumitaM @bardisg
25 changes: 23 additions & 2 deletions History.md
Expand Up @@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v2.0.0](https://github.com/rudderlabs/rudder-sdk-node/compare/v1.1.4...v2.0.0)

### Features

- Allow dataPlaneUrl to be be passed in options instead as an argument in initialization. [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- Allow passing axios instance or config in options. [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- Allow passing error handler function in options. [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- Allow to configure batch events path from initialization [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- added request compression feature with gzip [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- made bull package as an optional dependency [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- added type declaration for screen api [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)

### Fixes

- default queue prefix [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- Cli app to use latest version of dependency [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)

### BREAKING CHANGES

- Allow dataPlaneUrl to be be passed in options instead as an argument in initialization. [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)

## [v1.1.4](https://github.com/rudderlabs/rudder-sdk-node/compare/v1.1.3...v1.1.4)

### Merged
Expand Down Expand Up @@ -264,7 +285,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- refactor: move cli to a sub-package [`#195`](https://github.com/rudderlabs/rudder-sdk-node/pull/195)
- feat(cli): add ability to override host/api url [`#194`](https://github.com/rudderlabs/rudder-sdk-node/pull/194)
- Schedule e2e tests every 15 minutes past the hour [`#191`](https://github.com/rudderlabs/rudder-sdk-node/pull/191)
- Use library-e2e-tester [`#190`](https://github.com/rudderlabs/rudder-sdk-node/pull/190)
- Use library-e2e-tester [`#190`](https://github.com/rudderlabs/rudder-sdk-node/pull/190)
- add standardized makefile [`#187`](https://github.com/rudderlabs/rudder-sdk-node/pull/187)
- Migrate to Circle 2.0 [`#184`](https://github.com/rudderlabs/rudder-sdk-node/pull/184)
- Migrate E2E tests from Runscope to Segment webhook [`#183`](https://github.com/rudderlabs/rudder-sdk-node/pull/183)
Expand Down Expand Up @@ -315,7 +336,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- replace Travis with CircleCI [`#86`](https://github.com/rudderlabs/rudder-sdk-node/pull/86)
- add support for screen events [`#82`](https://github.com/rudderlabs/rudder-sdk-node/pull/82)
- use correct optional syntax for JSDOC [`#83`](https://github.com/rudderlabs/rudder-sdk-node/pull/83)
- Add node version to messages via _metadata [`#84`](https://github.com/rudderlabs/rudder-sdk-node/pull/84)
- Add node version to messages via \_metadata [`#84`](https://github.com/rudderlabs/rudder-sdk-node/pull/84)
- remove trailing slash on `.host` [`#81`](https://github.com/rudderlabs/rudder-sdk-node/pull/81)
- Replace validation with `@segment/loosely-validate-event` [`#78`](https://github.com/rudderlabs/rudder-sdk-node/pull/78)
- Update dependencies [`#74`](https://github.com/rudderlabs/rudder-sdk-node/pull/74)
Expand Down

0 comments on commit 23e4079

Please sign in to comment.