graphile-cache 4.13.0 → 4.14.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.
@@ -8,6 +8,7 @@ const node_http_1 = require("node:http");
8
8
  const logger_1 = require("@pgpmjs/logger");
9
9
  const express_1 = __importDefault(require("express"));
10
10
  const v4_1 = require("grafserv/express/v4");
11
+ const graphile_realtime_subscriptions_1 = require("graphile-realtime-subscriptions");
11
12
  const postgraphile_1 = require("postgraphile");
12
13
  const log = new logger_1.Logger('graphile-cache:create');
13
14
  /**
@@ -44,7 +45,6 @@ const createGraphileInstance = async (opts) => {
44
45
  };
45
46
  if (enableRealtime) {
46
47
  try {
47
- const { RealtimeManager } = await import('graphile-realtime-subscriptions');
48
48
  // Extract PgSubscriber and pool from the resolved preset's pgServices.
49
49
  // The pool is the same instance managed by pg-cache (via getPgPool)
50
50
  // and threaded into the preset by makePgService({ pool, schemas }).
@@ -59,7 +59,7 @@ const createGraphileInstance = async (opts) => {
59
59
  log.warn(`PostGraphile[${cacheKey}] has no pool in pgService — RealtimeManager will not be started`);
60
60
  }
61
61
  else {
62
- const manager = new RealtimeManager({
62
+ const manager = new graphile_realtime_subscriptions_1.RealtimeManager({
63
63
  pgSubscriber,
64
64
  pool,
65
65
  nodeId: `graphile-cache:${cacheKey}`,
@@ -2,6 +2,7 @@ import { createServer } from 'node:http';
2
2
  import { Logger } from '@pgpmjs/logger';
3
3
  import express from 'express';
4
4
  import { grafserv } from 'grafserv/express/v4';
5
+ import { RealtimeManager } from 'graphile-realtime-subscriptions';
5
6
  import { postgraphile } from 'postgraphile';
6
7
  const log = new Logger('graphile-cache:create');
7
8
  /**
@@ -38,7 +39,6 @@ export const createGraphileInstance = async (opts) => {
38
39
  };
39
40
  if (enableRealtime) {
40
41
  try {
41
- const { RealtimeManager } = await import('graphile-realtime-subscriptions');
42
42
  // Extract PgSubscriber and pool from the resolved preset's pgServices.
43
43
  // The pool is the same instance managed by pg-cache (via getPgPool)
44
44
  // and threaded into the preset by makePgService({ pool, schemas }).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-cache",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostGraphile v5 LRU cache with automatic pool cleanup integration",
6
6
  "main": "index.js",
@@ -29,13 +29,13 @@
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "12factor-env": "^1.32.1",
33
- "@pgpmjs/logger": "^2.25.1",
32
+ "12factor-env": "^1.33.0",
33
+ "@pgpmjs/logger": "^2.26.0",
34
34
  "express": "^5.2.1",
35
35
  "grafserv": "1.0.1",
36
- "graphile-realtime-subscriptions": "^1.11.1",
36
+ "graphile-realtime-subscriptions": "^1.12.0",
37
37
  "lru-cache": "^11.2.7",
38
- "pg-cache": "^3.28.0",
38
+ "pg-cache": "^3.29.0",
39
39
  "postgraphile": "5.1.4"
40
40
  },
41
41
  "devDependencies": {
@@ -53,5 +53,5 @@
53
53
  "constructive",
54
54
  "v5"
55
55
  ],
56
- "gitHead": "399437801c27b070312125f3f0ee821ce16e183e"
56
+ "gitHead": "baa84094b8541eb5000701b0060aa5b298032dc7"
57
57
  }