Skip to content

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

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 21, 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 Sep 21, 2026
@coderabbitai

coderabbitai Bot commented Sep 21, 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: 6d644fa5-4a0d-4a66-b20f-8c4db997ef76

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

Autopilot is currently an internal CodeRabbit preview.


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 changed the title chore(deps): bump @point-of-sale/receipt-printer-encoder from 3.0.3 to 4.0.0 in /frontend chore(deps): bump @point-of-sale/receipt-printer-encoder from 3.0.3 to 4.0.1 in /frontend Sep 30, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.0 branch from 0342a67 to 6f0573f Compare September 30, 2026 20:33
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.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.0 branch from 6f0573f to 2168b08 Compare October 1, 2026 02:00
@dependabot @github

dependabot Bot commented on behalf of github Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #962.

@dependabot dependabot Bot closed this Oct 5, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/frontend/point-of-sale/receipt-printer-encoder-4.0.0 branch October 5, 2026 01:08
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.

0 participants