Tags: Cellivar/WebZLP
Tags
V2.0.2: ASCII strikes again (#67) Turns out TextEncoder and TextDecoder both will end up generating invalid ASCII text on a round-trip. The v2 rewrite made EPL image commands round-trip back through a string, which introduced opportunities for non-ASCII characters to sneak in undetected. This moves completely to homegrown encoder/decoder functions everywhere and adds explicit 1:1 tests for all 256 ASCII characters because I am so done playing this game.
Fix: Correct mistake in ZPL sensor configs (#64) Apparently my testing of ZPL sensor levels wasn't thorough enough, I needed to do more digging into various eras of manuals to sort out what was going wrong with setting some printer's values. This was only an issue if you were specifically setting sensors manually. I dragged a bunch of different information into the docs for this one because I had to re-learn some of these pieces for the third time. This also fixed a couple of issues with the demo UI.
v2: Ignore other devices (#48) An early design oversight has lead to a v2 release. The `connectedDevice` event performs no checking to ensure the device that connected is one the library cares about. I never tested the scenario of connecting something other than a bunch of laser printers at the same time until now. Since that required an API change I figured I'd add as much API-breaking-changes in one go as I could. Anyway. This includes a switch to Vite, which I've found a VERY pleasant ecosystem to work within for building the package. ## Breaking changes: * USBDeviceManager is the new manager class. * LabelPrinter is the new Printer class. * A few other ancillary classes became interfaces and names changes slightly. The types should be self-explanatory to follow.
PreviousNext