Skip to content

Commit e217dc2

Browse files
authored
Update version to 0.4.0-RC1 and add MacOS Intel builds (#144)
* Add Intel macOS builds * Bump version to 0.4.0-RC1
1 parent f781cab commit e217dc2

File tree

7 files changed

+62
-7
lines changed

7 files changed

+62
-7
lines changed

.semaphore/semaphore.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,59 @@ blocks:
406406
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
407407
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
408408

409+
- name: "macOS Intel: Release"
410+
dependencies: [ ]
411+
run:
412+
when: "tag =~ '^v[0-9]\\.'"
413+
task:
414+
agent:
415+
machine:
416+
type: s1-prod-macos-13-5-amd64
417+
env_vars:
418+
- name: ARCHITECTURE
419+
value: "amd64"
420+
- name: PLATFORM
421+
value: "darwin"
422+
- name: LIBC
423+
value: "unknown"
424+
jobs:
425+
- name: "Release: LTS:18"
426+
commands:
427+
- sem-version node 18.19.0
428+
- export NODE_ABI=108
429+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
430+
- npm ci # node-pre-gyp will fallback to build here, because new tag implies no release yet.
431+
- npx node-pre-gyp package
432+
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
433+
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
434+
- name: "Release: LTS:20"
435+
commands:
436+
- sem-version node 20.10.0
437+
- export NODE_ABI=115
438+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
439+
- npm ci # node-pre-gyp will fallback to build here, because new tag implies no release yet.
440+
- npx node-pre-gyp package
441+
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
442+
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
443+
- name: "Release: latest: 21"
444+
commands:
445+
- sem-version node 21.4.0
446+
- export NODE_ABI=120
447+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
448+
- npm ci # node-pre-gyp will fallback to build here, because new tag implies no release yet.
449+
- npx node-pre-gyp package
450+
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
451+
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
452+
- name: "Release: latest: 22"
453+
commands:
454+
- sem-version node 22.2.0
455+
- export NODE_ABI=127
456+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
457+
- npm ci # node-pre-gyp will fallback to build here, because new tag implies no release yet.
458+
- npx node-pre-gyp package
459+
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
460+
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
461+
409462
- name: "Windows x64: Release"
410463
dependencies: [ ]
411464
run:
@@ -502,6 +555,7 @@ blocks:
502555
- 'Linux amd64 musl: Release'
503556
- 'Linux arm64 musl: Release'
504557
- 'macOS arm64/m1: Release'
558+
- 'macOS Intel: Release'
505559
- 'Windows x64: Release'
506560
run:
507561
when: "tag =~ '^v[0-9]\\.'"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ v0.4.0 is a limited availability feature release. It is supported for all usage.
99
3. Reduce consumer poll timeout to nil and add wakeups for new messages. This improves
1010
the consumer efficiency, and resolves issues while running multiple consumers within
1111
the same node process (#135).
12+
4. Add pre-built binaries for macOS (Intel).
1213

1314

1415
# confluent-kafka-javascript v0.3.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following configurations are supported:
3434

3535
* Any supported version of Node.js (The two LTS versions, 18 and 20, and the latest versions, 21 and 22).
3636
* Linux (x64 and arm64) - both glibc and musl/alpine.
37-
* macOS - arm64/m1.
37+
* macOS - arm64/m1. macOS (Intel) is supported on a best-effort basis.
3838
* Windows - x64.
3939

4040
Installation on any of these platforms is meant to be seamless, without any C/C++ compilation required.

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ util.dictToStringList = function (mapOrObject) {
5252
return list;
5353
};
5454

55-
util.bindingVersion = '0.3.0';
55+
util.bindingVersion = '0.4.0-RC1';

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@confluentinc/kafka-javascript",
3-
"version": "0.3.0",
3+
"version": "0.4.0-RC1",
44
"description": "Node.js bindings for librdkafka",
55
"librdkafka": "2.6.0",
66
"librdkafka_win": "2.6.0",

schemaregistry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@confluentinc/schemaregistry",
3-
"version": "0.3.0",
3+
"version": "0.4.0-RC1",
44
"description": "Node.js client for Confluent Schema Registry",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)