Skip to content

Commit 83b9bfb

Browse files
committed
set version v2.0.0
1 parent 3e9c3b8 commit 83b9bfb

11 files changed

Lines changed: 21 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## Develop
44

5+
## v2.0.0
6+
7+
- **Breaking (Python):** `rx_process()` now raises typed exceptions (`LwPKTError` and subclasses)
8+
on malformed input, instead of silently discarding or printing to console
9+
- Publish Python implementation to PyPI as `lwpkt` (`pip install lwpkt`)
10+
- Add continuation-byte limits to variable-length fields (`len`, address, `cmd`, `flags`) in both
11+
C and Python, rejecting corrupted/malicious streams instead of parsing them unbounded
12+
- Add missing `NULL`-instance checks across setter functions and `lwpkt_write`
13+
- Update bundled LwRB to latest version
14+
- Add GCC CMake preset for native builds
15+
516
## v1.5.1
617

718
- Fix the platformio library package description

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LwPKT",
3-
"version": "1.5.1",
3+
"version": "2.0.0",
44
"description": "Lightweight packet protocol library for communication implementation",
55
"keywords": "lwpkt, packet, protocol, manager, communication, com, lightweight, rs-485, rs-422, rs485, rs422, rs-232, rs232, uart, usart, lpuart",
66
"repository": {

lwpkt/src/include/lwpkt/lwpkt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_HDR_H
3535
#define LWPKT_HDR_H

lwpkt/src/include/lwpkt/lwpkt_opt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_OPT_HDR_H
3535
#define LWPKT_OPT_HDR_H

lwpkt/src/include/lwpkt/lwpkt_opts_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_OPTS_HDR_H
3535
#define LWPKT_OPTS_HDR_H

lwpkt/src/lwpkt/lwpkt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#include <stdint.h>
3535
#include <string.h>

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "lwpkt"
7-
version = "1.5.1"
7+
version = "2.0.0"
88
description = "Lightweight packet protocol library for communication implementation"
99
readme = "README.md"
1010
requires-python = ">=3.10"

tests/dynamic/lwpkt_opts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_HDR_OPTS_H
3535
#define LWPKT_HDR_OPTS_H

tests/static_all_disabled/lwpkt_opts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_HDR_OPTS_H
3535
#define LWPKT_HDR_OPTS_H

tests/static_all_enabled/lwpkt_opts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* This file is part of LwPKT - Lightweight packet protocol library.
3030
*
3131
* Author: Tilen MAJERLE <tilen@majerle.eu>
32-
* Version: v1.5.1
32+
* Version: v2.0.0
3333
*/
3434
#ifndef LWPKT_HDR_OPTS_H
3535
#define LWPKT_HDR_OPTS_H

0 commit comments

Comments
 (0)