faye-redis-ng 1.1.0 → 1.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.
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  ![NPM Version](https://img.shields.io/npm/v/faye-redis-ng)
4
4
  [![Node.js Version](https://img.shields.io/node/v/faye-redis-ng.svg)](https://nodejs.org)
5
- [![CI](https://github.com/7a6163/faye-redis-node/workflows/CI/badge.svg)](https://github.com/7a6163/faye-redis-node/actions)
6
- [![codecov](https://codecov.io/gh/7a6163/faye-redis-node/branch/master/graph/badge.svg)](https://codecov.io/gh/7a6163/faye-redis-node)
5
+ [![CI](https://github.com/7a6163/faye-redis-node-ng/workflows/CI/badge.svg)](https://github.com/7a6163/faye-redis-node-ng/actions)
6
+ [![codecov](https://codecov.io/gh/7a6163/faye-redis-node-ng/branch/main/graph/badge.svg)](https://codecov.io/gh/7a6163/faye-redis-node-ng)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
8
 
9
9
  **Next Generation** Redis backend engine for [Faye](http://faye.jcoglan.com) - A modern, maintained fork with Redis v4 support, ES6+ syntax, and automatic reconnection.
@@ -0,0 +1,3 @@
1
+ import Engine from './faye-redis';
2
+ export = Engine;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,SAAS,MAAM,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // Backward compatibility entry point
3
+ // This file provides CommonJS compatibility while maintaining TypeScript benefits
4
+ //
5
+ // Usage patterns supported:
6
+ // - const Engine = require('faye-redis-ng'); (CommonJS direct)
7
+ // - const { Engine } = require('faye-redis-ng'); (CommonJS destructured)
8
+ // - import Engine from 'faye-redis-ng'; (ES6 default)
9
+ // - import { Engine } from 'faye-redis-ng'; (ES6 named)
10
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11
+ return (mod && mod.__esModule) ? mod : { "default": mod };
12
+ };
13
+ const faye_redis_1 = __importDefault(require("./faye-redis"));
14
+ module.exports = faye_redis_1.default;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qCAAqC;AACrC,kFAAkF;AAClF,EAAE;AACF,4BAA4B;AAC5B,yEAAyE;AACzE,+EAA+E;AAC/E,qEAAqE;AACrE,mEAAmE;;;;AAEnE,8DAAkC;AAGlC,iBAAS,oBAAM,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "faye-redis-ng",
3
3
  "description": "Modern Redis backend engine for Faye (Next Generation fork with Redis v4, ES6+, auto-reconnection)",
4
- "homepage": "http://github.com/7a6163/faye-redis-node",
4
+ "homepage": "https://github.com/7a6163/faye-redis-node-ng",
5
5
  "contributors": [
6
6
  "Modernized and maintained by the community"
7
7
  ],
@@ -15,12 +15,12 @@
15
15
  "realtime"
16
16
  ],
17
17
  "license": "MIT",
18
- "version": "1.1.0",
18
+ "version": "1.1.1",
19
19
  "engines": {
20
20
  "node": ">=22.0.0"
21
21
  },
22
- "main": "./dist/faye-redis.js",
23
- "types": "./dist/faye-redis.d.ts",
22
+ "main": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
24
  "files": [
25
25
  "dist",
26
26
  "src",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^22.10.5",
35
- "@vitest/coverage-v8": "^2.1.8",
36
- "@vitest/ui": "^2.1.8",
35
+ "@vitest/coverage-v8": "^4.0.16",
36
+ "@vitest/ui": "^4.0.16",
37
37
  "typescript": "^5.7.2",
38
- "vitest": "^2.1.8"
38
+ "vitest": "^4.0.16"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsc",
@@ -46,9 +46,9 @@
46
46
  "test:ui": "vitest --ui",
47
47
  "test:coverage": "vitest run --coverage"
48
48
  },
49
- "bugs": "http://github.com/7a6163/faye-redis-node/issues",
49
+ "bugs": "https://github.com/7a6163/faye-redis-node-ng/issues",
50
50
  "repository": {
51
51
  "type": "git",
52
- "url": "git://github.com/7a6163/faye-redis-node.git"
52
+ "url": "git+https://github.com/7a6163/faye-redis-node-ng.git"
53
53
  }
54
54
  }
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ // Backward compatibility entry point
2
+ // This file provides CommonJS compatibility while maintaining TypeScript benefits
3
+ //
4
+ // Usage patterns supported:
5
+ // - const Engine = require('faye-redis-ng'); (CommonJS direct)
6
+ // - const { Engine } = require('faye-redis-ng'); (CommonJS destructured)
7
+ // - import Engine from 'faye-redis-ng'; (ES6 default)
8
+ // - import { Engine } from 'faye-redis-ng'; (ES6 named)
9
+
10
+ import Engine from './faye-redis';
11
+
12
+ // Export as CommonJS default (for backward compatibility)
13
+ export = Engine;