Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(node): new unified code snippet for both the webhook and metrics #879

Merged
merged 66 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
d0fa714
feat(node): first pass at new code snippet for node
mjcuva Jul 5, 2023
91c0298
feat: second pass at unified snippet
mjcuva Jul 17, 2023
ff68893
feat: first pass at local webpage verifying config
mjcuva Jul 25, 2023
39d3e74
chore: comments
mjcuva Jul 26, 2023
284553f
style: setup view (#889)
runnabro Aug 1, 2023
ca30c30
fix: use jwt secret instead of api key
mjcuva Aug 2, 2023
75a2830
feat: testing for metrics works now too
mjcuva Aug 3, 2023
a39934d
fix: add more explaining copy
mjcuva Aug 7, 2023
484ec57
style: more
runnabro Aug 10, 2023
ce37c2f
feat: add syntax highlighting
mjcuva Aug 10, 2023
7410e8a
chore: refresh lockfile
kanadgupta Aug 16, 2023
458202f
Merge branch 'main' into node/unified-snippet
kanadgupta Aug 16, 2023
689189d
Merge branch 'main' into node/unified-snippet
kanadgupta Aug 23, 2023
7ef4ae4
Merge branch 'main' into node/unified-snippet
kanadgupta Aug 23, 2023
041d1de
fix: unified snippet QA (#902)
kanadgupta Sep 6, 2023
7ce0983
Merge branch 'node/unified-snippet' of github.com:readmeio/metrics-sdks
mjcuva Sep 6, 2023
a51645e
feat: new getUser function (#914)
mjcuva Sep 6, 2023
79c915d
fix: split up config and user
mjcuva Sep 6, 2023
80247b0
fix: lint
mjcuva Sep 6, 2023
0924576
fix: start thinking about error handling
mjcuva Sep 6, 2023
cdf789b
fix: some cleanup
mjcuva Nov 1, 2023
f3c751d
feat: add more handling for error states
mjcuva Nov 3, 2023
620d3ab
Merge branch 'main' of github.com:readmeio/metrics-sdks
mjcuva Nov 6, 2023
17221bf
feat(metrics): get group id wip
jamestclark Nov 8, 2023
6f97f0f
feat(metrics): support both searching for groupId by apiKey & operation
jamestclark Dec 5, 2023
7dcb16e
feat(metrics): support basic auth when looking up by api key
jamestclark Dec 5, 2023
5e8d21f
feat(metrics): re-add .api
jamestclark Dec 5, 2023
94e3c5b
chore: bumping the version to a 7.0 alpha
erunion Dec 7, 2023
02ce531
fix: broken tests
mjcuva Dec 7, 2023
d6d1ad5
Merge branch 'node/unified-snippet' of github.com:readmeio/metrics-sd…
mjcuva Dec 7, 2023
7d070b9
fix(auth): add support for basic auth in keys
jamestclark Dec 8, 2023
7b53499
Merge branch 'node/unified-snippet' of github.com:readmeio/metrics-sd…
mjcuva Dec 19, 2023
ed5ca4a
Update packages/node/src/index.ts
mjcuva Dec 19, 2023
0a9621a
Update packages/node/src/index.ts
mjcuva Dec 19, 2023
e1dc57a
Update packages/node/src/index.ts
mjcuva Dec 19, 2023
cf5c59d
Merge branch 'node/unified-snippet' of github.com:readmeio/metrics-sd…
mjcuva Dec 19, 2023
7468cf4
fix: small ts and async cleanup
mjcuva Dec 19, 2023
b8a680d
Merge branch 'main' into node/unified-snippet
mjcuva Dec 19, 2023
44951dc
fix: link to docs
mjcuva Dec 19, 2023
b4d752d
fix: remove old comment
mjcuva Dec 19, 2023
9090451
Merge branch 'main' into node/unified-snippet
mjcuva Dec 19, 2023
0457eef
fix: cleanup local page
mjcuva Jan 5, 2024
9ae1bfd
chore(BREAKING): node 18
kanadgupta Jan 8, 2024
1bb39d1
fix: make sure to use stable version for link to dashboard
mjcuva Jan 8, 2024
4ab1777
ci: drop <18 tests, add fail-fast flag
kanadgupta Jan 8, 2024
b1c92be
fix: dockerfiles
kanadgupta Jan 8, 2024
39bd03e
ci: try `npm i` for everything
kanadgupta Jan 8, 2024
684f4fb
fix: skip lib checks in tsconfig
kanadgupta Jan 8, 2024
1dcbea0
Merge remote-tracking branch 'origin/node-18' into node/unified-snippet
mjcuva Jan 8, 2024
9cef7a8
fix: update lockfile
mjcuva Jan 8, 2024
c7fddd4
fix: yay lockfiles
mjcuva Jan 8, 2024
c1a8e9d
fix: pin lerna to 6
mjcuva Jan 8, 2024
a4384a7
fix: only node
mjcuva Jan 8, 2024
fc408ac
chore: publish alpha.1
mjcuva Jan 8, 2024
67c75d0
fix: tests
mjcuva Jan 9, 2024
408ba7c
Merge branch 'main' into node/unified-snippet
mjcuva Jan 9, 2024
46c7332
fix: require development true to enable test page
mjcuva Jan 12, 2024
dd18d50
chore: new alpha
mjcuva Jan 12, 2024
9e83630
chore: small copy cleanup
mjcuva Jan 16, 2024
dd10ae8
chore: update user-agent to match what we do elsewhere
mjcuva Jan 16, 2024
13d0971
fix: clean up exports
mjcuva Jan 31, 2024
83a8917
chore: move files around and add jsdoc
mjcuva Jan 31, 2024
72edfc6
chore: update version
mjcuva Jan 31, 2024
f2fb3b6
fix: call it express
mjcuva Jan 31, 2024
48e8815
refactor: convert `ReadMe` into a class (#958)
kanadgupta Feb 1, 2024
28ba769
chore: update node version
mjcuva Feb 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
packages/cloudflare-worker/coverage/
packages/cloudflare-worker/dist/
packages/node/src/.api/
packages/node/coverage/
packages/node/dist/
packages/php/examples/
Expand Down
1,238 changes: 1,035 additions & 203 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "metrics-sdks-monorepo",
"private": true,
"scripts": {
"clean": "npx lerna clean",
"clean": "npx lerna@6 clean",
"lint": "eslint test/ && npm run lint --workspaces",
"lint:docs": "alex .",
"prepare": "husky install",
"prettier": "prettier --list-different \"./**/**.{js,ts,md}\"",
"prettier:write": "prettier --list-different --write \"./**/**.{js,ts,md}\"",
"publish": "npx lerna publish",
"publish": "npx lerna@6 publish",
"test": "npm test --workspaces",
"test:integration-metrics": "vitest test/integration-metrics.test.js",
"test:integration-metrics-watch": "vitest run test/integration-metrics.test.js",
Expand Down
5 changes: 4 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "readmeio",
"description": "Track your API metrics within ReadMe.",
"version": "6.2.0",
"version": "7.0.0-alpha.5",
"license": "ISC",
"homepage": "https://readme.com/metrics",
"bugs": {
Expand All @@ -27,11 +27,14 @@
"dependencies": {
"@types/har-format": "^1.2.10",
"@types/node-fetch": "^2.6.2",
"api": "^6.1.1",
"content-type": "^1.0.5",
"find-cache-dir": "^3.3.2",
"flat-cache": "^3.0.4",
"json-schema-to-ts": "^2.9.2",
"lodash": "^4.17.15",
"node-fetch": "^2.6.7",
"oas": "^20.10.2",
"ssri": "^10.0.1",
"timeout-signal": "^1.1.0",
"type-is": "^1.6.18",
Expand Down
11 changes: 11 additions & 0 deletions packages/node/src/.api/api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0",
"apis": [
{
"identifier": "developers",
"source": "@developers/v2.0#5a1mg1plldzmnq5",
"integrity": "sha512-pA1uoUA9nuzjAXOzYpXzBxL8P9YgJbthrDnufYNJS6YJnK0j0Rz5wNA3JlwJrA69vJpDTu22MB4JnSlifeE0oA==",
"installerVersion": "6.1.1"
}
]
}
Loading
Loading