Release as 0.5.0 rather than 1.0.0 #2
@@ -5,7 +5,7 @@ Guidance for LLM agents working in this repository. What each file in it is for
|
|||||||
|
|
||||||
## What this is
|
## What this is
|
||||||
|
|
||||||
A ground-up TypeScript rewrite of `larvitsmpp` 0.4.0, published as `@larvit/smpp` 1.0.0. The branch
|
A ground-up TypeScript rewrite of `larvitsmpp` 0.4.0, published as `@larvit/smpp` 0.5.0. The branch
|
||||||
started from an orphan commit — no history from 0.4.0 is carried over. The 0.4.0 source is still
|
started from an orphan commit — no history from 0.4.0 is carried over. The 0.4.0 source is still
|
||||||
readable on the `v0.4.0` branch of the same repository and is the reference for protocol behaviour,
|
readable on the `v0.4.0` branch of the same repository and is the reference for protocol behaviour,
|
||||||
not for structure or style.
|
not for structure or style.
|
||||||
@@ -338,14 +338,15 @@ Grouped by what each one constrains.
|
|||||||
What settles it here is the resolved text rather than the parameter, because `writeParams()`
|
What settles it here is the resolved text rather than the parameter, because `writeParams()`
|
||||||
substitutes the field's own default: a peer that omits `message_id` and one that writes it empty
|
substitutes the field's own default: a peer that omits `message_id` and one that writes it empty
|
||||||
build the same octets, leaving a raw-parameter test nothing to tell apart. Rejected: keeping `''`
|
build the same octets, leaving a raw-parameter test nothing to tell apart. Rejected: keeping `''`
|
||||||
and documenting it, which leaves the published type promising what the value does not keep —
|
and documenting it, which leaves the published type promising what the value does not keep — goal
|
||||||
goal 2, a wrong answer about what the peer named. Rejected: dropping the unnamed entries, which
|
2, a wrong answer about what the peer named. Rejected: dropping the unnamed entries, which breaks
|
||||||
breaks the positional correspondence with `pduObjs` that README promises and loses which segment a
|
the positional correspondence with `pduObjs` that README promises and loses which segment a PDU
|
||||||
PDU belongs to. Rejected: `{ id?: string; pduObj: PduObject }[]`, which makes that positional
|
belongs to. Rejected: `{ id?: string; pduObj: PduObject }[]`, which makes that positional promise
|
||||||
promise structural where today the compiler cannot check it; deferred to the next major, the first
|
structural where today the compiler cannot check it; deferred to the next breaking release, the
|
||||||
place two documented fields may become one. Accepted: every consumer reading `smsIds` narrows,
|
first place two documented fields may become one. Accepted: every consumer reading `smsIds`
|
||||||
including the majority whose SMSC names every id; indexing narrows too, except for the consumer
|
narrows, including the majority whose SMSC names every id; indexing narrows too, except for the
|
||||||
who sets `noUncheckedIndexedAccess`, which typed `smsIds[0]` as `string | undefined` already.
|
consumer who sets `noUncheckedIndexedAccess`, which typed `smsIds[0]` as `string | undefined`
|
||||||
|
already.
|
||||||
|
|
||||||
### The wire
|
### The wire
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Migrating from larvitsmpp 0.4.0
|
# Migrating from larvitsmpp 0.4.0
|
||||||
|
|
||||||
`@larvit/smpp` 1.0.0 succeeds [larvitsmpp](https://www.npmjs.com/package/larvitsmpp) 0.4.0. The
|
`@larvit/smpp` 0.5.0 succeeds [larvitsmpp](https://www.npmjs.com/package/larvitsmpp) 0.4.0. The
|
||||||
shape is the same, connect, send, listen for delivery reports, with callbacks replaced by promises.
|
shape is the same, connect, send, listen for delivery reports, with callbacks replaced by promises.
|
||||||
|
|
||||||
## API changes
|
## API changes
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@larvit/smpp",
|
"name": "@larvit/smpp",
|
||||||
"version": "1.0.0",
|
"version": "0.5.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@larvit/smpp",
|
"name": "@larvit/smpp",
|
||||||
"version": "1.0.0",
|
"version": "0.5.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "10.0.1",
|
"@eslint/js": "10.0.1",
|
||||||
|
|||||||
+4
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@larvit/smpp",
|
"name": "@larvit/smpp",
|
||||||
"version": "1.0.0",
|
"version": "0.5.0",
|
||||||
"description": "SMPP 3.4 client and server for Node.js with the session layer built in: keepalive, reconnect, send window, long messages and delivery receipts",
|
"description": "SMPP 3.4 client and server for Node.js with the session layer built in: keepalive, reconnect, send window, long messages and delivery receipts",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"esm",
|
"esm",
|
||||||
@@ -10,6 +10,9 @@
|
|||||||
"typescript"
|
"typescript"
|
||||||
],
|
],
|
||||||
"homepage": "https://gitea.larvit.se/larvit/smpp-js",
|
"homepage": "https://gitea.larvit.se/larvit/smpp-js",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/larvit/smpp-js/issues"
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://gitea.larvit.se/larvit/smpp-js.git"
|
"url": "git+https://gitea.larvit.se/larvit/smpp-js.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user