deps: update nbytes to 0.1.3 · nodejs/node@75c8e18 · GitHub
Skip to content

Commit 75c8e18

Browse files
nodejs-github-botaduh95
authored andcommitted
deps: update nbytes to 0.1.3
PR-URL: #61879 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 89318b0 commit 75c8e18

7 files changed

Lines changed: 57 additions & 8 deletions

File tree

Lines changed: 3 additions & 0 deletions

deps/nbytes/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
## [0.1.3](https://github.com/nodejs/nbytes/compare/v0.1.2...v0.1.3) (2026-02-18)
4+
5+
6+
### Bug Fixes
7+
8+
* use arithmetic HexEncode instead of lookups ([#12](https://github.com/nodejs/nbytes/issues/12)) ([8011baf](https://github.com/nodejs/nbytes/commit/8011baff1dfecf48b5feca21cb29b72e3562c919))

deps/nbytes/CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.28)
2-
project(nbytes)
2+
project(nbytes VERSION 0.1.3) # x-release-please-version
33

44
set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED True)
@@ -40,3 +40,16 @@ install(
4040
ARCHIVE COMPONENT nbytes_development
4141
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
4242
)
43+
44+
# Configure and install pkg-config file
45+
configure_file(
46+
"${PROJECT_SOURCE_DIR}/nbytes.pc.in"
47+
"${PROJECT_BINARY_DIR}/nbytes.pc"
48+
@ONLY
49+
)
50+
51+
install(
52+
FILES "${PROJECT_BINARY_DIR}/nbytes.pc"
53+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
54+
COMPONENT nbytes_development
55+
)

deps/nbytes/include/nbytes.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,12 @@ size_t SearchString(const char *haystack, size_t haystack_length,
836836

837837
// ============================================================================
838838
// Version metadata
839-
#define NBYTES_VERSION "0.1.1"
839+
#define NBYTES_VERSION "0.1.3" // x-release-please-version
840840

841841
enum {
842-
NBYTES_VERSION_MAJOR = 0,
843-
NBYTES_VERSION_MINOR = 1,
844-
NBYTES_VERSION_REVISION = 1,
842+
NBYTES_VERSION_MAJOR = 0, // x-release-please-major
843+
NBYTES_VERSION_MINOR = 1, // x-release-please-minor
844+
NBYTES_VERSION_REVISION = 3, // x-release-please-patch
845845
};
846846

847847
} // namespace nbytes

deps/nbytes/nbytes.pc.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
exec_prefix=${prefix}
3+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
4+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
5+
6+
Name: nbytes
7+
Description: Library of byte handling functions extracted from Node.js core
8+
Version: @PROJECT_VERSION@
9+
Libs: -L${libdir} -lnbytes
10+
Cflags: -I${includedir}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "simple",
5+
"extra-files": [
6+
"CMakeLists.txt",
7+
"include/nbytes.h"
8+
]
9+
}
10+
}
11+
}

deps/nbytes/src/nbytes.cpp

Lines changed: 7 additions & 3 deletions

0 commit comments

Comments
 (0)