76 Commits

Author SHA1 Message Date
semantic-release-bot
1073ef20c4 chore(release): 1.15.1 [skip ci]
## [1.15.1](https://github.com/Cameri/nostream/compare/v1.15.0...v1.15.1) (2022-12-29)

### Bug Fixes

* bump json5 dep ([fa1a9af](fa1a9af088))
* handle malformed incoming messages ([ea2621f](ea2621f96e))
* reject sub with unsafe ints in since/until ([fe9ad92](fe9ad92b44))
2022-12-29 17:20:45 +00:00
Ricardo Arturo Cabral Mejía
939371f1e8 chore: add sinon to dev deps 2022-12-29 10:44:52 -05:00
semantic-release-bot
c39d84ee43 chore(release): 1.15.0 [skip ci]
# [1.15.0](https://github.com/Cameri/nostream/compare/v1.14.0...v1.15.0) (2022-12-29)

### Features

* add WORKER_COUNT env var ([a1b83b7](a1b83b7c56))
* fallback to PORT env var when listening ([1b50085](1b5008567b))
2022-12-29 06:17:18 +00:00
semantic-release-bot
ff10105b71 chore(release): 1.14.0 [skip ci]
# [1.14.0](https://github.com/Cameri/nostream/compare/v1.13.0...v1.14.0) (2022-12-27)

### Bug Fixes

* disable propagateCreateError ([792d45d](792d45d402))
* increase max pool size to 64 ([a7b02fc](a7b02fc5c9))

### Features

* add getClientAddress to WebSocketAdapter ([081e7de](081e7de925))
* add rate limit whitelists for pubkeys/ips ([3620026](3620026645))
* support pubkey/ip whitelisting for event rate limits ([845dedc](845dedc451))
2022-12-27 21:42:32 +00:00
semantic-release-bot
f25d0b82c9 chore(release): 1.13.0 [skip ci]
# [1.13.0](https://github.com/Cameri/nostream/compare/v1.12.1...v1.13.0) (2022-12-26)

### Features

* upsert kind 41 events ([41ae842](41ae842d7a))
2022-12-26 06:51:24 +00:00
Ricardo Arturo Cabral Mejía
b2f9fd59c7 docs: add nip-18 to docs 2022-12-26 01:47:01 -05:00
semantic-release-bot
c150cb2be5 chore(release): 1.12.1 [skip ci]
## [1.12.1](https://github.com/Cameri/nostream/compare/v1.12.0...v1.12.1) (2022-12-24)

### Bug Fixes

* ascii logo ([4f768e4](4f768e442f))
* ascii logo ([5205871](5205871cc8))
2022-12-24 21:17:55 +00:00
Ricardo Arturo Cabral Mejía
cf44523188 chore: rename project to nostream 2022-12-24 15:56:52 -05:00
semantic-release-bot
e0471cac7e chore(release): 1.12.0 [skip ci]
# [1.12.0](https://github.com/Cameri/nostr-ts-relay/compare/v1.11.0...v1.12.0) (2022-12-24)

### Bug Fixes

* abort message handler using listeners ([7469d97](7469d97221))
* create tor data dir when running tor ([d235a5a](d235a5ab65))
* send correct content-type headers ([2700b34](2700b34627))
* tor docker compose mounting wrong dir ([7cd4a3c](7cd4a3ca11))
* worker crash on large payloads ([cf2adac](cf2adac68d))

### Features

* add instructions on how to run nostr-ts-relay as a system service ([28117ae](28117aee5b))
* add network config to settings ([43bf0f9](43bf0f9c8f))
2022-12-24 20:17:08 +00:00
Ricardo Arturo Cabral Mejía
b99a2a243f
docs: add my pubkey 2022-12-23 07:11:42 -05:00
semantic-release-bot
bb428f3e3e chore(release): 1.11.0 [skip ci]
# [1.11.0](https://github.com/Cameri/nostr-ts-relay/compare/v1.10.0...v1.11.0) (2022-12-21)

### Bug Fixes

* integration tests ([f3c801e](f3c801e503))
* mount coverage config on container ([476757f](476757fc46))
* postgres config not mounted ([5edfc04](5edfc04d77))
* rogue 200 OK on ws connect ([6b37d69](6b37d6983a))
* type errors ([f309798](f3097983a0))

### Features

* ignore dupe subscriptions ([433b7f8](433b7f8707))
2022-12-21 06:51:30 +00:00
Ricardo Arturo Cabral Mejía
bb08f7637d chore: add start/stop scripts 2022-12-21 01:42:43 -05:00
Ricardo Arturo Cabral Mejía
5edfc04d77 fix: postgres config not mounted 2022-12-21 01:42:43 -05:00
semantic-release-bot
72252ecbc4 chore(release): 1.10.0 [skip ci]
# [1.10.0](https://github.com/Cameri/nostr-ts-relay/compare/v1.9.4...v1.10.0) (2022-12-17)

