Skip to content

Commit dfd00d2

Browse files
domharringtoneruniondokgkobergerkanadgupta
authored
feature: use git subtree instead of splitsh/lite (#401)
* feat: migrating the repository over to a monorepo structure (#5) * feat: migrating the repository over to a monorepo structure * ci: adding a pull request template * docs: shuffling the readmes around * feat: stripping out all jwt work as it was an unused experiment (#7) * feat: allowing the sdk to create its own log ID (#6) * feat: migrating the repository over to a monorepo structure * ci: adding a pull request template * docs: shuffling the readmes around * chore(deps): add bson-objectid * ✨ initial implementation of generating log ids * 🚨 prettier * Switch from documentation-url to log-id for now * Eh, I like x-readme-log better * test: adding tests to make sure log ids are uuids * chore: removing an unused package * chore: removing an unused package Co-authored-by: Sean Dokko <[email protected]> Co-authored-by: gkoberger <[email protected]> * docs: updating links in the changelog to point to the new repo * v3.0.0 * feat: PHP SDK (#9) * docs: updating the year on the node pkg license * feat: pulling over the php sdk from https://github.com/readmeio/metrics-php * ci: directing the node workflow to only look at the node pkg * style: suppressing a TaintedInput Psalm warning for now * ci: pulling psalm taint analysis from ci for now * fix: issue where the same logs would get sent multiple times (#8) * fix: issue where the same logs would get sent multiple times This is caused by us only clearing out the queue when the metrics response came back * Prettier * fix: test coverage * test: improving the tests for queue flushing * test: delaying for 1s, not 1ms * fix: removing an unused test callback that was put in place for mocha * test: making requests slightly more unique to avoid test date flakiness Co-authored-by: Dom Harrington <[email protected]> * feat: reworking `x-readme-log` into `x-documentation-url` (#15) * chore(deps): swapping r2 for node-fetch as r2 is an inactive project * feat: changing x-readme-log to x-documentation-url and returning a full url * test: fixing broken tests * test: renaming the custom jest assertion to match up with the header name * feat: implementing the x-documentation-url header in the php sdk * fix: porting some readme api error handling over to node * Update packages/node/config/localhost.json Co-authored-by: Kanad Gupta <[email protected]> * docs: updating the node package docs a bit to have docs on options * fix: letting base_log_url be set in the php config * docs: adding documentation to the sdks on their new options * test: fixing a broken test Co-authored-by: Kanad Gupta <[email protected]> * v3.1.0 * chore(deps-dev): bump eslint from 7.4.0 to 7.5.0 (#17) Bumps [eslint](https://github.com/eslint/eslint) from 7.4.0 to 7.5.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.4.0...v7.5.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump is-valid-uuid-v4 from 1.2.0 to 1.2.1 (#18) Bumps [is-valid-uuid-v4](https://github.com/jammymalina/is-valid-uuid-v4) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/jammymalina/is-valid-uuid-v4/releases) - [Commits](https://github.com/jammymalina/is-valid-uuid-v4/commits) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: add content-type and user-agent headers (#19) * fix: add json content-type when posting to metrics API The Metrics API will 400 when receiving new logs The content-type header isn't set since we're stringifying JSON via the node-fetch package now. * test: add nock expectation for content-type header * feat: add user agent to requests to ReadMe and Metrics APIs * v3.1.1 * fix: prevent potentially null base log urls from being used (#20) * fix: prevent potentially null baseUrls from being used * test: fixing a test that was asserting against a false positive * v3.1.2 * chore(deps-dev): bump nock from 13.0.2 to 13.0.3 (#22) Bumps [nock](https://github.com/nock/nock) from 13.0.2 to 13.0.3. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.0.2...v13.0.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint from 7.5.0 to 7.6.0 (#23) Bumps [eslint](https://github.com/eslint/eslint) from 7.5.0 to 7.6.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.5.0...v7.6.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump uuid from 8.2.0 to 8.3.0 (#24) Bumps [uuid](https://github.com/uuidjs/uuid) from 8.2.0 to 8.3.0. - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md) - [Commits](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @readme/eslint-config from 3.3.3 to 3.4.0 (#25) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.3.3 to 3.4.0. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.3.3...3.4.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 26.1.0 to 26.2.2 (#26) Bumps [jest](https://github.com/facebook/jest) from 26.1.0 to 26.2.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.1.0...v26.2.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @readme/eslint-config from 3.4.0 to 3.4.1 (#27) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.4.0 to 3.4.1. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.4.0...3.4.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.0.3 to 13.0.4 (#35) Bumps [nock](https://github.com/nock/nock) from 13.0.3 to 13.0.4. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.0.3...v13.0.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 26.2.2 to 26.4.0 (#36) Bumps [jest](https://github.com/facebook/jest) from 26.2.2 to 26.4.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.2.2...v26.4.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump lodash from 4.17.19 to 4.17.20 (#41) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.20. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.20) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump conventional-changelog-cli from 2.0.34 to 2.1.0 (#40) Bumps [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog) from 2.0.34 to 2.1.0. - [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases) - [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/[email protected]@2.1.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint from 7.6.0 to 7.7.0 (#37) Bumps [eslint](https://github.com/eslint/eslint) from 7.6.0 to 7.7.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.6.0...v7.7.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci: release strategy (#63) * ci: loading in splitsh for help to release sdks to r/o repos * ci: setting up a split flow for mirroring packages to r/o repos * chore(deps-dev): bump @readme/eslint-config from 3.4.1 to 3.4.2 (#65) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.4.1 to 3.4.2. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.4.1...3.4.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 26.4.0 to 26.4.2 (#66) Bumps [jest](https://github.com/facebook/jest) from 26.4.0 to 26.4.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.4.0...v26.4.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 2.0.5 to 2.1.1 (#82) Bumps [prettier](https://github.com/prettier/prettier) from 2.0.5 to 2.1.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.0.5...2.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build: 4.0.0 release * chore: ignore the __tests__ directory in the published node sdk * chore(deps-dev): bump eslint from 7.7.0 to 7.8.0 (#89) Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump node-fetch from 2.6.0 to 2.6.1 (#93) 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](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 2.1.1 to 2.1.2 (#102) Bumps [prettier](https://github.com/prettier/prettier) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.1.1...2.1.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint from 7.8.0 to 7.10.0 (#113) Bumps [eslint](https://github.com/eslint/eslint) from 7.8.0 to 7.10.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.8.0...v7.10.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @readme/eslint-config from 3.4.2 to 3.5.0 (#104) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.4.2 to 3.5.0. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.4.2...3.5.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump supertest from 4.0.2 to 5.0.0 (#107) * chore(deps-dev): bump supertest from 4.0.2 to 5.0.0 Bumps [supertest](https://github.com/visionmedia/supertest) from 4.0.2 to 5.0.0. - [Release notes](https://github.com/visionmedia/supertest/releases) - [Commits](https://github.com/visionmedia/supertest/compare/v4.0.2...v5.0.0) Signed-off-by: dependabot[bot] <[email protected]> * test: fix broken unit test * chore: fixing merge conflicts Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Ursenbach <[email protected]> Co-authored-by: Jon Ursenbach <[email protected]> * chore(deps-dev): bump @readme/eslint-config from 3.5.0 to 3.6.2 (#124) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.5.0 to 3.6.2. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.5.0...3.6.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 26.4.2 to 26.6.0 (#123) Bumps [jest](https://github.com/facebook/jest) from 26.4.2 to 26.6.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.4.2...v26.6.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint from 7.10.0 to 7.11.0 (#122) Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.11.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.10.0...v7.11.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add an option to use res in payload (#155) * Add an option to use res in payload implements readmeio/metrics-sdks#154 * add a test for group(req, res) objects Co-authored-by: Michael DeRazon <[email protected]> * build: node release 4.0.1 * chore(deps-dev): bump eslint from 7.11.0 to 7.16.0 (#168) Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.16.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.11.0...v7.16.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @readme/eslint-config from 3.6.2 to 4.1.0 (#172) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 3.6.2 to 4.1.0. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/3.6.2...4.1.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump ini from 1.3.5 to 1.3.8 (#157) Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump uuid from 8.3.0 to 8.3.2 (#162) Bumps [uuid](https://github.com/uuidjs/uuid) from 8.3.0 to 8.3.2. - [Release notes](https://github.com/uuidjs/uuid/releases) - [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md) - [Commits](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 2.1.2 to 2.2.1 (#149) Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump supertest from 5.0.0 to 6.0.1 (#145) Bumps [supertest](https://github.com/visionmedia/supertest) from 5.0.0 to 6.0.1. - [Release notes](https://github.com/visionmedia/supertest/releases) - [Commits](https://github.com/visionmedia/supertest/compare/v5.0.0...v6.0.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump node-notifier from 8.0.0 to 8.0.1 in /packages/node (#158) Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1. - [Release notes](https://github.com/mikaelbr/node-notifier/releases) - [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md) - [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump conventional-changelog-cli from 2.1.0 to 2.1.1 (#146) Bumps [conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog) from 2.1.0 to 2.1.1. - [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases) - [Commits](https://github.com/conventional-changelog/conventional-changelog/compare/[email protected]@2.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump flat-cache from 2.0.1 to 3.0.4 (#138) Bumps [flat-cache](https://github.com/royriojas/flat-cache) from 2.0.1 to 3.0.4. - [Release notes](https://github.com/royriojas/flat-cache/releases) - [Changelog](https://github.com/royriojas/flat-cache/blob/master/changelog.md) - [Commits](https://github.com/royriojas/flat-cache/compare/v2.0.1...v3.0.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.0.4 to 13.0.5 (#137) Bumps [nock](https://github.com/nock/nock) from 13.0.4 to 13.0.5. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.0.4...v13.0.5) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 26.6.0 to 26.6.3 (#139) Bumps [jest](https://github.com/facebook/jest) from 26.6.0 to 26.6.3. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v26.6.0...v26.6.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: implementing request timeouts in the node sdk (#182) * feat: first pass on fetch timeouts * test: removing timeout tests for now * chore: docs * fix: timeout is no longer user-configurable * v4.0.2 * chore(deps-dev): bump eslint from 7.16.0 to 7.19.0 (#189) Bumps [eslint](https://github.com/eslint/eslint) from 7.16.0 to 7.19.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.16.0...v7.19.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.0.5 to 13.0.7 (#192) Bumps [nock](https://github.com/nock/nock) from 13.0.5 to 13.0.7. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.0.5...v13.0.7) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump supertest from 6.0.1 to 6.1.3 (#190) Bumps [supertest](https://github.com/visionmedia/supertest) from 6.0.1 to 6.1.3. - [Release notes](https://github.com/visionmedia/supertest/releases) - [Commits](https://github.com/visionmedia/supertest/compare/v6.0.1...v6.1.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @readme/eslint-config from 4.1.0 to 4.1.1 (#184) Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/4.1.0...4.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Rename certain SDK fields (#195) * feat(node): deprecate blacklist/whitelist in favor of denylist/allowlist * feat(node): add support for apiKey field, deprecating id field * feat(ruby): favor api_key over deprecated id field * feat(php): deprecate blacklist/whitelist in favor of denylist/allowlist * feat(php): rename `id` field to `api_key` with backwards support * fix(python): add tests for blacklist/whitelist & fix issues they they uncoverred * fix(python): add test to payload builder * feat(python): deprecate blacklist/whitelist in favor of denylist/allowlist * feat(python): deprecate id field in grouping function in favor of api_key * chore(python): run black * fix(python): use importlib to grab package version * fix(node): ensure docs reference actual user api key variable * Update packages/php/src/config.dist.php Co-authored-by: Jon Ursenbach <[email protected]> * fix(python): also rename internal PayloadBuilder variables * fix(php): fix tests * fix: interpolate actual API key into docs * fix(ruby): tests Co-authored-by: Jon Ursenbach <[email protected]> * chore: upgrade to npm 7 and a fix a few security vulnerabilities (#249) * chore: upgrade to npm 7 and a fix a few security vulns * chore: drop support for node 10 * chore: update node package dev dependencies (#253) * chore: updating eslint and prettier dev deps * chore: removing jsinspect * chore: upgrading jest to jest27 * chore: updating hosted-git-info * chore: upgrading conventional-changelog-cli * chore: updating conventional-changelog deps * chore: upgrading lerna to v4 * chore: upgrading nock * v4.0.3 * feat(node): send a redacted string rather than omitting values for deny/allowlist (#259) * v4.1.0 * chore(deps-dev): bump prettier from 2.3.1 to 2.3.2 (#268) Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.3.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 27.0.5 to 27.0.6 (#269) Bumps [jest](https://github.com/facebook/jest) from 27.0.5 to 27.0.6. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v27.0.5...v27.0.6) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Node v4.2.0 - Clamp bufferLength, better dev mode debugging, and flush queue on process exit (#284) * feat(node): cap the buffer length at 100 logs * feat(node): ensure buffer length is between 1 and 30 and flush queue on process exit * chore(deps-dev): bump @readme/eslint-config from 5.1.0 to 6.1.0 (#290) * chore(deps-dev): bump @readme/eslint-config from 5.1.0 to 6.1.0 Bumps [@readme/eslint-config](https://github.com/readmeio/eslint-config) from 5.1.0 to 6.1.0. - [Release notes](https://github.com/readmeio/eslint-config/releases) - [Changelog](https://github.com/readmeio/eslint-config/blob/main/CHANGELOG.md) - [Commits](https://github.com/readmeio/eslint-config/compare/5.1.0...6.1.0) --- updated-dependencies: - dependency-name: "@readme/eslint-config" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * style: commenting out an eslint rule warning Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Ursenbach <[email protected]> * chore(deps-dev): bump eslint from 7.29.0 to 7.32.0 (#279) Bumps [eslint](https://github.com/eslint/eslint) from 7.29.0 to 7.32.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.29.0...v7.32.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump supertest from 6.1.3 to 6.1.6 (#286) Bumps [supertest](https://github.com/visionmedia/supertest) from 6.1.3 to 6.1.6. - [Release notes](https://github.com/visionmedia/supertest/releases) - [Commits](https://github.com/visionmedia/supertest/compare/v6.1.3...v6.1.6) --- updated-dependencies: - dependency-name: supertest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.1.0 to 13.1.3 (#287) Bumps [nock](https://github.com/nock/nock) from 13.1.0 to 13.1.3. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.1.0...v13.1.3) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump find-cache-dir from 3.3.1 to 3.3.2 (#291) Bumps [find-cache-dir](https://github.com/avajs/find-cache-dir) from 3.3.1 to 3.3.2. - [Release notes](https://github.com/avajs/find-cache-dir/releases) - [Commits](https://github.com/avajs/find-cache-dir/compare/v3.3.1...v3.3.2) --- updated-dependencies: - dependency-name: find-cache-dir dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 27.0.6 to 27.1.0 (#292) Bumps [jest](https://github.com/facebook/jest) from 27.0.6 to 27.1.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v27.0.6...v27.1.0) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): refactor some dev dependencies around (#293) * chore: removing lerna as a hard devdep * chore(deps-dev): upgrading husky * chore(deps): running npm audit * docs: adding security policies * chore(deps-dev): bump prettier from 2.3.2 to 2.4.1 (#300) Bumps [prettier](https://github.com/prettier/prettier) from 2.3.2 to 2.4.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.3.2...2.4.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump node-fetch from 2.6.1 to 2.6.5 (#296) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.5. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/v2.6.5/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.5) --- updated-dependencies: - dependency-name: node-fetch dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(node): add typescript, native node and better har compliance (#288) * chore(deps-dev): upgrading some dev deps and running `npm audit` (#309) * chore(deps-dev): bump jest from 27.1.0 to 27.3.0 (#308) Bumps [jest](https://github.com/facebook/jest) from 27.1.0 to 27.3.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v27.1.0...v27.3.0) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * v5.0.0 * chore(deps-dev): bump typescript from 4.4.2 to 4.4.4 (#319) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.2 to 4.4.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.2...v4.4.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 27.3.0 to 27.3.1 (#318) Bumps [jest](https://github.com/facebook/jest) from 27.3.0 to 27.3.1. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v27.3.0...v27.3.1) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump ts-jest from 27.0.5 to 27.0.7 (#310) Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.5 to 27.0.7. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.5...v27.0.7) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.1.3 to 13.1.4 (#316) Bumps [nock](https://github.com/nock/nock) from 13.1.3 to 13.1.4. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.1.3...v13.1.4) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 5.3.0 (#311) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.30.0 to 5.3.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.3.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump node-fetch from 2.6.5 to 2.6.6 (#312) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.6. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.6) --- updated-dependencies: - dependency-name: node-fetch dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/node from 16.9.1 to 16.11.6 (#313) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.9.1 to 16.11.6. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/har-format from 1.2.7 to 1.2.8 (#315) Bumps [@types/har-format](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/har-format) from 1.2.7 to 1.2.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/har-format) --- updated-dependencies: - dependency-name: "@types/har-format" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/jest from 27.0.1 to 27.0.2 (#314) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.1 to 27.0.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(node): ensure that unknown request bodies are handled without errors (#321) * chore(deps-dev): bump prettier from 2.4.1 to 2.5.0 (#326) Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.4.1...2.5.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 27.3.1 to 27.4.3 (#329) Bumps [jest](https://github.com/facebook/jest) from 27.3.1 to 27.4.3. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/compare/v27.3.1...v27.4.3) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @typescript-eslint/parser from 5.3.0 to 5.5.0 (#333) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.3.0 to 5.5.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.5.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump nock from 13.1.4 to 13.2.1 (#332) Bumps [nock](https://github.com/nock/nock) from 13.1.4 to 13.2.1. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.1.4...v13.2.1) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump typescript from 4.4.4 to 4.5.2 (#330) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.4 to 4.5.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.4...v4.5.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/jest from 27.0.2 to 27.0.3 (#331) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.2 to 27.0.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/node from 16.11.6 to 16.11.11 (#328) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.6 to 16.11.11. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): upgrading eslint and @readme/eslint-config (#335) * v5.0.1 * fix: remove null postData, add support for nested express routes (#337) * fix(node): no requestbody removes key, support nested express objects * fix(node): fix some comments Co-authored-by: Jon Ursenbach <[email protected]> * fix(node): fix test name Co-authored-by: Jon Ursenbach <[email protected]> * style: commenting out the default-param-last rule in tests * fix: shallow copying the requst destroys req.headers on node 16 Co-authored-by: Jon Ursenbach <[email protected]> Co-authored-by: Jon Ursenbach <[email protected]> * v5.0.2 * fix(readme): clarify that the base log url has to be readme.io, not readme.com (#357) * chore(deps): upgrading node pkg dependencies (#377) * chore(deps-dev): upgrading prettier, eslint, and eslint-config * chore(deps-dev): bumping multer * chore(deps-dev): removing @typescript-eslint/parser as a dev dep * style: fixing eslint issues * fix: cleaning up the jest config so jest-haste-map doesnt error * chore(deps-dev): bumping ts-jest * chore(deps-dev): bumping body-parser * chore(deps-dev): bumping jest * chore(deps): bumping node-fetch * fix: excluding the dist from jest * chore(deps-dev): upgrading typescript to 4.6 * chore(deps-dev): bumping nock * v5.1.0 * chore: move dotnet repo into packages/dotnet (#391) * created classes to create har json, http request processing * Readme.Metrics library with .net core API versions 3.1, 5 and 6 * Update README.md * Updated middleware integration code to app.UseMiddleware<Readme.Metrics>() * remove build artifacts from git * restructure git ignores * update README.md to look more like ReadMe's standard metrics format * documentation cleanup for .com vs .io log issue * Update README.md * Update README.md * Update README.md * Add troubleshooting guide to readme (#2) * chore: move dotnet repo into packages/dotnet Used these for guidance: Bringing another repo + history into this one: https://stackoverflow.com/a/1684694 Git mv all files in a repo: https://stackoverflow.com/a/35201800 * chore: add dotnet repo mirroring to monorepo Co-authored-by: Ed <[email protected]> Co-authored-by: microsoftv3 <[email protected]> Co-authored-by: Aaron Hedges <[email protected]> * fix: x-forwarded-proto header parsing (#392) Some reverse proxies put multiple protocols into x-forwarded-proto which caused the `new URL()` constructor to fail. I removed the parsed protocol from the URL constructor, since we're only using that with a static hostname anyway. Then in the instance where we do need the parsed protocol, I added some logic to capture the first protocol if there's more than one. Fixes: https://github.com/readmeio/metrics-sdks/issues/378 * v5.1.1 * chore(deps-dev): bump @types/node from 16.11.11 to 17.0.24 (#396) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.11 to 17.0.24. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump minimist from 1.2.5 to 1.2.6 in /packages/node (#379) 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] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * created classes to create har json, http request processing * Readme.Metrics library with .net core API versions 3.1, 5 and 6 * Update README.md * Updated middleware integration code to app.UseMiddleware<Readme.Metrics>() * remove build artifacts from git * restructure git ignores * update README.md to look more like ReadMe's standard metrics format * documentation cleanup for .com vs .io log issue * Update README.md * Update README.md * Update README.md * Add troubleshooting guide to readme (#2) * test: whitespace to test subtree history push * Revert "chore: move dotnet repo into packages/dotnet (#391)" This reverts commit d6ee495dfa9907b36d6c1e72c200bfd463a9c1c4. * refactor: use git subtree from split.sh * refactor: switch to using ./bin/split.sh from github action This was quite a bit more involved than I wanted it to be, but hopefully this will mean we never forget to run it, and it will work consistently. Tested locally using the following command: ```sh act -j split-monorepo \ -s METRICS_SDK_NODE_PRIVATE_KEY="$(<~/.ssh/METRICS_SDK_NODE_PRIVATE_KEY)" \ -s METRICS_SDK_PHP_PRIVATE_KEY="$(<~/.ssh/METRICS_SDK_PHP_PRIVATE_KEY)" \ -s METRICS_SDK_PYTHON_PRIVATE_KEY="$(<~/.ssh/METRICS_SDK_PYTHON_PRIVATE_KEY)" \ -s METRICS_SDK_RUBY_PRIVATE_KEY="$(<~/.ssh/METRICS_SDK_RUBY_PRIVATE_KEY)" \ -s METRICS_SDK_DOTNET_PRIVATE_KEY="$(<~/.ssh/METRICS_SDK_DOTNET_PRIVATE_KEY)" \ --container-architecture linux/amd64 ``` You'll have to fetch these keys from 1password if you want to run it locally. * refactor: ensure the correct SSH key is used for each git push The previous implementation just used the first ssh key which failed so now we're using the `GIT_SSH_COMMAND` feature of git to provide a specific ssh key on each push. This is all getting kinda hairy tbh 😬 it seems okay but I can imagine coming back to this code in 6 months and not knowing what's happening 🤯 * fix(dotnet): update SDK to point to /v1/request (#405) * fix(dotnet): update SDK to point to /v1/request This is an updated API endpoint, we're deprecating the version-less one. * chore(dotnet): add TODO for later when we upgrade deps Fix version of RestSharp to v1.0.6 for the dotnet v6 example app This was breaking due to a deprecated interface * docs(dotnet): add some better example values to the test apps The lack of a `context.Request.Headers["key"];` when requesting the test server over GET was causing the requests to not be set. Lets just hardcode this for the example app. * feat: check to see if the github action actually works on github This will be reverted if all is well before merge. * fix: try a remote debugging session to attempt to resolve git issues 🤦‍♂️ * fix: fetch all git history so `git subtree push` works Remove debugging ssh action Co-authored-by: Jon Ursenbach <[email protected]> Co-authored-by: Sean Dokko <[email protected]> Co-authored-by: gkoberger <[email protected]> Co-authored-by: Jon Ursenbach <[email protected]> Co-authored-by: Kanad Gupta <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael DeRazon <[email protected]> Co-authored-by: Michael DeRazon <[email protected]> Co-authored-by: Dmitry Pimenov <[email protected]> Co-authored-by: Ilias Tsangaris <[email protected]> Co-authored-by: Ilias Tsangaris <[email protected]> Co-authored-by: Aaron Hedges <[email protected]> Co-authored-by: Ed <[email protected]> Co-authored-by: microsoftv3 <[email protected]>
1 parent 31e7f34 commit dfd00d2

File tree

14 files changed

+87
-18
lines changed

14 files changed

+87
-18
lines changed

.github/MAINTAINERS.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@
22
## Prepping a new release
33
In order to prep a new release we need to split the current `main` up to the individual mirrors for each SDK package.
44

5-
Why do this? Well for some of our packages the management systems in which they're delivered require a tag-based release and we can't tag individual directories so we need to split that package out to its own repository. [splitsh](https://github.com/splitsh/lite) handles this for us automatically and you can mirror the current codebase out to each package by running the following:
5+
Why do this? Well for some of our packages the management systems in which they're delivered require a tag-based release and we can't tag individual directories so we need to split that package out to its own repository. We use git subtrees to manage these mirrors. To push the subtrees from your local machine, you can run the following:
66

77
```
88
./bin/split.sh
99
```
1010

11-
> 🚧 &nbsp; Please note that if you create a new package to also create a mirrored repository for it and to add this into `bin/split.sh`.
11+
This automatically happens via github action on pushes to main. We use [Deploy Keys](https://docs.github.com/en/developers/overview/managing-deploy-keys#deploy-keys) to handle this for us.
12+
13+
### Adding a new mirror
14+
To add a new package (and a new mirrored repository), you have to generate a new SSH key, upload the public key to the mirrored repo and add the private key to the parent repo's secrets.
15+
16+
1. Generating a new SSH key:
17+
18+
```sh
19+
ssh-keygen -t ed25519 -C "$(git config user.email)" -f /tmp/new-ssh-key -N ""
20+
```
21+
22+
This will output a new key, associated with your email address to /tmp/new-ssh-key. The new key will have no passphrase because it will be used in a github action environment with no way to provide the passphrase.
23+
24+
2. Upload this to our 1password account
25+
3. Add the public key portion to the "Deploy Keys" section in the mirror e.g. https://github.com/readmeio/metrics-sdks-node/settings/keys/new. Make sure you check "Allow write access" so it can push new code.
26+
4. Add the private key portion to the "Actions secrets" section of the monorepo: https://github.com/readmeio/metrics-sdks/settings/secrets/actions/new
27+
5. Update `./bin/split.sh` and `./.github/workflows/split-monorepo.yml` to include the new mirror and SSH key.
1228

1329
### Issuing a new release
1430
#### Node

.github/workflows/split-monorepo.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Split monorepo into git mirrors"
2+
3+
on:
4+
push
5+
6+
jobs:
7+
split-monorepo:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Split repository into git mirrors
17+
env:
18+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
19+
METRICS_SDK_NODE_PRIVATE_KEY: ${{ secrets.METRICS_SDK_NODE_PRIVATE_KEY }}
20+
METRICS_SDK_PHP_PRIVATE_KEY: ${{ secrets.METRICS_SDK_PHP_PRIVATE_KEY }}
21+
METRICS_SDK_PYTHON_PRIVATE_KEY: ${{ secrets.METRICS_SDK_PYTHON_PRIVATE_KEY }}
22+
METRICS_SDK_RUBY_PRIVATE_KEY: ${{ secrets.METRICS_SDK_RUBY_PRIVATE_KEY }}
23+
METRICS_SDK_DOTNET_PRIVATE_KEY: ${{ secrets.METRICS_SDK_DOTNET_PRIVATE_KEY }}
24+
run: ./bin/split.sh
25+
shell: bash

bin/split.sh

+31-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,43 @@
22
set -e
33
set -x
44

5-
CURRENT_BRANCH="main"
5+
function remote() {
6+
git remote add $1 $2 || true
7+
}
68

79
function split() {
8-
# https://github.com/splitsh/lite
9-
SHA1=`./bin/splitsh-lite --prefix=$1`
10-
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f
10+
# Set up the correct SSH key for each repo
11+
# Without this it will just use the first
12+
# key it finds which will likely not be correct
13+
if [ -n "$GITHUB_ACTIONS" ]
14+
then
15+
export GIT_SSH_COMMAND="ssh -i /home/runner/.ssh/$2 -o IdentitiesOnly=yes"
16+
fi
17+
git subtree push --prefix $1 $2 main
1118
}
1219

13-
function remote() {
14-
git remote add $1 $2 || true
20+
# Inspired by https://maxschmitt.me/posts/github-actions-ssh-key/
21+
# This is so we can run this as part of a github action and push
22+
# code out to the mirrors
23+
function addSshKey() {
24+
# This only runs in a github action, since your local
25+
# ssh key will already have push access to the mirrors
26+
if [ -n "$GITHUB_ACTIONS" ]
27+
then
28+
mkdir -p /home/runner/.ssh
29+
ssh-keyscan github.com >> /home/runner/.ssh/known_hosts
30+
printenv $2 > /home/runner/.ssh/$1
31+
chmod 600 /home/runner/.ssh/$1
32+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null || true
33+
ssh-add /home/runner/.ssh/$1
34+
fi
1535
}
1636

17-
git pull origin $CURRENT_BRANCH
37+
addSshKey sdks-node METRICS_SDK_NODE_PRIVATE_KEY
38+
addSshKey sdks-php METRICS_SDK_PHP_PRIVATE_KEY
39+
addSshKey sdks-python METRICS_SDK_PYTHON_PRIVATE_KEY
40+
addSshKey sdks-ruby METRICS_SDK_RUBY_PRIVATE_KEY
41+
addSshKey sdks-dotnet METRICS_SDK_DOTNET_PRIVATE_KEY
1842

1943
remote sdks-node [email protected]:readmeio/metrics-sdks-node.git
2044
remote sdks-php [email protected]:readmeio/metrics-sdks-php.git

bin/splitsh-lite

-3.22 MB
Binary file not shown.

packages/dotnet/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ Make sure to supply a `baseLogUrl` option into your readme settings, which shoul
132132
- Any other config values you are using.
133133
- The Method, URL, Query Parameters, Request Body and Headers of the API call you are trying to log.
134134
- The response of the API call to the metrics server, i.e. the value of `response` on this line: https://github.com/readmeio/metrics-sdks-dotnet/blob/d849f12d33277870f846c974bf0eeed27788f3d8/Readme/HarJsonTranslationLogics/ReadmeApiCaller.cs#L30.
135+

packages/dotnet/Readme/ConstValues.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public static class ConstValues
66
public static readonly string version = "1.0.2";
77
public static readonly int wait = 0;
88
public static readonly string receive = null;
9-
public static readonly string readmeApiEndpoints = "https://metrics.readme.io/request";
10-
9+
public static readonly string readmeApiEndpoints = "https://metrics.readme.io/v1/request";
1110
}
1211
}

packages/dotnet/Readme/HarJsonTranslationLogics/ReadmeApiCaller.cs

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public async Task<string> SendHarObjToReadmeApi()
2727
string apiKey = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(_apiKey + ":"));
2828
request.AddHeader("Authorization", apiKey);
2929
request.AddParameter("application/json", _harJsonObject, ParameterType.RequestBody);
30+
// TODO when we upgrade RestSharp to v1.0.7, this interface has been deprecated
31+
// https://restsharp.dev/v107/#body-parameters=
32+
// We should update this to:
33+
// var response = await client.ExecuteAsync(request);
3034
IRestResponse response = await client.ExecuteAsync(request);
3135
return response.Content;
3236
}

packages/dotnet/ReadmeMetricsAPI3/Startup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
3737
//Or extract apikey from request body form or x-www-form-urlencoded by key as
3838
// req.Form["key"];
3939

40-
context.Items["apiKey"] = context.Request.Headers["key"];
40+
context.Items["apiKey"] = "apiKey";
4141
context.Items["label"] = "username / company name";
4242
context.Items["email"] = "email";
4343
await next();

packages/dotnet/ReadmeMetricsAPI3/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"AllowedHosts": "*",
1010
"readme": {
11-
"apiKey": "This is Readme API",
11+
"apiKey": "This is your ReadMe API Key",
1212
"options": {
1313
"allowList": [],
1414
"denyList": [ "password", "secret", "private" ],

packages/dotnet/ReadmeMetricsAPI5/Startup.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
3737
//Or extract apikey from request body form or x-www-form-urlencoded by key as
3838
// req.Form["key"];
3939

40-
context.Items["apiKey"] = context.Request.Headers["key"];
40+
context.Items["apiKey"] = "apiKey";
4141
context.Items["label"] = "username / company name";
4242
context.Items["email"] = "email";
4343
await next();

packages/dotnet/ReadmeMetricsAPI5/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"AllowedHosts": "*",
1010
"readme": {
11-
"apiKey": "This is Readme API",
11+
"apiKey": "This is your ReadMe API Key",
1212
"options": {
1313
"allowList": [],
1414
"denyList": [ "password", "secret", "private" ],

packages/dotnet/ReadmeMetricsAPI6/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//Or extract apikey from request body form or x-www-form-urlencoded by key as
2020
// context.Request.Form["key"];
2121

22-
context.Items["apiKey"] = context.Request.Headers["key"];
22+
context.Items["apiKey"] = "apiKey";
2323
context.Items["label"] = "username / company name";
2424
context.Items["email"] = "email";
2525
await next();

packages/dotnet/ReadmeMetricsAPI6/ReadmeMetricsAPI6.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
1111
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
12-
<PackageReference Include="RestSharp" Version="107.0.2" />
12+
<PackageReference Include="RestSharp" Version="106.13.0" />
1313
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
1414
</ItemGroup>
1515

packages/dotnet/ReadmeMetricsAPI6/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"AllowedHosts": "*",
99

1010
"readme": {
11-
"apiKey": "This is Readme API",
11+
"apiKey": "This is your ReadMe API Key",
1212
"options": {
1313
"allowList": [],
1414
"denyList": [ "password", "secret", "private" ],

0 commit comments

Comments
 (0)