@platformatic/rdkafka 4.1.0-alpha.1 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/bench/seed.sh +0 -0
  2. package/ci/prepublish.js +3 -4
  3. package/configure +0 -0
  4. package/deps/librdkafka/Makefile +0 -0
  5. package/deps/librdkafka/configure +0 -0
  6. package/deps/librdkafka/debian/rules +0 -0
  7. package/deps/librdkafka/dev-conf.sh +0 -0
  8. package/deps/librdkafka/examples/producer.cpp +0 -0
  9. package/deps/librdkafka/lds-gen.py +0 -0
  10. package/deps/librdkafka/mklove/Makefile.base +0 -0
  11. package/deps/librdkafka/packaging/alpine/build-alpine.sh +0 -0
  12. package/deps/librdkafka/packaging/cp/verify-deb.sh +0 -0
  13. package/deps/librdkafka/packaging/cp/verify-packages.sh +0 -0
  14. package/deps/librdkafka/packaging/cp/verify-rpm.sh +0 -0
  15. package/deps/librdkafka/packaging/debian/rules +0 -0
  16. package/deps/librdkafka/packaging/get_version.py +0 -0
  17. package/deps/librdkafka/packaging/homebrew/brew-update-pr.sh +0 -0
  18. package/deps/librdkafka/packaging/nuget/artifact.py +0 -0
  19. package/deps/librdkafka/packaging/nuget/cleanup-s3.py +0 -0
  20. package/deps/librdkafka/packaging/nuget/nuget.sh +0 -0
  21. package/deps/librdkafka/packaging/nuget/packaging.py +0 -0
  22. package/deps/librdkafka/packaging/nuget/push-to-nuget.sh +0 -0
  23. package/deps/librdkafka/packaging/nuget/release.py +0 -0
  24. package/deps/librdkafka/packaging/rpm/mock-on-docker.sh +0 -0
  25. package/deps/librdkafka/packaging/rpm/tests/run-test.sh +0 -0
  26. package/deps/librdkafka/packaging/rpm/tests/test-on-docker.sh +0 -0
  27. package/deps/librdkafka/packaging/tools/build-configurations-checks.sh +0 -0
  28. package/deps/librdkafka/packaging/tools/build-deb-package.sh +0 -0
  29. package/deps/librdkafka/packaging/tools/build-debian.sh +0 -0
  30. package/deps/librdkafka/packaging/tools/build-manylinux.sh +0 -0
  31. package/deps/librdkafka/packaging/tools/build-release-artifacts.sh +0 -0
  32. package/deps/librdkafka/packaging/tools/distro-build.sh +0 -0
  33. package/deps/librdkafka/packaging/tools/gh-release-checksums.py +0 -0
  34. package/deps/librdkafka/packaging/tools/rdutcoverage.sh +0 -0
  35. package/deps/librdkafka/packaging/tools/run-in-docker.sh +0 -0
  36. package/deps/librdkafka/packaging/tools/run-integration-tests.sh +0 -0
  37. package/deps/librdkafka/packaging/tools/run-style-check.sh +0 -0
  38. package/deps/librdkafka/packaging/tools/style-format.sh +0 -0
  39. package/deps/librdkafka/packaging/tools/update_rpcs_max_versions.py +0 -0
  40. package/deps/librdkafka/src/generate_proto.sh +0 -0
  41. package/deps/librdkafka/tests/autotest.sh +0 -0
  42. package/deps/librdkafka/tests/broker_version_tests.py +0 -0
  43. package/deps/librdkafka/tests/buildbox.sh +0 -0
  44. package/deps/librdkafka/tests/cleanup-checker-tests.sh +0 -0
  45. package/deps/librdkafka/tests/cluster_testing.py +0 -0
  46. package/deps/librdkafka/tests/delete-test-topics.sh +0 -0
  47. package/deps/librdkafka/tests/fixtures/ssl/create_keys.sh +0 -0
  48. package/deps/librdkafka/tests/gen-ssl-certs.sh +0 -0
  49. package/deps/librdkafka/tests/interactive_broker_version.py +0 -0
  50. package/deps/librdkafka/tests/java/run-class.sh +0 -0
  51. package/deps/librdkafka/tests/lz4_manual_test.sh +0 -0
  52. package/deps/librdkafka/tests/multi-broker-version-test.sh +0 -0
  53. package/deps/librdkafka/tests/parse-refcnt.sh +0 -0
  54. package/deps/librdkafka/tests/performance_plot.py +0 -0
  55. package/deps/librdkafka/tests/run-all-tests.sh +0 -0
  56. package/deps/librdkafka/tests/run-consumer-tests.sh +0 -0
  57. package/deps/librdkafka/tests/run-producer-tests.sh +0 -0
  58. package/deps/librdkafka/tests/run-test-batches.py +0 -0
  59. package/deps/librdkafka/tests/run-test.sh +0 -0
  60. package/deps/librdkafka/tests/sasl_test.py +0 -0
  61. package/deps/librdkafka/tests/tools/stats/graph.py +0 -0
  62. package/deps/librdkafka/tests/tools/stats/to_csv.py +0 -0
  63. package/deps/librdkafka/tests/until-fail.sh +0 -0
  64. package/make_docs.sh +0 -0
  65. package/package.json +10 -8
  66. package/run_docker.sh +0 -0
  67. package/ci/update-version.js +0 -123
