Skip to content

Releases: tr3v3r/react-native-esc-pos-printer

Release 3.1.1

11 May 22:18
Compare
Choose a tag to compare

3.1.1 (2024-05-11)

Release 4.0.0-beta.6

07 May 13:31
Compare
Choose a tag to compare
Release 4.0.0-beta.6 Pre-release
Pre-release

4.0.0-beta.6 (2024-05-07)

Features

  • added: docs for Printer constructor and connect method, allow to disconnect in case connection has lost (9da6f38)

Release 4.0.0-beta.5

26 Apr 09:29
Compare
Choose a tag to compare
Release 4.0.0-beta.5 Pre-release
Pre-release

4.0.0-beta.5 (2024-04-26)

Bug Fixes

  • fixed: fix Android blocking thread, increase timeout for discovery and connect to fix Android timeout error (ec510ef)

Release 4.0.0-beta.3

05 Apr 20:35
Compare
Choose a tag to compare
Release 4.0.0-beta.3 Pre-release
Pre-release

4.0.0-beta.3 (2024-04-05)

Breaking:

  • add initQueue and addQueueTask to Printer class

Changes here

So now, to use your queue engine, or remove it completely, you can extend from the Printer class and override two methods:
initQueue and addQueueTask

For instance, with this code, the p-queue won't be bundled.

class CustomQueuPrinter extends Printer {
  initQueue() {} // keep init clear
  addQueueTask<T>(task: () => Promise<T>) {  noop function
    return task(); //
  } 
}

Or you can implement these two methods with your engine:

class CustomQueuPrinter extends Printer {
  initQueue() {
    this.queue = new CustomQueue()
  }
  addQueueTask<T>(task: () => Promise<T>) {  
    return  this.queue.push(task) // or any other logic you need
  } 
}

Fixes

  • add all printer constants to be possible to import from the lib

Release 4.0.0-beta.2

28 Mar 08:11
Compare
Choose a tag to compare
Release 4.0.0-beta.2 Pre-release
Pre-release

4.0.0-beta.2 (2024-03-28)

Breaking:

  1. Moved print helpers to Printer static methods.

Before:

import { tryToConnectUntil } from 'react-native-esc-pos-printer'
...
tryToConnectUntil(
printerInstance,
(status) => status.online.statusCode === PrinterConstants.TRUE
)

After:

import { Printer } from 'react-native-esc-pos-printer'
...
Printer.tryToConnectUntil(
printerInstance,
(status) => status.online.statusCode === PrinterConstants.TRUE
)
  1. Moved pairBluetoothDevice to Discovery class

Refactoring:

  1. Move native constants to StringHelpers class
  2. Clean up Printer native classes on Android and iOS from redundant code

Release 4.0.0-beta.1

17 Mar 11:20
Compare
Choose a tag to compare
Release 4.0.0-beta.1 Pre-release
Pre-release

4.0.0-beta.1 (2024-03-17)

Features

  • added: add addTextLang method, get rid of legacy code (05b993f)
  • added: add clearCommandBuffer method (065f6a2bb)

Release 4.0.0-beta.0

14 Mar 08:41
Compare
Choose a tag to compare
Release 4.0.0-beta.0 Pre-release
Pre-release

4.0.0-beta.0 (2024-03-14)

To be updated...

Release 4.0.0-beta.4

26 Apr 09:27
Compare
Choose a tag to compare
Release 4.0.0-beta.4 Pre-release
Pre-release

4.0.0-beta.4 (2024-04-26)

Bug Fixes

  • fixed: fix Android blocking thread, increase timeout for discovery and connect to fix Android timeout error (ec510ef)

Release 3.1.0

06 Feb 12:47
Compare
Choose a tag to compare

3.1.0 (2024-02-06)

Bug Fixes

Features

  • add getPrinterStatus method (22a1b29)

Release v3.0.3

11 Dec 17:32
Compare
Choose a tag to compare

v3.0.3 (2023-12-11)