From 033b60d38299406f49d26ffd42c390d4cc868625 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 13:43:31 +0000 Subject: [PATCH 1/2] chore(deps): bump @point-of-sale/receipt-printer-encoder in /frontend Bumps [@point-of-sale/receipt-printer-encoder](https://github.com/at-point-of-sale/ReceiptPrinterEncoder) from 3.0.3 to 4.0.1. - [Release notes](https://github.com/at-point-of-sale/ReceiptPrinterEncoder/releases) - [Changelog](https://github.com/at-point-of-sale/ReceiptPrinterEncoder/blob/main/documentation/changes.md) - [Commits](https://github.com/at-point-of-sale/ReceiptPrinterEncoder/commits) --- updated-dependencies: - dependency-name: "@point-of-sale/receipt-printer-encoder" dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- frontend/package-lock.json | 8 ++++---- frontend/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index aed86741a..3cb54fad6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@dnd-kit/dom": "^0.5.0", "@dnd-kit/react": "^0.5.0", - "@point-of-sale/receipt-printer-encoder": "^3.0.3", + "@point-of-sale/receipt-printer-encoder": "^4.0.1", "axios": "^1.20.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", @@ -2097,9 +2097,9 @@ "license": "MIT" }, "node_modules/@point-of-sale/receipt-printer-encoder": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@point-of-sale/receipt-printer-encoder/-/receipt-printer-encoder-3.0.3.tgz", - "integrity": "sha512-2+xgs6rwNfrkEw9g4LkgQS6k29qnmo3+hOV7Z2xHNBFn8h4FrwquZwL/dBOTwgmQ9sWEYBkj/bQkg9Rz6lL99w==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@point-of-sale/receipt-printer-encoder/-/receipt-printer-encoder-4.0.1.tgz", + "integrity": "sha512-ALLSmZl0uEH52r9hPffjdxzBBbbjQWPryjXmB0Eb2wsiVE3c2nSvOHEZPNLfgLLSaVAY4F9t1K3ZdI4altPPbQ==", "license": "MIT", "dependencies": { "@canvas/image-data": "^1.0.0", diff --git a/frontend/package.json b/frontend/package.json index 095c2e2d8..9f87c81a1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,7 +13,7 @@ "dependencies": { "@dnd-kit/dom": "^0.5.0", "@dnd-kit/react": "^0.5.0", - "@point-of-sale/receipt-printer-encoder": "^3.0.3", + "@point-of-sale/receipt-printer-encoder": "^4.0.1", "axios": "^1.20.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", From da362ae20579f0a64abd4558cd4f28312832cff9 Mon Sep 17 00:00:00 2001 From: khaira777 <777gurkirat@gmail.com> Date: Tue, 6 Oct 2026 12:30:47 -0400 Subject: [PATCH 2/2] test(printers): update receipt golden fixture for encoder v4 whitespace preservation --- .../golden-receipt-columns-v1.txt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/fixtures/receipt-columns/golden-receipt-columns-v1.txt b/tests/fixtures/receipt-columns/golden-receipt-columns-v1.txt index 1d34952de..65cd52f9c 100644 --- a/tests/fixtures/receipt-columns/golden-receipt-columns-v1.txt +++ b/tests/fixtures/receipt-columns/golden-receipt-columns-v1.txt @@ -231,12 +231,12 @@ rule=32 maxFontA=32 max=36 010 32A |Espresso Doppio 2| 011 14A |Rate: Rs250.00| 012 16A |Amount: Rs500.00| -013 30A |+ Oat milk x2 Rs160.00| -014 13A |>> Less sugar| +013 32A | + Oat milk x2 Rs160.00| +014 15A | >> Less sugar| 015 32A |Extra Long Caramelized Vanill. 1| 016 14A |Rate: Rs420.00| 017 16A |Amount: Rs420.00| -018 21A |+ No-price extra shot| +018 23A | + No-price extra shot| 019 32A |────────────────────────────────| 020 32A |Subtotal Rs1,220.00| 021 32A |Discount -Rs120.00| @@ -267,12 +267,12 @@ rule=42 maxFontA=42 max=43 008 42A |Item Qty Rate Amt| 009 42A |──────────────────────────────────────────| 010 42A |Espresso Doppio 2Rs250.00Rs500.00| -011 40A |+ Oat milk x2 Rs160.00| -012 13A |>> Less sugar| +011 42A | + Oat milk x2 Rs160.00| +012 15A | >> Less sugar| 013 42A |Extra Long Caramelized Vanilla Bean Cre. 1| 014 14A |Rate: Rs420.00| 015 16A |Amount: Rs420.00| -016 21A |+ No-price extra shot| +016 23A | + No-price extra shot| 017 42A |──────────────────────────────────────────| 018 42A |Subtotal Rs1,220.00| 019 42A |Discount -Rs120.00| @@ -303,10 +303,10 @@ rule=32 maxFontA=32 max=42 008 32A |────────────────────────────────| 009 32A |Espresso Doppio Rs500.00| 010 42 | 2 x Rs250.00| -011 30A |+ Oat milk x2 Rs160.00| +011 32A | + Oat milk x2 Rs160.00| 012 16A |Note: Less sugar| 013 32A |Extra Long Caramelized. Rs420.00| -014 21A |+ No-price extra shot| +014 23A | + No-price extra shot| 015 32A |────────────────────────────────| 016 32A |Discount -Rs120.00| 017 32A |Delivery Rs8.00| @@ -334,10 +334,10 @@ rule=42 maxFontA=42 max=56 008 42A |──────────────────────────────────────────| 009 42A |Espresso Doppio Rs500.00| 010 56 | 2 x Rs250.00| -011 40A |+ Oat milk x2 Rs160.00| +011 42A | + Oat milk x2 Rs160.00| 012 16A |Note: Less sugar| 013 42A |Extra Long Caramelized Vanilla B. Rs420.00| -014 21A |+ No-price extra shot| +014 23A | + No-price extra shot| 015 42A |──────────────────────────────────────────| 016 42A |Discount -Rs120.00| 017 42A |Delivery Rs8.00|