@certik/skynet 0.19.1 → 0.19.3

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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "conventionalCommits.scopes": [
3
+ "lib-skynet"
4
+ ]
5
+ }
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.3
4
+
5
+ - Fix elastic search not working in bun
6
+ - Update packages
7
+
8
+ ## 0.19.2
9
+
10
+ - Updated: type of `apiKey` in `Serve` and `ServeDefinition` types
11
+
3
12
  ## 0.19.1
13
+
4
14
  - Fixed: the domain that nomad api prints in console on start
5
15
 
6
16
  ## 0.19.0
package/api.ts CHANGED
@@ -20,7 +20,7 @@ type Route = {
20
20
  type Serve = {
21
21
  prefix: string;
22
22
  port: number;
23
- apiKey?: string;
23
+ apiKey?: string | Record<string, string>;
24
24
  };
25
25
 
26
26
  async function logStartMiddleware(req: Request, res: Response, next: NextFunction) {
package/app.ts CHANGED
@@ -26,7 +26,7 @@ type RouteDefinition = {
26
26
  type ServeDefinition = {
27
27
  prefix: string;
28
28
  port: number;
29
- apiKey?: string;
29
+ apiKey?: string | Record<string, string>;
30
30
  killTimeout?: string;
31
31
  cpu: number;
32
32
  mem: number;
package/examples/api.ts CHANGED
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "description": "Skynet Shared JS library",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -15,37 +15,36 @@
15
15
  "node": ">= 18"
16
16
  },
17
17
  "dependencies": {
18
- "@aws-sdk/client-dynamodb": "^3.478.0",
19
- "@aws-sdk/client-s3": "^3.478.0",
20
- "@aws-sdk/client-sqs": "^3.478.0",
21
- "@aws-sdk/lib-dynamodb": "^3.478.0",
18
+ "@aws-sdk/client-dynamodb": "^3.758.0",
19
+ "@aws-sdk/client-s3": "^3.758.0",
20
+ "@aws-sdk/client-sqs": "^3.758.0",
21
+ "@aws-sdk/lib-dynamodb": "^3.758.0",
22
22
  "@databricks/sql": "^1.9.0",
23
- "@elastic/elasticsearch": "^8.14.0",
24
- "@slack/web-api": "^6.11.0",
25
- "chalk": "^5.3.0",
26
- "execa": "^9.3.0",
23
+ "@elastic/elasticsearch": "^8.17.1",
24
+ "@slack/web-api": "^6.13.0",
25
+ "chalk": "^5.4.1",
26
+ "execa": "^9.5.2",
27
27
  "express": "^4.21.2",
28
28
  "md5": "^2.3.0",
29
29
  "meow": "^13.2.0",
30
- "snowflake-sdk": "^1.11.0",
31
- "type-fest": "^4.30.2",
32
- "web3": "^4.11.0",
33
- "which": "^4.0.0"
30
+ "snowflake-sdk": "^1.15.0",
31
+ "type-fest": "^4.35.0",
32
+ "web3": "^4.16.0",
33
+ "which": "^5.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@eslint/js": "^9.17.0",
37
- "@types/bun": "^1.1.15",
36
+ "@eslint/js": "^9.21.0",
37
+ "@types/bun": "^1.2.4",
38
38
  "@types/express": "^5.0.0",
39
39
  "@types/md5": "^2.3.5",
40
40
  "@types/which": "^3.0.4",
41
- "eslint": "^9.17.0",
42
- "eslint-plugin-import": "^2.29.1",
41
+ "eslint": "^9.21.0",
42
+ "eslint-plugin-import": "^2.31.0",
43
43
  "eslint-plugin-md": "^1.0.19",
44
- "eslint-plugin-prettier": "^5.0.0",
45
- "prettier": "^3.3.3",
46
- "sinon": "^18.0.0",
47
- "typescript": "^5.7.2",
48
- "typescript-eslint": "^8.18.1"
44
+ "eslint-plugin-prettier": "^5.2.3",
45
+ "prettier": "^3.5.2",
46
+ "typescript": "^5.8.2",
47
+ "typescript-eslint": "^8.25.0"
49
48
  },
50
49
  "license": "MIT",
51
50
  "publishConfig": {
package/search.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isProduction } from "./env.ts";
2
2
  import { inline } from "./log.ts";
3
- import { Client } from "@elastic/elasticsearch";
3
+ import { Client, HttpConnection } from "@elastic/elasticsearch";
4
4
  import osModule from "os";
5
5
 
6
6
  type ElasticSearchRecord = {
@@ -15,6 +15,7 @@ export async function sendToSearch(indexPrefix: string, record: ElasticSearchRec
15
15
  const client = new Client({
16
16
  cloud: { id: process.env["SKYNET_ELASTICSEARCH_CLOUD_ID"] },
17
17
  auth: { apiKey: process.env["SKYNET_ELASTICSEARCH_API_KEY"] },
18
+ Connection: HttpConnection, // bun compatibility, see https://github.com/oven-sh/bun/issues/7920
18
19
  });
19
20
 
20
21
  const now = new Date();
package/bun.lockb DELETED
Binary file