Skip to content

Commit a62ca53

Browse files
committed
Change name internally
1 parent 92a6fdc commit a62ca53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+219
-219
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ about: Create a report to help us improve
99
- Node Version [e.g. 8.2.1]:
1010
- NPM Version [e.g. 5.4.2]:
1111
- C++ Toolchain [e.g. Visual Studio, llvm, g++]:
12-
- confluent-kafka-js version [e.g. 2.3.3]:
12+
- confluent-kafka-javascript version [e.g. 2.3.3]:
1313

1414
**Steps to Reproduce**
1515

16-
**confluent-kafka-js Configuration Settings**
16+
**confluent-kafka-javascript Configuration Settings**
1717

1818

1919
**Additional context**

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Publish confluent-kafka-js
4+
name: Publish confluent-kafka-javascript
55

66
on:
77
release:

.semaphore/project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
apiVersion: v1alpha
77
kind: Project
88
metadata:
9-
name: confluent-kafka-js
9+
name: confluent-kafka-javascript
1010
description: ""
1111
spec:
1212
visibility: private
1313
repository:
14-
url: [email protected]:confluentinc/confluent-kafka-js.git
14+
url: [email protected]:confluentinc/confluent-kafka-javascript.git
1515
run_on:
1616
- branches
1717
- tags

.semaphore/semaphore.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ blocks:
116116
commands:
117117
- sem-version node 18.19.0
118118
- export NODE_ABI=108
119-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
119+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
120120
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
121121
- npx node-pre-gyp package
122122
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -125,7 +125,7 @@ blocks:
125125
commands:
126126
- sem-version node 20.10.0
127127
- export NODE_ABI=115
128-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
128+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
129129
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
130130
- npx node-pre-gyp package
131131
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -134,7 +134,7 @@ blocks:
134134
commands:
135135
- sem-version node 21.4.0
136136
- export NODE_ABI=120
137-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
137+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
138138
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
139139
- npx node-pre-gyp package
140140
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -160,7 +160,7 @@ blocks:
160160
commands:
161161
- sem-version node 18.19.0
162162
- export NODE_ABI=108
163-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
163+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
164164
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
165165
- npx node-pre-gyp package
166166
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -169,7 +169,7 @@ blocks:
169169
commands:
170170
- sem-version node 20.10.0
171171
- export NODE_ABI=115
172-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
172+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
173173
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
174174
- npx node-pre-gyp package
175175
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -178,7 +178,7 @@ blocks:
178178
commands:
179179
- sem-version node 21.4.0
180180
- export NODE_ABI=120
181-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
181+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
182182
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
183183
- npx node-pre-gyp package
184184
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -203,21 +203,21 @@ blocks:
203203
- name: "Release: LTS:18"
204204
commands:
205205
- export NODE_ABI=108
206-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
206+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
207207
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh
208208
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
209209
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
210210
- name: "Release: LTS:20"
211211
commands:
212212
- export NODE_ABI=115
213-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
213+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
214214
- docker run -v "$(pwd):/v" node:20-alpine /v/.semaphore/build-docker.sh
215215
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
216216
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
217217
- name: "Release: latest: 21"
218218
commands:
219219
- export NODE_ABI=120
220-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
220+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
221221
- docker run -v "$(pwd):/v" node:21-alpine /v/.semaphore/build-docker.sh
222222
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
223223
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
@@ -241,21 +241,21 @@ blocks:
241241
- name: "Release: LTS:18"
242242
commands:
243243
- export NODE_ABI=108
244-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
244+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
245245
- docker run -v "$(pwd):/v" node:18-alpine /v/.semaphore/build-docker.sh
246246
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
247247
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
248248
- name: "Release: LTS:20"
249249
commands:
250250
- export NODE_ABI=115
251-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
251+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
252252
- docker run -v "$(pwd):/v" node:20-alpine /v/.semaphore/build-docker.sh
253253
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
254254
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
255255
- name: "Release: latest: 21"
256256
commands:
257257
- export NODE_ABI=120
258-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
258+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-linux-${LIBC}-${ARCHITECTURE}.tar.gz"
259259
- docker run -v "$(pwd):/v" node:21-alpine /v/.semaphore/build-docker.sh
260260
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
261261
- artifact push workflow "build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}" --destination "releases/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}"
@@ -280,7 +280,7 @@ blocks:
280280
commands:
281281
- sem-version node 18.19.0
282282
- export NODE_ABI=108
283-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
283+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
284284
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
285285
- npx node-pre-gyp package
286286
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -289,7 +289,7 @@ blocks:
289289
commands:
290290
- sem-version node 20.10.0
291291
- export NODE_ABI=115
292-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
292+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
293293
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
294294
- npx node-pre-gyp package
295295
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}
@@ -298,7 +298,7 @@ blocks:
298298
commands:
299299
- sem-version node 21.4.0
300300
- export NODE_ABI=120
301-
- export ARTIFACT_KEY="confluent-kafka-js-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
301+
- export ARTIFACT_KEY="confluent-kafka-javascript-${SEMAPHORE_GIT_TAG_NAME}-node-v${NODE_ABI}-${PLATFORM}-${LIBC}-${ARCHITECTURE}.tar.gz"
302302
- npm install # node-pre-gyp will fallback to build here, because new tag implies no release yet.
303303
- npx node-pre-gyp package
304304
- ls build/stage/${SEMAPHORE_GIT_TAG_NAME}/${ARTIFACT_KEY}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# confluent-kafka-js v0.1.5-devel
1+
# confluent-kafka-javascript v0.1.5-devel
22

