s3db.js 9.2.2 → 9.3.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/dist/s3db.cjs.js CHANGED
@@ -9700,7 +9700,7 @@ class Database extends EventEmitter {
9700
9700
  this.id = idGenerator(7);
9701
9701
  this.version = "1";
9702
9702
  this.s3dbVersion = (() => {
9703
- const [ok, err, version] = tryFn(() => true ? "9.2.2" : "latest");
9703
+ const [ok, err, version] = tryFn(() => true ? "9.3.0" : "latest");
9704
9704
  return ok ? version : "latest";
9705
9705
  })();
9706
9706
  this.resources = {};
package/dist/s3db.es.js CHANGED
@@ -9696,7 +9696,7 @@ class Database extends EventEmitter {
9696
9696
  this.id = idGenerator(7);
9697
9697
  this.version = "1";
9698
9698
  this.s3dbVersion = (() => {
9699
- const [ok, err, version] = tryFn(() => true ? "9.2.2" : "latest");
9699
+ const [ok, err, version] = tryFn(() => true ? "9.3.0" : "latest");
9700
9700
  return ok ? version : "latest";
9701
9701
  })();
9702
9702
  this.resources = {};
package/mcp/server.js CHANGED
@@ -628,7 +628,7 @@ class S3dbMCPServer {
628
628
 
629
629
  setupTransport() {
630
630
  const transport = process.argv.includes('--transport=sse') || process.env.MCP_TRANSPORT === 'sse'
631
- ? new SSEServerTransport('/sse', process.env.MCP_SERVER_HOST || '0.0.0.0', parseInt(process.env.MCP_SERVER_PORT || '8000'))
631
+ ? new SSEServerTransport('/sse', process.env.MCP_SERVER_HOST || '0.0.0.0', parseInt(process.env.MCP_SERVER_PORT || '17500'))
632
632
  : new StdioServerTransport();
633
633
 
634
634
  this.server.connect(transport);
@@ -636,7 +636,7 @@ class S3dbMCPServer {
636
636
  // SSE specific setup
637
637
  if (transport instanceof SSEServerTransport) {
638
638
  const host = process.env.MCP_SERVER_HOST || '0.0.0.0';
639
- const port = process.env.MCP_SERVER_PORT || '8000';
639
+ const port = process.env.MCP_SERVER_PORT || '17500';
640
640
 
641
641
  console.log(`S3DB MCP Server running on http://${host}:${port}/sse`);
642
642
 
@@ -723,12 +723,16 @@ class S3dbMCPServer {
723
723
 
724
724
  // Add CachePlugin (enabled by default, configurable)
725
725
  const cacheEnabled = enableCache !== false && process.env.S3DB_CACHE_ENABLED !== 'false';
726
+
727
+ // Declare cache variables in outer scope to avoid reference errors
728
+ let cacheMaxSizeEnv, cacheTtlEnv, cacheDriverEnv, cacheDirectoryEnv, cachePrefixEnv;
729
+
726
730
  if (cacheEnabled) {
727
- const cacheMaxSizeEnv = process.env.S3DB_CACHE_MAX_SIZE ? parseInt(process.env.S3DB_CACHE_MAX_SIZE) : cacheMaxSize;
728
- const cacheTtlEnv = process.env.S3DB_CACHE_TTL ? parseInt(process.env.S3DB_CACHE_TTL) : cacheTtl;
729
- const cacheDriverEnv = process.env.S3DB_CACHE_DRIVER || cacheDriver;
730
- const cacheDirectoryEnv = process.env.S3DB_CACHE_DIRECTORY || cacheDirectory;
731
- const cachePrefixEnv = process.env.S3DB_CACHE_PREFIX || cachePrefix;
731
+ cacheMaxSizeEnv = process.env.S3DB_CACHE_MAX_SIZE ? parseInt(process.env.S3DB_CACHE_MAX_SIZE) : cacheMaxSize;
732
+ cacheTtlEnv = process.env.S3DB_CACHE_TTL ? parseInt(process.env.S3DB_CACHE_TTL) : cacheTtl;
733
+ cacheDriverEnv = process.env.S3DB_CACHE_DRIVER || cacheDriver;
734
+ cacheDirectoryEnv = process.env.S3DB_CACHE_DIRECTORY || cacheDirectory;
735
+ cachePrefixEnv = process.env.S3DB_CACHE_PREFIX || cachePrefix;
732
736
 
733
737
  let cacheConfig = {
734
738
  includePartitions: true
@@ -1358,7 +1362,7 @@ function parseArgs() {
1358
1362
  const args = {
1359
1363
  transport: 'stdio',
1360
1364
  host: '0.0.0.0',
1361
- port: 8000
1365
+ port: 17500
1362
1366
  };
1363
1367
 
1364
1368
  process.argv.forEach((arg, index) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s3db.js",
3
- "version": "9.2.2",
3
+ "version": "9.3.0",
4
4
  "description": "Use AWS S3, the world's most reliable document storage, as a database with this ORM.",
5
5
  "main": "dist/s3db.cjs.js",
6
6
  "module": "dist/s3db.es.js",
@@ -58,8 +58,8 @@
58
58
  "UNLICENSE"
59
59
  ],
60
60
  "dependencies": {
61
- "@aws-sdk/client-s3": "^3.864.0",
62
- "@modelcontextprotocol/sdk": "^1.17.3",
61
+ "@aws-sdk/client-s3": "^3.873.0",
62
+ "@modelcontextprotocol/sdk": "^1.17.4",
63
63
  "@smithy/node-http-handler": "^4.1.1",
64
64
  "@supercharge/promise-pool": "^3.2.0",
65
65
  "dotenv": "^17.2.1",
@@ -112,7 +112,7 @@
112
112
  "node-loader": "^2.1.0",
113
113
  "ora": "^8.2.0",
114
114
  "pkg": "^5.8.1",
115
- "rollup": "^4.46.4",
115
+ "rollup": "^4.48.0",
116
116
  "rollup-plugin-copy": "^3.5.0",
117
117
  "rollup-plugin-esbuild": "^6.2.1",
118
118
  "rollup-plugin-polyfill-node": "^0.13.0",