### Bug Fixes

* postgresql config not mounted ([a102cfc](a102cfcf9f))
* upgrade redis from 4.5.0 to 4.5.1 ([e7454c3](e7454c39be))

### Features

* add postgresql.conf ([4b1de5a](4b1de5afee))
2022-12-17 05:00:50 +00:00
snyk-bot
e7454c39be fix: upgrade redis from 4.5.0 to 4.5.1
Snyk has created this PR to upgrade redis from 4.5.0 to 4.5.1.

See this package in npm:
https://www.npmjs.com/package/redis

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-12-16 21:23:08 -05:00
semantic-release-bot
3b69869932 chore(release): 1.9.4 [skip ci]
## [1.9.4](https://github.com/Cameri/nostr-ts-relay/compare/v1.9.3...v1.9.4) (2022-12-15)

### Bug Fixes

* add access-control-allow-origin header ([07131c1](07131c1781))
2022-12-15 22:47:25 +00:00
semantic-release-bot
8d4c181f07 chore(release): 1.9.3 [skip ci]
## [1.9.3](https://github.com/Cameri/nostr-ts-relay/compare/v1.9.2...v1.9.3) (2022-12-01)

### Bug Fixes

* upgrade ws from 8.10.0 to 8.11.0 ([c693c47](c693c47f02))
2022-12-01 22:28:43 +00:00
snyk-bot
c693c47f02 fix: upgrade ws from 8.10.0 to 8.11.0
Snyk has created this PR to upgrade ws from 8.10.0 to 8.11.0.

See this package in npm:
https://www.npmjs.com/package/ws

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-28 21:05:05 -05:00
semantic-release-bot
d4db97083b chore(release): 1.9.2 [skip ci]
## [1.9.2](https://github.com/Cameri/nostr-ts-relay/compare/v1.9.1...v1.9.2) (2022-11-24)

### Bug Fixes

* dont fail docker builds due to husky ([2845fb5](2845fb50bf))
2022-11-24 04:30:40 +00:00
Ricardo Arturo Cabral Mejía
2845fb50bf
fix: dont fail docker builds due to husky
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2022-11-23 23:23:00 -05:00
semantic-release-bot
19d1274c7e chore(release): 1.9.1 [skip ci]
## [1.9.1](https://github.com/Cameri/nostr-ts-relay/compare/v1.9.0...v1.9.1) (2022-11-24)

### Bug Fixes

* upgrade joi from 17.6.4 to 17.7.0 ([7367c92](7367c92da4))
2022-11-24 02:48:10 +00:00
snyk-bot
7367c92da4 fix: upgrade joi from 17.6.4 to 17.7.0
Snyk has created this PR to upgrade joi from 17.6.4 to 17.7.0.

See this package in npm:
https://www.npmjs.com/package/joi

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-22 20:07:46 -05:00
semantic-release-bot
30e6edf072 chore(release): 1.9.0 [skip ci]
# [1.9.0](https://github.com/Cameri/nostr-ts-relay/compare/v1.8.0...v1.9.0) (2022-11-23)

### Features

* add content.maxLength setting ([2089c9f](2089c9fd61))
* reject events with long content field ([9364412](9364412677))
2022-11-23 01:00:09 +00:00
Ricardo Arturo Cabral Mejía
ca1a808700 chore: add husky hooks 2022-11-22 19:36:42 -05:00
Ricardo Arturo Cabral Mejía
c7cf78fc4b chore: install commitlint 2022-11-22 19:36:42 -05:00
Ricardo Arturo Cabral Mejía
4578434e2d chore: install husky 2022-11-22 19:36:42 -05:00
Ricardo Arturo Cabral Mejía
8050ba968e chore: add commitzen 2022-11-22 19:36:42 -05:00
semantic-release-bot
7f6b9bfec0 chore(release): 1.8.0 [skip ci]
# [1.8.0](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.6...v1.8.0) (2022-11-16)

### Bug Fixes

* inject sw rate limiter in event strategies ([760cb38](760cb387bf))

### Features

* add cache client ([bd79c93](bd79c938eb))
* add msg/event rate limit to settings ([a46fcc6](a46fcc64ce))
* add redis-adapter ([15bf0cf](15bf0cf6ee))
* add sliding window rate limiter ([42083a2](42083a2f98))
* rate limit msgs/events, send command results ([ff9b87f](ff9b87f8d6))
2022-11-16 02:22:22 +00:00
Ricardo Arturo Cabral Mejía
faa32c3f31 chore: generate eslint report 2022-11-15 21:17:20 -05:00
Ricardo Arturo Cabral Mejía
a788c0316c docs: add nip-20 support, redis 2022-11-15 21:17:20 -05:00
Ricardo Arturo Cabral Mejía
0ae5d3665c chore: install redis 2022-11-15 21:17:20 -05:00
semantic-release-bot
6c432aac0a chore(release): 1.7.6 [skip ci]
## [1.7.6](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.5...v1.7.6) (2022-11-15)

