From 80dc263915b86e9de1ea93ac4cef6652109fd253 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 28 Sep 2026 04:09:40 +0200 Subject: [PATCH] Name strict-mode code as where a getter-only assignment throws --- CHANGELOG.md | 4 ++-- MIGRATION.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7f7a54..2847a9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,8 +78,8 @@ removed: read `session.boundAs !== undefined`. A session you wire yourself records the bind it accepted or had accepted with `session.bound(bindType, declaredVersion)`, which returns `err` for a bind type or version it cannot record. An assignment to either field does not compile in - TypeScript, throws a `TypeError` in an ES module or strict-mode script, and is ignored in - sloppy-mode CommonJS. + TypeScript, throws a `TypeError` in strict-mode code (every ES module, and any file under + `'use strict'`), and is ignored otherwise. ## 0.5.0 diff --git a/MIGRATION.md b/MIGRATION.md index 9c0e433..8f47396 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -13,8 +13,8 @@ shape is the same, connect, send, listen for delivery reports, with callbacks re a `session` event. It no longer calls back once per connection. - **The id a message is answered with goes to `sendResp({ smsId })`.** `sms.smsId` is read-only: the id the segments were answered with, the id `sendResp()` was given, or the generated UUID v7. - Assigning to it throws a `TypeError` in an ES module or strict-mode script, and is ignored in - sloppy-mode CommonJS. + Assigning to it throws a `TypeError` in strict-mode code (every ES module, and any file under + `'use strict'`), and is ignored otherwise. - **`smsIds` from `sendSms()` is `(string | undefined)[]`**, one entry per segment, positional with `pduObjs`, `undefined` where the SMSC took the segment without naming an id. - **`checkuserpass` is `authenticate`**, takes `{ password, session, systemId, systemType }` and