@eventferry/all 1.0.4 → 2.0.0
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.
- package/README.md +12 -6
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -3,28 +3,34 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@eventferry/all)
|
|
4
4
|
|
|
5
5
|
The **meta-package** for [eventferry](https://github.com/SametGoktepe/eventferry) —
|
|
6
|
-
a transactional outbox toolkit for PostgreSQL + Kafka/Redpanda. Installs
|
|
7
|
-
eventferry and re-exports everything from a single entry point.
|
|
6
|
+
a transactional outbox toolkit for PostgreSQL or MySQL + Kafka/Redpanda. Installs
|
|
7
|
+
**all** of eventferry and re-exports everything from a single entry point.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
+
# Postgres + Kafka (the original combo):
|
|
12
13
|
npm i @eventferry/all pg kafkajs
|
|
14
|
+
|
|
15
|
+
# MySQL + Kafka:
|
|
16
|
+
npm i @eventferry/all mysql2 kafkajs
|
|
13
17
|
```
|
|
14
18
|
|
|
15
19
|
This pulls in [`@eventferry/core`](https://www.npmjs.com/package/@eventferry/core),
|
|
16
20
|
[`@eventferry/postgres`](https://www.npmjs.com/package/@eventferry/postgres),
|
|
21
|
+
[`@eventferry/mysql`](https://www.npmjs.com/package/@eventferry/mysql),
|
|
17
22
|
[`@eventferry/kafka`](https://www.npmjs.com/package/@eventferry/kafka), and
|
|
18
23
|
[`@eventferry/schema-registry`](https://www.npmjs.com/package/@eventferry/schema-registry).
|
|
19
|
-
`pg`
|
|
20
|
-
`@confluentinc/kafka-javascript`).
|
|
24
|
+
`pg` and `mysql2` are peers of their respective adapters (install whichever you
|
|
25
|
+
use); pick a Kafka client (`kafkajs` or `@confluentinc/kafka-javascript`).
|
|
21
26
|
|
|
22
27
|
## Usage
|
|
23
28
|
|
|
24
29
|
```ts
|
|
25
30
|
import {
|
|
26
31
|
Relay,
|
|
27
|
-
PostgresStore,
|
|
32
|
+
PostgresStore, // or MysqlStore
|
|
33
|
+
MysqlStore,
|
|
28
34
|
KafkaPublisher,
|
|
29
35
|
SchemaRegistrySerializer,
|
|
30
36
|
defineOutbox,
|
|
@@ -32,7 +38,7 @@ import {
|
|
|
32
38
|
```
|
|
33
39
|
|
|
34
40
|
> Prefer installing only the packages you use (e.g. `@eventferry/core` +
|
|
35
|
-
> `@eventferry/
|
|
41
|
+
> `@eventferry/mysql` + `@eventferry/kafka`) for a smaller dependency tree.
|
|
36
42
|
|
|
37
43
|
📖 **Full documentation:** [github.com/SametGoktepe/eventferry](https://github.com/SametGoktepe/eventferry#readme)
|
|
38
44
|
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -16,13 +20,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
16
20
|
|
|
17
21
|
// src/index.ts
|
|
18
22
|
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
MysqlBinlogRelay: () => import_mysql.MysqlBinlogRelay,
|
|
25
|
+
MysqlStore: () => import_mysql.MysqlStore,
|
|
26
|
+
createMysqlMigrationSql: () => import_mysql.createMigrationSql,
|
|
27
|
+
createMysqlRetentionIndexSql: () => import_mysql.createRetentionIndexSql
|
|
28
|
+
});
|
|
19
29
|
module.exports = __toCommonJS(index_exports);
|
|
20
30
|
__reExport(index_exports, require("@eventferry/core"), module.exports);
|
|
21
31
|
__reExport(index_exports, require("@eventferry/postgres"), module.exports);
|
|
22
32
|
__reExport(index_exports, require("@eventferry/kafka"), module.exports);
|
|
23
33
|
__reExport(index_exports, require("@eventferry/schema-registry"), module.exports);
|
|
34
|
+
var import_mysql = require("@eventferry/mysql");
|
|
24
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
25
36
|
0 && (module.exports = {
|
|
37
|
+
MysqlBinlogRelay,
|
|
38
|
+
MysqlStore,
|
|
39
|
+
createMysqlMigrationSql,
|
|
40
|
+
createMysqlRetentionIndexSql,
|
|
26
41
|
...require("@eventferry/core"),
|
|
27
42
|
...require("@eventferry/postgres"),
|
|
28
43
|
...require("@eventferry/kafka"),
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Meta-package: re-exports the entire eventferry surface so consumers can\n// `npm i @eventferry/all` and `import { Relay, PostgresStore,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Meta-package: re-exports the entire eventferry surface so consumers can\n// `npm i @eventferry/all` and `import { Relay, PostgresStore, MysqlStore,\n// KafkaPublisher, SchemaRegistrySerializer, defineOutbox, ... } from \"@eventferry/all\"`.\n//\n// Postgres is re-exported flat for backwards compatibility (it shipped first).\n// MySQL has structurally identical names for some helpers / types (e.g.\n// `createMigrationSql`, `PurgeDoneOptions`, `DecodedInsert`), so its exports\n// are renamed here with the `Mysql` prefix to avoid ambiguity. Users wanting\n// the unprefixed MySQL names should import directly from `@eventferry/mysql`.\nexport * from \"@eventferry/core\";\nexport * from \"@eventferry/postgres\";\nexport * from \"@eventferry/kafka\";\nexport * from \"@eventferry/schema-registry\";\n\nexport {\n MysqlStore,\n MysqlBinlogRelay,\n createMigrationSql as createMysqlMigrationSql,\n createRetentionIndexSql as createMysqlRetentionIndexSql,\n type MysqlStoreOptions,\n type MysqlPool,\n type MysqlConnection,\n type MysqlQueryable,\n type BinlogReplicationConfig,\n type BinlogPosition,\n type BinlogStream,\n type BinlogStreamHandlers,\n type MysqlBinlogRelayOptions,\n type DecodedInsert as MysqlDecodedInsert,\n type PurgeDoneOptions as MysqlPurgeDoneOptions,\n} from \"@eventferry/mysql\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAc,6BATd;AAUA,0BAAc,iCAVd;AAWA,0BAAc,8BAXd;AAYA,0BAAc,wCAZd;AAcA,mBAgBO;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,3 +2,4 @@ export * from '@eventferry/core';
|
|
|
2
2
|
export * from '@eventferry/postgres';
|
|
3
3
|
export * from '@eventferry/kafka';
|
|
4
4
|
export * from '@eventferry/schema-registry';
|
|
5
|
+
export { BinlogPosition, BinlogReplicationConfig, BinlogStream, BinlogStreamHandlers, MysqlBinlogRelay, MysqlBinlogRelayOptions, MysqlConnection, DecodedInsert as MysqlDecodedInsert, MysqlPool, PurgeDoneOptions as MysqlPurgeDoneOptions, MysqlQueryable, MysqlStore, MysqlStoreOptions, createMigrationSql as createMysqlMigrationSql, createRetentionIndexSql as createMysqlRetentionIndexSql } from '@eventferry/mysql';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from '@eventferry/core';
|
|
|
2
2
|
export * from '@eventferry/postgres';
|
|
3
3
|
export * from '@eventferry/kafka';
|
|
4
4
|
export * from '@eventferry/schema-registry';
|
|
5
|
+
export { BinlogPosition, BinlogReplicationConfig, BinlogStream, BinlogStreamHandlers, MysqlBinlogRelay, MysqlBinlogRelayOptions, MysqlConnection, DecodedInsert as MysqlDecodedInsert, MysqlPool, PurgeDoneOptions as MysqlPurgeDoneOptions, MysqlQueryable, MysqlStore, MysqlStoreOptions, createMigrationSql as createMysqlMigrationSql, createRetentionIndexSql as createMysqlRetentionIndexSql } from '@eventferry/mysql';
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,16 @@ export * from "@eventferry/core";
|
|
|
3
3
|
export * from "@eventferry/postgres";
|
|
4
4
|
export * from "@eventferry/kafka";
|
|
5
5
|
export * from "@eventferry/schema-registry";
|
|
6
|
+
import {
|
|
7
|
+
MysqlStore,
|
|
8
|
+
MysqlBinlogRelay,
|
|
9
|
+
createMigrationSql,
|
|
10
|
+
createRetentionIndexSql
|
|
11
|
+
} from "@eventferry/mysql";
|
|
12
|
+
export {
|
|
13
|
+
MysqlBinlogRelay,
|
|
14
|
+
MysqlStore,
|
|
15
|
+
createMigrationSql as createMysqlMigrationSql,
|
|
16
|
+
createRetentionIndexSql as createMysqlRetentionIndexSql
|
|
17
|
+
};
|
|
6
18
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Meta-package: re-exports the entire eventferry surface so consumers can\n// `npm i @eventferry/all` and `import { Relay, PostgresStore,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Meta-package: re-exports the entire eventferry surface so consumers can\n// `npm i @eventferry/all` and `import { Relay, PostgresStore, MysqlStore,\n// KafkaPublisher, SchemaRegistrySerializer, defineOutbox, ... } from \"@eventferry/all\"`.\n//\n// Postgres is re-exported flat for backwards compatibility (it shipped first).\n// MySQL has structurally identical names for some helpers / types (e.g.\n// `createMigrationSql`, `PurgeDoneOptions`, `DecodedInsert`), so its exports\n// are renamed here with the `Mysql` prefix to avoid ambiguity. Users wanting\n// the unprefixed MySQL names should import directly from `@eventferry/mysql`.\nexport * from \"@eventferry/core\";\nexport * from \"@eventferry/postgres\";\nexport * from \"@eventferry/kafka\";\nexport * from \"@eventferry/schema-registry\";\n\nexport {\n MysqlStore,\n MysqlBinlogRelay,\n createMigrationSql as createMysqlMigrationSql,\n createRetentionIndexSql as createMysqlRetentionIndexSql,\n type MysqlStoreOptions,\n type MysqlPool,\n type MysqlConnection,\n type MysqlQueryable,\n type BinlogReplicationConfig,\n type BinlogPosition,\n type BinlogStream,\n type BinlogStreamHandlers,\n type MysqlBinlogRelayOptions,\n type DecodedInsert as MysqlDecodedInsert,\n type PurgeDoneOptions as MysqlPurgeDoneOptions,\n} from \"@eventferry/mysql\";\n"],"mappings":";AASA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd;AAAA,EACE;AAAA,EACA;AAAA,EACsB;AAAA,EACK;AAAA,OAYtB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventferry/all",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Meta-package: installs and re-exports all of eventferry (core + postgres + kafka + schema-registry)",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Meta-package: installs and re-exports all of eventferry (core + postgres + mysql + kafka + schema-registry)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"redpanda",
|
|
31
31
|
"postgres",
|
|
32
32
|
"postgresql",
|
|
33
|
+
"mysql",
|
|
34
|
+
"mariadb",
|
|
33
35
|
"schema-registry",
|
|
34
36
|
"microservices",
|
|
35
37
|
"distributed-systems",
|
|
@@ -51,10 +53,11 @@
|
|
|
51
53
|
"node": ">=18"
|
|
52
54
|
},
|
|
53
55
|
"dependencies": {
|
|
54
|
-
"@eventferry/core": "
|
|
55
|
-
"@eventferry/postgres": "
|
|
56
|
-
"@eventferry/
|
|
57
|
-
"@eventferry/
|
|
56
|
+
"@eventferry/core": "2.0.0",
|
|
57
|
+
"@eventferry/postgres": "2.0.0",
|
|
58
|
+
"@eventferry/mysql": "2.0.0",
|
|
59
|
+
"@eventferry/kafka": "2.0.0",
|
|
60
|
+
"@eventferry/schema-registry": "2.0.0"
|
|
58
61
|
},
|
|
59
62
|
"devDependencies": {
|
|
60
63
|
"tsup": "^8.3.5",
|