### Bug Fixes

* upgrade joi from 17.6.3 to 17.6.4 ([a04f5be](a04f5bed8a))
* upgrade ws from 8.9.0 to 8.10.0 ([d05455b](d05455bb8a))
2022-11-15 13:38:05 +00:00
snyk-bot
d05455bb8a fix: upgrade ws from 8.9.0 to 8.10.0
Snyk has created this PR to upgrade ws from 8.9.0 to 8.10.0.

See this package in npm:
https://www.npmjs.com/package/ws

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-14 21:45:22 -05:00
snyk-bot
a04f5bed8a fix: upgrade joi from 17.6.3 to 17.6.4
Snyk has created this PR to upgrade joi from 17.6.3 to 17.6.4.

See this package in npm:
https://www.npmjs.com/package/joi

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-13 16:45:45 -05:00
semantic-release-bot
9335e38b37 chore(release): 1.7.5 [skip ci]
## [1.7.5](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.4...v1.7.5) (2022-11-12)

### Bug Fixes

* use utf8 instead of utf-8 for ws messages ([4dc2405](4dc2405317))
2022-11-12 12:40:28 +00:00
semantic-release-bot
4b58bc7861 chore(release): 1.7.4 [skip ci]
## [1.7.4](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.3...v1.7.4) (2022-11-12)

### Bug Fixes

* upgrade pg-query-stream from 4.2.3 to 4.2.4 ([b9fa058](b9fa0581b5))
2022-11-12 02:46:10 +00:00
snyk-bot
b9fa0581b5 fix: upgrade pg-query-stream from 4.2.3 to 4.2.4
Snyk has created this PR to upgrade pg-query-stream from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/pg-query-stream

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-11 21:42:08 -05:00
semantic-release-bot
bc47c182ca chore(release): 1.7.3 [skip ci]
## [1.7.3](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.2...v1.7.3) (2022-11-12)

### Bug Fixes

* upgrade joi from 17.6.1 to 17.6.3 ([d7ab236](d7ab23624e))
2022-11-12 02:40:43 +00:00
snyk-bot
d7ab23624e fix: upgrade joi from 17.6.1 to 17.6.3
Snyk has created this PR to upgrade joi from 17.6.1 to 17.6.3.

See this package in npm:
https://www.npmjs.com/package/joi

See this project in Snyk:
https://app.snyk.io/org/cameri/project/2f0c25a2-d08a-45e1-a6f4-84766cbed88d?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-11 21:37:25 -05:00
semantic-release-bot
5126c3d1f4 chore(release): 1.7.2 [skip ci]
## [1.7.2](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.1...v1.7.2) (2022-11-12)

### Bug Fixes

* integration tests failing ([90d8b94](90d8b94194))
2022-11-12 02:18:55 +00:00
Ricardo Arturo Cabral Mejía
90d8b94194 fix: integration tests failing 2022-11-11 21:00:14 -05:00
semantic-release-bot
8cf3069a8b
chore(release): 1.7.1 [skip ci]
## [1.7.1](https://github.com/Cameri/nostr-ts-relay/compare/v1.7.0...v1.7.1) (2022-11-09)

### Bug Fixes

* set deduplication for old replaceable evts ([d23d4fa](d23d4fa275))
* treat kind 0 and 3 as replaceable events ([feaae03](feaae03604))
2022-11-08 23:52:38 -05:00
Ricardo Arturo Cabral Mejia
41181368b3
chore: update package json on release 2022-11-08 23:52:38 -05:00
Ricardo Arturo Cabral Mejia
0355e27f47
chore: add @semantic-release/git 2022-11-08 23:52:37 -05:00
Ricardo Arturo Cabral Mejia
716d05cfcd
chore: cleanup orphaned docker imgs 2022-11-08 23:52:37 -05:00
Ricardo Arturo Cabral Mejia
cf4888e28f
feat: expose relay over Tor 2022-11-08 23:52:35 -05:00
Ricardo Arturo Cabral Mejia
bdfd62d915
chore(ci): install conventionalcommits 2022-11-08 23:52:34 -05:00
Ricardo Arturo Cabral Mejia
53c22ed273
fix: docker:compose:up command 2022-11-08 23:52:33 -05:00
Ricardo Arturo Cabral Mejia
51d5cdaeb0
chore: add tg release bot 2022-11-08 23:52:32 -05:00
Ricardo Arturo Cabral Mejia
ed2f3f8ab0
chore(ci): add semantic releases 2022-11-08 23:52:32 -05:00