chore: bump to version 1.1.0

This commit is contained in:
Ricardo Arturo Cabral Mejia
2022-09-22 21:47:57 +00:00
parent 68678a5ad8
commit fa179cb2e8
4 changed files with 66 additions and 67 deletions

View File

@@ -16,12 +16,11 @@ NIPs with a relay-specific implementation are listed here.
- [x] NIP-09: Event deletion - [x] NIP-09: Event deletion
- [x] NIP-11: Relay information document - [x] NIP-11: Relay information document
- [x] NIP-12: Generic tag queries - [x] NIP-12: Generic tag queries
- [ ] NIP-13: Proof of Work - [x] NIP-13: Proof of Work
- [x] NIP-15: End of Stored Events Notice - [x] NIP-15: End of Stored Events Notice
- [x] NIP-16: Event Treatment - [x] NIP-16: Event Treatment
- [ ] NIP-25: Reactions - [x] NIP-22: Event `created_at` Limits
- [x] NIP-26: Delegated Event Signing - [x] NIP-26: Delegated Event Signing (DRAFT)
- [ ] NIP-27: Restricted Events (Experimental)
## Requirements ## Requirements

110
package-lock.json generated
View File

@@ -1,21 +1,21 @@
{ {
"name": "nostr-ts-relay", "name": "nostr-ts-relay",
"version": "1.0.0", "version": "1.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nostr-ts-relay", "name": "nostr-ts-relay",
"version": "1.0.0", "version": "1.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@noble/secp256k1": "1.6.3", "@noble/secp256k1": "1.7.0",
"joi": "^17.6.0", "joi": "17.6.1",
"knex": "^2.0.0", "knex": "2.3.0",
"pg": "^8.7.3", "pg": "8.8.0",
"pg-query-stream": "4.2.3", "pg-query-stream": "4.2.3",
"ramda": "^0.28.0", "ramda": "0.28.0",
"ws": "^8.5.0" "ws": "8.9.0"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.1", "@types/chai": "^4.3.1",
@@ -696,9 +696,9 @@
} }
}, },
"node_modules/@noble/secp256k1": { "node_modules/@noble/secp256k1": {
"version": "1.6.3", "version": "1.7.0",
"resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.3.tgz", "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz",
"integrity": "sha512-T04e4iTurVy7I8Sw4+c5OSN9/RkPlo1uKxAomtxQNLq8j1uPAqnsqG1bqvY3Jv7c13gyr6dui0zmh/I3+f/JaQ==", "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw==",
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
@@ -1534,9 +1534,9 @@
"dev": true "dev": true
}, },
"node_modules/colorette": { "node_modules/colorette": {
"version": "2.0.16", "version": "2.0.19",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz",
"integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==" "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ=="
}, },
"node_modules/commander": { "node_modules/commander": {
"version": "9.2.0", "version": "9.2.0",
@@ -2673,9 +2673,9 @@
} }
}, },
"node_modules/joi": { "node_modules/joi": {
"version": "17.6.0", "version": "17.6.1",
"resolved": "https://registry.npmjs.org/joi/-/joi-17.6.0.tgz", "resolved": "https://registry.npmjs.org/joi/-/joi-17.6.1.tgz",
"integrity": "sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw==", "integrity": "sha512-Hl7/iBklIX345OCM1TiFSCZRVaAOLDGlWCp0Df2vWYgBgjkezaR7Kvm3joBciBHQjZj5sxXs859r6eqsRSlG8w==",
"dependencies": { "dependencies": {
"@hapi/hoek": "^9.0.0", "@hapi/hoek": "^9.0.0",
"@hapi/topo": "^5.0.0", "@hapi/topo": "^5.0.0",
@@ -2764,11 +2764,11 @@
"peer": true "peer": true
}, },
"node_modules/knex": { "node_modules/knex": {
"version": "2.0.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/knex/-/knex-2.0.0.tgz", "resolved": "https://registry.npmjs.org/knex/-/knex-2.3.0.tgz",
"integrity": "sha512-LchC8/GLfreMz8d4kCwh/ymXttsoJG8zO1O0AJBjnxdyr2oT/k2ik77hP1PpZkZH9mDQrq6WsQcIu18Pnqppzg==", "integrity": "sha512-WMizPaq9wRMkfnwKXKXgBZeZFOSHGdtoSz5SaLAVNs3WRDfawt9O89T4XyH52PETxjV8/kRk0Yf+8WBEP/zbYw==",
"dependencies": { "dependencies": {
"colorette": "2.0.16", "colorette": "2.0.19",
"commander": "^9.1.0", "commander": "^9.1.0",
"debug": "4.3.4", "debug": "4.3.4",
"escalade": "^3.1.1", "escalade": "^3.1.1",
@@ -3654,14 +3654,14 @@
} }
}, },
"node_modules/pg": { "node_modules/pg": {
"version": "8.7.3", "version": "8.8.0",
"resolved": "https://registry.npmjs.org/pg/-/pg-8.7.3.tgz", "resolved": "https://registry.npmjs.org/pg/-/pg-8.8.0.tgz",
"integrity": "sha512-HPmH4GH4H3AOprDJOazoIcpI49XFsHCe8xlrjHkWiapdbHK+HLtbm/GQzXYAZwmPju/kzKhjaSfMACG+8cgJcw==", "integrity": "sha512-UXYN0ziKj+AeNNP7VDMwrehpACThH7LUl/p8TDFpEUuSejCUIwGSfxpHsPvtM6/WXFy6SU4E5RG4IJV/TZAGjw==",
"dependencies": { "dependencies": {
"buffer-writer": "2.0.0", "buffer-writer": "2.0.0",
"packet-reader": "1.0.0", "packet-reader": "1.0.0",
"pg-connection-string": "^2.5.0", "pg-connection-string": "^2.5.0",
"pg-pool": "^3.5.1", "pg-pool": "^3.5.2",
"pg-protocol": "^1.5.0", "pg-protocol": "^1.5.0",
"pg-types": "^2.1.0", "pg-types": "^2.1.0",
"pgpass": "1.x" "pgpass": "1.x"
@@ -3670,7 +3670,7 @@
"node": ">= 8.0.0" "node": ">= 8.0.0"
}, },
"peerDependencies": { "peerDependencies": {
"pg-native": ">=2.0.0" "pg-native": ">=3.0.1"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"pg-native": { "pg-native": {
@@ -3700,9 +3700,9 @@
} }
}, },
"node_modules/pg-pool": { "node_modules/pg-pool": {
"version": "3.5.1", "version": "3.5.2",
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.5.1.tgz", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.5.2.tgz",
"integrity": "sha512-6iCR0wVrro6OOHFsyavV+i6KYL4lVNyYAB9RD18w66xSzN+d8b66HiwuP30Gp1SH5O9T82fckkzsRjlrhD0ioQ==", "integrity": "sha512-His3Fh17Z4eg7oANLob6ZvH8xIVen3phEZh2QuyrIl4dQSDVEabNducv6ysROKpDNPSD+12tONZVWfSgMvDD9w==",
"peerDependencies": { "peerDependencies": {
"pg": ">=8.0" "pg": ">=8.0"
} }
@@ -4770,9 +4770,9 @@
} }
}, },
"node_modules/ws": { "node_modules/ws": {
"version": "8.5.0", "version": "8.9.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
"integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
}, },
@@ -5387,9 +5387,9 @@
} }
}, },
"@noble/secp256k1": { "@noble/secp256k1": {
"version": "1.6.3", "version": "1.7.0",
"resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.3.tgz", "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz",
"integrity": "sha512-T04e4iTurVy7I8Sw4+c5OSN9/RkPlo1uKxAomtxQNLq8j1uPAqnsqG1bqvY3Jv7c13gyr6dui0zmh/I3+f/JaQ==" "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw=="
}, },
"@nodelib/fs.scandir": { "@nodelib/fs.scandir": {
"version": "2.1.5", "version": "2.1.5",
@@ -5999,9 +5999,9 @@
"dev": true "dev": true
}, },
"colorette": { "colorette": {
"version": "2.0.16", "version": "2.0.19",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz",
"integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==" "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ=="
}, },
"commander": { "commander": {
"version": "9.2.0", "version": "9.2.0",
@@ -6853,9 +6853,9 @@
} }
}, },
"joi": { "joi": {
"version": "17.6.0", "version": "17.6.1",
"resolved": "https://registry.npmjs.org/joi/-/joi-17.6.0.tgz", "resolved": "https://registry.npmjs.org/joi/-/joi-17.6.1.tgz",
"integrity": "sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw==", "integrity": "sha512-Hl7/iBklIX345OCM1TiFSCZRVaAOLDGlWCp0Df2vWYgBgjkezaR7Kvm3joBciBHQjZj5sxXs859r6eqsRSlG8w==",
"requires": { "requires": {
"@hapi/hoek": "^9.0.0", "@hapi/hoek": "^9.0.0",
"@hapi/topo": "^5.0.0", "@hapi/topo": "^5.0.0",
@@ -6927,11 +6927,11 @@
"peer": true "peer": true
}, },
"knex": { "knex": {
"version": "2.0.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/knex/-/knex-2.0.0.tgz", "resolved": "https://registry.npmjs.org/knex/-/knex-2.3.0.tgz",
"integrity": "sha512-LchC8/GLfreMz8d4kCwh/ymXttsoJG8zO1O0AJBjnxdyr2oT/k2ik77hP1PpZkZH9mDQrq6WsQcIu18Pnqppzg==", "integrity": "sha512-WMizPaq9wRMkfnwKXKXgBZeZFOSHGdtoSz5SaLAVNs3WRDfawt9O89T4XyH52PETxjV8/kRk0Yf+8WBEP/zbYw==",
"requires": { "requires": {
"colorette": "2.0.16", "colorette": "2.0.19",
"commander": "^9.1.0", "commander": "^9.1.0",
"debug": "4.3.4", "debug": "4.3.4",
"escalade": "^3.1.1", "escalade": "^3.1.1",
@@ -7609,14 +7609,14 @@
"dev": true "dev": true
}, },
"pg": { "pg": {
"version": "8.7.3", "version": "8.8.0",
"resolved": "https://registry.npmjs.org/pg/-/pg-8.7.3.tgz", "resolved": "https://registry.npmjs.org/pg/-/pg-8.8.0.tgz",
"integrity": "sha512-HPmH4GH4H3AOprDJOazoIcpI49XFsHCe8xlrjHkWiapdbHK+HLtbm/GQzXYAZwmPju/kzKhjaSfMACG+8cgJcw==", "integrity": "sha512-UXYN0ziKj+AeNNP7VDMwrehpACThH7LUl/p8TDFpEUuSejCUIwGSfxpHsPvtM6/WXFy6SU4E5RG4IJV/TZAGjw==",
"requires": { "requires": {
"buffer-writer": "2.0.0", "buffer-writer": "2.0.0",
"packet-reader": "1.0.0", "packet-reader": "1.0.0",
"pg-connection-string": "^2.5.0", "pg-connection-string": "^2.5.0",
"pg-pool": "^3.5.1", "pg-pool": "^3.5.2",
"pg-protocol": "^1.5.0", "pg-protocol": "^1.5.0",
"pg-types": "^2.1.0", "pg-types": "^2.1.0",
"pgpass": "1.x" "pgpass": "1.x"
@@ -7639,9 +7639,9 @@
"integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==" "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="
}, },
"pg-pool": { "pg-pool": {
"version": "3.5.1", "version": "3.5.2",
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.5.1.tgz", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.5.2.tgz",
"integrity": "sha512-6iCR0wVrro6OOHFsyavV+i6KYL4lVNyYAB9RD18w66xSzN+d8b66HiwuP30Gp1SH5O9T82fckkzsRjlrhD0ioQ==", "integrity": "sha512-His3Fh17Z4eg7oANLob6ZvH8xIVen3phEZh2QuyrIl4dQSDVEabNducv6ysROKpDNPSD+12tONZVWfSgMvDD9w==",
"requires": {} "requires": {}
}, },
"pg-protocol": { "pg-protocol": {
@@ -8387,9 +8387,9 @@
} }
}, },
"ws": { "ws": {
"version": "8.5.0", "version": "8.9.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
"integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
"requires": {} "requires": {}
}, },
"xtend": { "xtend": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "nostr-ts-relay", "name": "nostr-ts-relay",
"version": "1.0.0", "version": "1.1.0",
"description": "A nostr relay written in Typescript.", "description": "A nostr relay written in Typescript.",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {
@@ -61,12 +61,12 @@
"uuid": "^8.3.2" "uuid": "^8.3.2"
}, },
"dependencies": { "dependencies": {
"@noble/secp256k1": "1.6.3", "@noble/secp256k1": "1.7.0",
"joi": "^17.6.0", "joi": "17.6.1",
"knex": "^2.0.0", "knex": "2.3.0",
"pg": "^8.7.3", "pg": "8.8.0",
"pg-query-stream": "4.2.3", "pg-query-stream": "4.2.3",
"ramda": "^0.28.0", "ramda": "0.28.0",
"ws": "^8.5.0" "ws": "8.9.0"
} }
} }

View File

@@ -32,7 +32,7 @@ export class WebServerAdapter extends EventEmitter implements IWebServerAdapter
description, description,
pubkey, pubkey,
contact, contact,
supported_nips: [1, 2, 4, 9, 11, 12, 15, 16, 26], supported_nips: [1, 2, 4, 9, 11, 12, 15, 16, 22, 26],
software: packageJson.repository.url, software: packageJson.repository.url,
version: packageJson.version, version: packageJson.version,
} }