33
v0.1.5-devel is a pre-production, early-access release.
44

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Contributing to `confluent-kafka-js`
1+
# Contributing to `confluent-kafka-javascript`
22

33
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
44

5-
The following is a set of guidelines for contributing to `confluent-kafka-js`
5+
The following is a set of guidelines for contributing to `confluent-kafka-javascript`
66
which is hosted by [Confluent Inc.](https://github.com/confluentinc)
77
on GitHub. This document lists rules, guidelines, and help getting started,
88
so if you feel something is missing feel free to send a pull request.
@@ -123,7 +123,7 @@ In short:
123123

124124
## Editor
125125

126-
Using Visual Studio code to develop on `confluent-kafka-js`. If you use it you can configure the C++ plugin to resolve the paths needed to inform your intellisense. This is the config file I am using on a mac to resolve the required paths:
126+
Using Visual Studio code to develop on `confluent-kafka-javascript`. If you use it you can configure the C++ plugin to resolve the paths needed to inform your intellisense. This is the config file I am using on a mac to resolve the required paths:
127127

128128
`c_cpp_properties.json`
129129
```
@@ -207,7 +207,7 @@ node --inspect path/to/file.js
207207
The librdkafka should be periodically updated to the latest release in https://github.com/confluentinc/librdkafka/releases
208208

209209
Steps to update:
210-
1. Update the `librdkafka` property in [`package.json`](https://github.com/confluentinc/confluent-kafka-js/blob/master/package.json) to the desired version.
210+
1. Update the `librdkafka` property in [`package.json`](https://github.com/confluentinc/confluent-kafka-javascript/blob/master/package.json) to the desired version.
211211

212212
1. Update the librdkafka git submodule to that versions release commit (example below)
213213

@@ -218,7 +218,7 @@ Steps to update:
218218

219219
If you get an error during that checkout command, double check that the submodule was initialized / cloned! You may need to run `git submodule update --init --recursive`
220220

221-
1. Update [`config.d.ts`](https://github.com/confluentinc/confluent-kafka-js/blob/master/config.d.ts) and [`errors.d.ts`](https://github.com/confluentinc/confluent-kafka-js/blob/master/errors.d.ts) TypeScript definitions by running:
221+
1. Update [`config.d.ts`](https://github.com/confluentinc/confluent-kafka-javascript/blob/master/config.d.ts) and [`errors.d.ts`](https://github.com/confluentinc/confluent-kafka-javascript/blob/master/errors.d.ts) TypeScript definitions by running:
222222
```bash
223223
node ci/librdkafka-defs-generator.js
224224
```
@@ -227,7 +227,7 @@ Steps to update:
227227

228228
1. Run unit tests: `npm run test`
229229

230-
1. Update the version numbers referenced in the [`README.md`](https://github.com/confluentinc/confluent-kafka-js/blob/master/README.md) file to the new version.
230+
1. Update the version numbers referenced in the [`README.md`](https://github.com/confluentinc/confluent-kafka-javascript/blob/master/README.md) file to the new version.
231231

232232
## Releasing
233233

INTRODUCTION.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ The library currently supports the following callbacks:
2222

2323
This library includes two utility functions for detecting the status of your installation. Please try to include these when making issue reports where applicable.
2424

25-
You can get the features supported by your compile of `librdkafka` by reading the variable "features" on the root of the `confluent-kafka-js` object.
25+
You can get the features supported by your compile of `librdkafka` by reading the variable "features" on the root of the `confluent-kafka-javascript` object.
2626

2727
```js
28-
const Kafka = require('confluent-kafka-js');
28+
const Kafka = require('confluent-kafka-javascript');
2929
console.log(Kafka.features);
3030

3131
// #=> [ 'gzip', 'snappy', 'ssl', 'sasl', 'regex', 'lz4' ]
@@ -34,7 +34,7 @@ console.log(Kafka.features);
3434
You can also get the version of `librdkafka`
3535

3636
```js
37-
const Kafka = require('confluent-kafka-js');
37+
const Kafka = require('confluent-kafka-javascript');
3838
console.log(Kafka.librdkafkaVersion);
3939

4040
// #=> 2.3.0
@@ -293,7 +293,7 @@ const consumer = new Kafka.KafkaConsumer({
293293

294294
#### Commits
295295

296-
When you commit in `confluent-kafka-js`, the standard way is to queue the commit request up with the next `librdkafka` request to the broker. When doing this, there isn't a way to know the result of the commit. Luckily there is another callback you can listen to to get this information
296+
When you commit in `confluent-kafka-javascript`, the standard way is to queue the commit request up with the next `librdkafka` request to the broker. When doing this, there isn't a way to know the result of the commit. Luckily there is another callback you can listen to to get this information
297297

298298
```js
299299
const consumer = new Kafka.KafkaConsumer({
@@ -507,12 +507,12 @@ producer.getMetadata(opts, (err, metadata) => {
507507

508508
### Admin Client
509509

510-
`confluent-kafka-js` now supports the admin client for creating, deleting, and scaling out topics. The `librdkafka` APIs also support altering configuration of topics and broker, but that is not currently implemented.
510+
`confluent-kafka-javascript` now supports the admin client for creating, deleting, and scaling out topics. The `librdkafka` APIs also support altering configuration of topics and broker, but that is not currently implemented.
511511

512512
To create an Admin client, you can do as follows:
513513

514514
```js
515-
const Kafka = require('confluent-kafka-js');
515+
const Kafka = require('confluent-kafka-javascript');
516516

517517
const client = Kafka.AdminClient.create({
518518
'client.id': 'kafka-admin',

MIGRATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
```
1212
to
1313
```javascript
14-
const { Kafka } = require('confluent-kafka-js').KafkaJS;
14+
const { Kafka } = require('confluent-kafka-javascript').KafkaJS;
1515
const kafka = new Kafka({ kafkaJS: { brokers: ['kafka1:9092', 'kafka2:9092'], /* ... */ } });
1616
const producer = kafka.producer({ kafkaJS: { /* ... */, } });
1717
```
@@ -35,7 +35,7 @@
3535

3636
```diff
3737
-const { Kafka } = require('kafkajs');
38-
+const { Kafka } = require('confluent-kafka-js').KafkaJS;
38+
+const { Kafka } = require('confluent-kafka-javascript').KafkaJS;
3939
4040
const kafka = new Kafka({
4141
+ kafkaJS: {
@@ -52,7 +52,7 @@ const producerRun = async () => {
5252
topic: 'test-topic',
5353
- acks: 1,
5454
messages: [
55-
{ value: 'Hello confluent-kafka-js user!' },
55+
{ value: 'Hello confluent-kafka-javascript user!' },
5656
],
5757
});
5858
};
@@ -371,6 +371,6 @@ Change the import statement, from
371371
```
372372
to
373373
```javascript
374-
const Kafka = require('confluent-kafka-js');
374+
const Kafka = require('confluent-kafka-javascript');
375375
```
376376
The rest of the functionality should work as usual.

0 commit comments

Comments
 (0)