Skip to content

chore(deps): bump @point-of-sale/receipt-printer-encoder from 3.0.3 to 4.0.1 in /frontend - #962

Merged
khaira777 merged 3 commits into
mainfrom
dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.1
Oct 6, 2026
Merged

khaira777 merged 3 commits into
mainfrom
dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @point-of-sale/receipt-printer-encoder from 3.0.3 to 4.0.1.

Changelog

Sourced from @​point-of-sale/receipt-printer-encoder's changelog.

Version 4.0.1

  • With codepage('auto') a code page command is sent only when the page changes. Version 4.0.0 sent one before every line and every fragment, also when the printer was already on that page. Nothing changes on paper, the output is shorter. After raw() the code page command is sent again before the next text, in automatic and in explicit mode, because the encoder cannot know what the raw bytes did to the printer.
  • Raster images are sent in commands of at most 255 rows. Some printers read only the low byte of the row count of the raster command and print the rest of a taller image as text. Images of 248 rows or fewer are sent as before.
  • The reset of the alignment after an image, barcode, QR code or PDF417 code is sent after the line feed of the block instead of before it, because printers process an alignment command only at the start of a line, and some drop it otherwise. With feedAfterBlock: false there is no line feed and the order is as before.
  • image() takes a mode option, column or raster, which picks the ESC/POS image command for that image instead of the imageMode option of the encoder.

Migrating from version 2 to version 3

ReceiptPrinterEncoder has been completely rewritten in version 3, but we've attempted to keep the API backwards compatible. And for the most part that is true, except when dealing with images in Node. See below for the details.

New name

ReceiptPrinterEncoder was previously named ThermalPrinterEncoder. This name was changed to be more consistant with its sister libraries. Also we're now moving to a single scope for all Point-Of-Sale related libraries.

Version 2:

npm i thermal-printer-encoder

Version 3:

npm i @point-of-sale/receipt-printer-encoder

Standalone

Previously this library had a dependancy on EscPosEncoder and StarPrntEncoder. That is no longer the case, as this library can now encode both ESC/POS, StarLine and StarPRNT by itself. That means there is less duplicated code and our bundle size can be quite a bit smaller.

If you are still using EscPosEncoder or StarPrntEncoder, the dependancy is now the other way around. EscPosEncoder and StarPrntEncoder have been updated to use ReceiptPrinterEncoder as a dependency and it is advised to use ReceiptPrinterEncoder instead.

Default language

In previous versions of this library you had to specify a language, such as esc-pos or star-prnt. If you did not specify the language, you would get an exception. In the latest version the langauge will default to esc-pos.

Dependency on canvas removed

When using Node, this library previously had a dependency on the canvas package for dealing with images. In version 3 we've made this library more lightweight and flexible by removing this dependency, allowing you to use other libraries as well.

However, if you want to continue using the canvas package for images, you now have to handle the dependency yourself.

This only applies if you provide the image as an Image object. If you make your own image and provide a Canvas object, you do not need to make any modifications.

... (truncated)

Commits

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Oct 5, 2026
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Oct 5, 2026
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ff5b281-f1e1-4cf0-852a-9a0b14ffc297

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.1 branch 3 times, most recently from 7bc6ea6 to 792558c Compare October 6, 2026 16:12
dependabot Bot and others added 2 commits October 6, 2026 12:16
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] <[email protected]>
@khaira777
khaira777 force-pushed the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.1 branch from 792558c to da362ae Compare October 6, 2026 16:31
@khaira777
khaira777 enabled auto-merge (squash) October 6, 2026 17:08
@khaira777
khaira777 merged commit 7831e94 into main Oct 6, 2026
16 checks passed
@khaira777
khaira777 deleted the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.1 branch October 6, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant