132 Commits

Author SHA1 Message Date
semantic-release-bot
6a8ccb4919 chore(release): 2.1.0 [skip ci]
# [2.1.0](https://github.com/cameri/nostream/compare/v2.0.0...v2.1.0) (2024-10-23)

### Bug Fixes

* save event from mirrors ([#376](https://github.com/cameri/nostream/issues/376)) ([6497229](64972290d6))

### Features

* add dark theme support for static html files ([#373](https://github.com/cameri/nostream/issues/373)) ([3d1e573](3d1e5733cc))
2024-10-23 01:51:59 +00:00
Ricardo Arturo Cabral Mejía
10ee85e2b5 chore: update repository url 2024-10-22 19:08:21 -04:00
Ricardo Arturo Cabral Mejía
64972290d6
fix: save event from mirrors (#376)
* fix: save event from mirrors

* docs: add config for mirroring event limits

* chore: add skip admission check (thanks YEGHRO)

* 2.0.1

* chore: bump some deps
2024-10-22 09:09:34 -04:00
Ricardo Arturo Cabral Mejía
b6133a18fd
chore: update @cucumber/cucumber to 10.2.1 (#356) 2024-01-12 15:43:36 -08:00
semantic-release-bot
64d0f79178 chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/Cameri/nostream/compare/v1.26.0...v2.0.0) (2024-01-12)

* feat!: remove nip-26 delegation support (#350) ([6760ab0](6760ab0e10)), closes [#350](https://github.com/Cameri/nostream/issues/350)

### BREAKING CHANGES

* NIP-26 support has been removed. Delegated events will not be handled differently.
2024-01-12 23:12:12 +00:00
Ricardo Arturo Cabral Mejía
6760ab0e10
feat!: remove nip-26 delegation support (#350)
BREAKING CHANGE: NIP-26 support has been removed. Delegated events will not be handled differently.
2024-01-12 13:12:04 -08:00
semantic-release-bot
4cf24b97a7 chore(release): 1.26.0 [skip ci]
# [1.26.0](https://github.com/Cameri/nostream/compare/v1.25.2...v1.26.0) (2024-01-12)

### Bug Fixes

* `invoice.verifyURL` undefined from lnurl processor getInvoice ([#325](https://github.com/Cameri/nostream/issues/325)) ([33c2fd5](33c2fd52e3))
* deleting parameterized replaceable event before event ([#354](https://github.com/Cameri/nostream/issues/354)) ([030bbb3](030bbb33b8))
* strange behavior with nip 33 parameterized replacable events and nip 40 expiration tag ([#316](https://github.com/Cameri/nostream/issues/316)) ([d1d4cb9](d1d4cb9e25))
* typos ([#334](https://github.com/Cameri/nostream/issues/334)) ([3b5b1fc](3b5b1fc85f))

### Features

* add nodeinfo support ([#347](https://github.com/Cameri/nostream/issues/347)) ([d9e4020](d9e402060d))
* **event_tags:** Add event_tags table and migration script ([#349](https://github.com/Cameri/nostream/issues/349)) ([9bf0262](9bf0262cfc))
2024-01-12 06:00:12 +00:00
Ricardo Arturo Cabral Mejía
8cc8b5071c
chore: bump axios to 1.6.5 (#351) 2024-01-11 19:28:56 -08:00
semantic-release-bot
a63c035d22 chore(release): 1.25.2 [skip ci]
## [1.25.2](https://github.com/Cameri/nostream/compare/v1.25.1...v1.25.2) (2023-05-25)

### Bug Fixes

* confirm invoice confirmedAt is undefined ([#320](https://github.com/Cameri/nostream/issues/320)) ([e0e3a11](e0e3a11afd))
2023-05-25 13:34:05 +00:00
semantic-release-bot
7969701096 chore(release): 1.25.1 [skip ci]
## [1.25.1](https://github.com/Cameri/nostream/compare/v1.25.0...v1.25.1) (2023-05-25)

### Bug Fixes

* zebedee callback not marking invoice as paid ([#318](https://github.com/Cameri/nostream/issues/318)) ([a2670d0](a2670d030e))
2023-05-25 01:17:35 +00:00
semantic-release-bot
2335a57096 chore(release): 1.25.0 [skip ci]
# [1.25.0](https://github.com/Cameri/nostream/compare/v1.24.1...v1.25.0) (2023-05-23)

### Bug Fixes

* generic tag queries not accepting uppercase letters ([#312](https://github.com/Cameri/nostream/issues/312)) ([7331f95](7331f9560f))

### Features

* implement opennode payments processor ([#315](https://github.com/Cameri/nostream/issues/315)) ([df1a364](df1a36437c))
2023-05-23 15:14:34 +00:00
semantic-release-bot
054b110d5d chore(release): 1.24.1 [skip ci]
## [1.24.1](https://github.com/Cameri/nostream/compare/v1.24.0...v1.24.1) (2023-05-19)

### Bug Fixes

* lnbits broken after lnurl-pay support ([#310](https://github.com/Cameri/nostream/issues/310)) ([018f9a1](018f9a14fb))
2023-05-19 18:01:07 +00:00
semantic-release-bot
123db2c0e7 chore(release): 1.24.0 [skip ci]
# [1.24.0](https://github.com/Cameri/nostream/compare/v1.23.0...v1.24.0) (2023-05-15)

### Features

* implement nodeless payments processor ([#305](https://github.com/Cameri/nostream/issues/305)) ([52aac39](52aac39875)), closes [#298](https://github.com/Cameri/nostream/issues/298) [#271](https://github.com/Cameri/nostream/issues/271) [#202](https://github.com/Cameri/nostream/issues/202) [#303](https://github.com/Cameri/nostream/issues/303)
2023-05-15 15:17:16 +00:00
semantic-release-bot
62c1dbe22c chore(release): 1.23.0 [skip ci]
# [1.23.0](https://github.com/Cameri/nostream/compare/v1.22.6...v1.23.0) (2023-05-12)

### Bug Fixes

* add SECRET as env variable ([#298](https://github.com/Cameri/nostream/issues/298)) ([58a1254](58a12546f0))
* invoice auto marked as paid ([be6d6f1](be6d6f1454))
* issues with invoices ([#271](https://github.com/Cameri/nostream/issues/271)) ([e1561e7](e1561e78fd))

### Features

* add LNURL processor ([#202](https://github.com/Cameri/nostream/issues/202)) ([f237400](f23740073f))
* allow lightning zap receipts on paid relays ([#303](https://github.com/Cameri/nostream/issues/303)) ([14bc96f](14bc96f516))
2023-05-12 23:57:57 +00:00
semantic-release-bot
d80342837a chore(release): 1.22.6 [skip ci]
## [1.22.6](https://github.com/Cameri/nostream/compare/v1.22.5...v1.22.6) (2023-02-21)

### Bug Fixes

* rsv1 error ([#225](https://github.com/Cameri/nostream/issues/225)) ([0954d84](0954d8426c))
2023-02-21 05:49:47 +00:00
semantic-release-bot
6335496bf9 chore(release): 1.22.5 [skip ci]
## [1.22.5](https://github.com/Cameri/nostream/compare/v1.22.4...v1.22.5) (2023-02-20)

### Bug Fixes

* confirm invoice function ambiguous unit variable ([#221](https://github.com/Cameri/nostream/issues/221)) ([fd32949](fd3294929a))
* Dockerfile.test to reduce vulnerabilities ([#196](https://github.com/Cameri/nostream/issues/196)) ([eac8c50](eac8c508ce))
* upgrade axios from 1.2.4 to 1.2.5 ([#211](https://github.com/Cameri/nostream/issues/211)) ([a390e29](a390e2922d))
* upgrade axios from 1.2.5 to 1.2.6 ([#215](https://github.com/Cameri/nostream/issues/215)) ([e99ac5d](e99ac5d02b))
* upgrade pg from 8.8.0 to 8.9.0 ([#213](https://github.com/Cameri/nostream/issues/213)) ([fe3726b](fe3726bc08))
* upgrade pg-query-stream from 4.2.4 to 4.3.0 ([#214](https://github.com/Cameri/nostream/issues/214)) ([9272389](927238980e))
* upgrade redis from 4.5.1 to 4.6.2 ([#212](https://github.com/Cameri/nostream/issues/212)) ([86e8818](86e8818917))
2023-02-20 17:21:49 +00:00
Ricardo Arturo Cabral Mejía
fd3294929a
fix: confirm invoice function ambiguous unit variable (#221)
* fix: dont crash when SECRET is not set

* docs: add semisol to contributors

* docs: improve readme

* docs: add payment info to readme

* docs: add zebedee_api_key to configuration.md

* fix: confirm_invoice unit var

* chore: remove unused code

* chore: improve error logging for payments

* chore: use  instead of changeme

* chore: fix typo

* chore: improve get invoice status ctrl

* fix: csp bug

* chore: remove rate limits

* chore: improve invoice page logging

* chore: prevent root with start_local

* chore: revert to redis 4.5.1
2023-02-20 09:15:45 -08:00
Snyk bot
e99ac5d02b
fix: upgrade axios from 1.2.5 to 1.2.6 (#215) 2023-02-19 22:43:05 -05:00
Ricardo Arturo Cabral Mejía
a390e2922d
fix: upgrade axios from 1.2.4 to 1.2.5 (#211)
Snyk has created this PR to upgrade axios from 1.2.4 to 1.2.5.

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

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

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-02-17 15:06:06 -08:00
Snyk bot
fe3726bc08
fix: upgrade pg from 8.8.0 to 8.9.0 (#213)
Snyk has created this PR to upgrade pg from 8.8.0 to 8.9.0.

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

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

Co-authored-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-17 14:19:39 -08:00
Snyk bot
86e8818917
fix: upgrade redis from 4.5.1 to 4.6.2 (#212)
Snyk has created this PR to upgrade redis from 4.5.1 to 4.6.2.

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
2023-02-17 13:21:30 -08:00
Snyk bot
927238980e
fix: upgrade pg-query-stream from 4.2.4 to 4.3.0 (#214)
Snyk has created this PR to upgrade pg-query-stream from 4.2.4 to 4.3.0.

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
2023-02-17 13:21:10 -08:00
semantic-release-bot
8727120f08 chore(release): 1.22.4 [skip ci]
## [1.22.4](https://github.com/Cameri/nostream/compare/v1.22.3...v1.22.4) (2023-02-15)

### Bug Fixes

* don't send expiration data to buff ([#207](https://github.com/Cameri/nostream/issues/207)) ([7533288](7533288370))
2023-02-15 18:55:24 +00:00
Ricardo Arturo Cabral Mejía
b9a13c8868
chore: support nip-11a 2023-02-15 00:52:56 -05:00
semantic-release-bot
9f56750f49 chore(release): 1.22.3 [skip ci]
## [1.22.3](https://github.com/Cameri/nostream/compare/v1.22.2...v1.22.3) (2023-02-15)

### Bug Fixes

* bug unable confirm invoice ([#204](https://github.com/Cameri/nostream/issues/204)) ([bcd072e](bcd072efcd))
* upgrade axios from 1.2.3 to 1.2.4 ([#203](https://github.com/Cameri/nostream/issues/203)) ([b7c9b95](b7c9b95411))
* upgrade knex from 2.4.1 to 2.4.2 ([#200](https://github.com/Cameri/nostream/issues/200)) ([d985658](d9856589e5))
2023-02-15 04:48:26 +00:00
Ricardo Arturo Cabral Mejía
d9856589e5
fix: upgrade knex from 2.4.1 to 2.4.2 (#200)
Snyk has created this PR to upgrade knex from 2.4.1 to 2.4.2.

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

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

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-02-14 17:12:44 -08:00
Ricardo Arturo Cabral Mejía
b7c9b95411
fix: upgrade axios from 1.2.3 to 1.2.4 (#203)
Snyk has created this PR to upgrade axios from 1.2.3 to 1.2.4.

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

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

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-02-14 16:14:29 -08:00
semantic-release-bot
1722b0eaf1 chore(release): 1.22.2 [skip ci]
## [1.22.2](https://github.com/Cameri/nostream/compare/v1.22.1...v1.22.2) (2023-02-10)

### Bug Fixes

* instructions to run locally ([#188](https://github.com/Cameri/nostream/issues/188)) ([202737c](202737c7b8))
* upgrade axios from 1.2.2 to 1.2.3 ([#184](https://github.com/Cameri/nostream/issues/184)) ([22b06b7](22b06b78e9))
* upgrade knex from 2.4.0 to 2.4.1 ([#185](https://github.com/Cameri/nostream/issues/185)) ([ff50681](ff50681aa2))
2023-02-10 20:59:41 +00:00
Ricardo Arturo Cabral Mejía
ff50681aa2
fix: upgrade knex from 2.4.0 to 2.4.1 (#185)
Snyk has created this PR to upgrade knex from 2.4.0 to 2.4.1.

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

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

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-02-09 17:27:12 -08:00
Snyk bot
22b06b78e9
fix: upgrade axios from 1.2.2 to 1.2.3 (#184)
Snyk has created this PR to upgrade axios from 1.2.2 to 1.2.3.

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

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
2023-02-09 17:26:43 -08:00
semantic-release-bot
49bc63c03d chore(release): 1.22.1 [skip ci]
## [1.22.1](https://github.com/Cameri/nostream/compare/v1.22.0...v1.22.1) (2023-02-05)

### Bug Fixes

* Dockerfile.test to reduce vulnerabilities ([#170](https://github.com/Cameri/nostream/issues/170)) ([a0dcc05](a0dcc05b56))
* SettingsStatic class default to yaml file ([#158](https://github.com/Cameri/nostream/issues/158)) ([7a4667c](7a4667c27f))
* update supported nips in readme ([#164](https://github.com/Cameri/nostream/issues/164)) ([a0ff972](a0ff972c49))
2023-02-05 05:21:33 +00:00
semantic-release-bot
e5ede41617 chore(release): 1.22.0 [skip ci]
# [1.22.0](https://github.com/Cameri/nostream/compare/v1.21.0...v1.22.0) (2023-02-04)

### Features

* support nip-111 ([#168](https://github.com/Cameri/nostream/issues/168)) ([a7169b3](a7169b3569))
2023-02-04 19:00:52 +00:00
Ricardo Arturo Cabral Mejía
a7169b3569
feat: support nip-111 (#168)
* feat: support nip-111

* test: update schemas
2023-02-04 10:55:53 -08:00
semantic-release-bot
67ad1eb1d1 chore(release): 1.21.0 [skip ci]
# [1.21.0](https://github.com/Cameri/nostream/compare/v1.20.0...v1.21.0) (2023-02-04)

### Features

* Add health api endpoint or kind ([#166](https://github.com/Cameri/nostream/issues/166)) ([bfcdac5](bfcdac51b0))
2023-02-04 07:15:16 +00:00
semantic-release-bot
3af69967e5 chore(release): 1.20.0 [skip ci]
# [1.20.0](https://github.com/Cameri/nostream/compare/v1.19.0...v1.20.0) (2023-02-04)

### Bug Fixes

* disable commitlint case rules ([b8c3536](b8c35364a7))
* remove footer-max-line-length rule ([43186a0](43186a01e6))

### Features

* added uri string for redis and postgres ([1475d65](1475d65b41))
* NIP-40 ([#148](https://github.com/Cameri/nostream/issues/148)) ([2bbe798](2bbe798760))
2023-02-04 01:47:24 +00:00
Anton
2bbe798760
feat: NIP-40 (#148)
* feat: add method for checking if event is expired

* fix: tag length check

* feat: add method for expiration check

* feat: refactor event expiration

* fix: remove stale comment

* fix: remove unused method

* fix: upsert/insert tests

* fix: failing tests

* feat: add tests for event expiration

* feat: update test

* feat: add nip 40 to supportedNips

* chore: add expires_at column to events table

* chore: use uint for expires_at

---------

Co-authored-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-03 16:10:49 -08:00
semantic-release-bot
39d69e153d chore(release): 1.19.0 [skip ci]
# [1.19.0](https://github.com/Cameri/nostream/compare/v1.18.0...v1.19.0) (2023-02-02)

### Bug Fixes

* crash when payments are disabled ([280e24f](280e24f75c))
* error on heartbeat ([9d1a027](9d1a027c0d))
* increase rate limits ([282f7db](282f7db0a1))
* invalid type for extname() ([f578247](f5782473eb))
* lots of bugs ([9c010e7](9c010e7865))
* nip-11 doc and tests ([4ec6f20](4ec6f20cc9))
* patch ([b0adba6](b0adba6abc))
* patch knex ([ad7ab69](ad7ab69d36))
* rate limiter err ([7778cd1](7778cd169b))
* refactor to use process.cwd() ([2469295](24692955f9))
* remove dupe updated_at column from invoice ([d1cdd96](d1cdd9672a))
* remove test file which is failing ci/cd ([77177a2](77177a20c0))
* since to be in seconds ([9021aa6](9021aa6b11))
* typo ([f9c7dbf](f9c7dbf9dd))
* upgrade @noble/secp256k1 from 1.7.0 to 1.7.1 ([a8f44cd](a8f44cd717))
* upgrade ws from 8.11.0 to 8.12.0 ([779f7b7](779f7b7fe6))
* use knex 2.4.0 everywhere ([a9b03b2](a9b03b27d7))

### Features

* add pay-to-relay ([2618a4d](2618a4d2dc))
* add yaml parser js-yaml ([bee6302](bee6302dd5))
* adding powered by ZBD badge if its enabled payment processor ([54684a7](54684a76f3))
* implement static mirroring ([cd4c60a](cd4c60a139))
* massive update ([f9c53ee](f9c53eeeb8))
* **utils:** refactor settings to use yaml ([5a8107f](5a8107f73c))
2023-02-02 05:32:31 +00:00
Ricardo Arturo Cabral Mejía
4ec6f20cc9 fix: nip-11 doc and tests
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
f9c53eeeb8 feat: massive update
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
55561847e8 chore: add lint:report script
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
9f8a25cdc4 chore: install @types/js-yaml
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
2023-02-02 00:19:26 -05:00
Anton Livaja
8b8c4b4eaa chore: patch vuln in knex and pin dotenv 2023-02-02 00:19:26 -05:00
Anton Livaja
bee6302dd5 feat: add yaml parser js-yaml 2023-02-02 00:19:26 -05:00
Ricardo Arturo Cabral Mejía
2618a4d2dc feat: add pay-to-relay 2023-02-02 00:19:26 -05:00
snyk-bot
779f7b7fe6 fix: upgrade ws from 8.11.0 to 8.12.0
Snyk has created this PR to upgrade ws from 8.11.0 to 8.12.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
2023-02-01 02:48:43 -05:00
snyk-bot
a8f44cd717 fix: upgrade @noble/secp256k1 from 1.7.0 to 1.7.1
Snyk has created this PR to upgrade @noble/secp256k1 from 1.7.0 to 1.7.1.

See this package in npm:
https://www.npmjs.com/package/@noble/secp256k1

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
2023-02-01 02:48:10 -05:00
semantic-release-bot
3f6b5e4b11 chore(release): 1.18.0 [skip ci]
# [1.18.0](https://github.com/Cameri/nostream/compare/v1.17.3...v1.18.0) (2023-01-25)

### Features

* support db read replicas ([0903979](09039791f1))
2023-01-25 05:28:16 +00:00
semantic-release-bot
ad0e853298 chore(release): 1.17.3 [skip ci]
## [1.17.3](https://github.com/Cameri/nostream/compare/v1.17.2...v1.17.3) (2023-01-25)

### Bug Fixes

* remove tor-proxy from docker-compose.yml ([ee62d46](ee62d4664e))
2023-01-25 01:52:46 +00:00
semantic-release-bot
d4f5fa522b chore(release): 1.17.2 [skip ci]
## [1.17.2](https://github.com/Cameri/nostream/compare/v1.17.1...v1.17.2) (2023-01-18)

### Bug Fixes

* acq conn recommendation ([0d53069](0d530699a0))
* don't crash when unable to acquire connection ([a519f4f](a519f4f36d))
2023-01-18 01:16:53 +00:00
semantic-release-bot
26ae58cc76 chore(release): 1.17.1 [skip ci]
## [1.17.1](https://github.com/Cameri/nostream/compare/v1.17.0...v1.17.1) (2023-01-17)

### Bug Fixes

* load settings from local disk ([0151123](015112329e))
2023-01-17 12:09:40 +00:00