package/bench/seed.sh CHANGED
File without changes
package/ci/prepublish.js CHANGED
@@ -1,4 +1,3 @@
1
- require("./checks/librdkafka-exists");
2
- require("./checks/librdkafka-correct-version");
3
- require("./librdkafka-defs-generator.js");
4
- // require('./update-version');
1
+ require('./checks/librdkafka-exists');
2
+ require('./checks/librdkafka-correct-version');
3
+ require('./librdkafka-defs-generator.js');
package/configure CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/make_docs.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@platformatic/rdkafka",
3
- "version": "4.1.0-alpha.1",
3
+ "version": "4.1.1",
4
4
  "description": "Node.js bindings for librdkafka",
5
5
  "librdkafka": "2.12.0",
6
6
  "main": "lib/index.js",
7
+ "scripts": {
8
+ "configure": "node-gyp configure",
9
+ "build": "node-gyp build --debug",
10
+ "test": "make test",
11
+ "install": "node-gyp rebuild",
12
+ "prepack": "node ./ci/prepublish.js"
13
+ },
7
14
  "keywords": [
8
15
  "kafka",
9
16
  "librdkafka"
@@ -33,6 +40,7 @@
33
40
  "jshint": "^2.10.1",
34
41
  "mocha": "^11.7.0",
35
42
  "node-gyp": "^11.1.0",
43
+ "semver": "^7.8.5",
36
44
  "taffydb": "^2.7.3",
37
45
  "toolkit-jsdoc": "^1.0.0"
38
46
  },
@@ -42,11 +50,5 @@
42
50
  },
43
51
  "engines": {
44
52
  "node": ">=16"
45
- },
46
- "scripts": {
47
- "configure": "node-gyp configure",
48
- "build": "node-gyp build --debug",
49
- "test": "make test",
50
- "install": "node-gyp rebuild"
51
53
  }
52
- }
54
+ }
package/run_docker.sh CHANGED
File without changes
@@ -1,123 +0,0 @@
1
- const path = require('path');
2
- const semver = require('semver');
3
- const { spawn } = require('child_process');
4
- const fs = require('fs');
5
-
6
- const root = path.resolve(__dirname, '..');
7
- const pjsPath = path.resolve(root, 'package.json');
8
- const pjs = require(pjsPath);
9
-
10
- function parseVersion(tag) {
11
- const { major, minor, prerelease, patch } = semver.parse(tag);
12
-
13
- // Describe will give is commits since last tag
14
- const [commitsSinceTag, hash] = prerelease[0] ? prerelease[0].split('-') : [
15
- 1,
16
- process.env.TRAVIS_COMMIT || ''
17
- ];
18
-
19
- return {
20
- major,
21
- minor,
22
- prerelease,
23
- patch,
24
- commit: commitsSinceTag - 1,
25
- hash
26
- };
27
- }
28
-
29
- function getCommandOutput(command, args, cb) {
30
- let output = '';
31
-
32
- const cmd = spawn(command, args);
33
-
34
- cmd.stdout.on('data', (data) => {
35
- output += data;
36
- });
37
-
38
- cmd.on('close', (code) => {
39
- if (code != 0) {
40
- cb(new Error(`Command returned unsuccessful code: ${code}`));
41
- return;
42
- }
43
-
44
- cb(null, output.trim());
45
- });
46
- }
47
-
48
- function getVersion(cb) {
49
- // https://docs.travis-ci.com/user/environment-variables/
50
- if (process.env.TRAVIS_TAG) {
51
- setImmediate(() => cb(null, parseVersion(process.env.TRAVIS_TAG.trim())));
52
- return;
53
- }
54
-
55
- getCommandOutput('git', ['describe', '--tags'], (err, result) => {
56
- if (err) {
57
- cb(err);
58
- return;
59
- }
60
-
61
- cb(null, parseVersion(result.trim()));
62
- });
63
- }
64
-
65
- function getBranch(cb) {
66
- if (process.env.TRAVIS_TAG) {
67
- // TRAVIS_BRANCH matches TRAVIS_TAG when TRAVIS_TAG is set
68
- // "git branch --contains tags/TRAVIS_TAG" doesn't work on travis so we have to assume 'master'
69
- setImmediate(() => cb(null, 'master'));
70
- return;
71
- } else if (process.env.TRAVIS_BRANCH) {
72
- setImmediate(() => cb(null, process.env.TRAVIS_BRANCH.trim()));
73
- return;
74
- }
75
-
76
- getCommandOutput('git', ['rev-parse', '--abbrev-ref', 'HEAD'], (err, result) => {
77
- if (err) {
78
- cb(err);
79
- return;
80
- }
81
-
82
- cb(null, result.trim());
83
- });
84
- }
85
-
86
- function getPackageVersion(tag, branch) {
87
- const baseVersion = `v${tag.major}.${tag.minor}.${tag.patch}`;
88
-
89
- console.log(`Package version is "${baseVersion}"`);
90
-
91
- // never publish with an suffix
92
- // fixes https://github.com/Blizzard/node-rdkafka/issues/981
93
- // baseVersion += '-';
94
-
95
- // if (tag.commit === 0 && branch === 'master') {
96
- // return baseVersion;
97
- // }
98
-
99
- // if (branch !== 'master') {
100
- // baseVersion += (tag.commit + 1 + '.' + branch);
101
- // } else {
102
- // baseVersion += (tag.commit + 1);
103
- // }
104
-
105
- return baseVersion;
106
- }
107
-
108
- getVersion((err, tag) => {
109
- if (err) {
110
- throw err;
111
- }
112
-
113
- getBranch((err, branch) => {
114
- if (err) {
115
- throw err;
116
- }
117
-
118
- pjs.version = getPackageVersion(tag, branch);
119
-
120
- fs.writeFileSync(pjsPath, JSON.stringify(pjs, null, 2));
121
- })
122
-
123
- });