@sebspark/otel 4.2.0 → 4.2.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @sebspark/otel
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7db408f: feat(opensearch): type `aggs`/`aggregations` in `SearchRequestBody<T>` against the index mapping. Restores `field` and `script` on `max`, `min`, `sum`, `avg`, `value_count`, `cardinality` and `terms`, which `@opensearch-project/opensearch` 3.9.0 dropped (opensearch-project/opensearch-js#1154). `field` on these and on `date_histogram`, `date_range` and `range` autocompletes paths from the mapping and accepts any other field name. `filter` takes an index-aware query, `top_hits` gets index-aware `sort`/`_source`, and sub-aggregations are typed recursively. Other aggregations keep their upstream types. `AggregationContainer<T>` is exported for typing individual aggregations.
8
+
9
+ feat(opensearch): the typing never blocks a request OpenSearch accepts. Fields that are not in the mapping (e.g. added by dynamic mapping) are accepted in `query`, `sort`, `_source`, `collapse`, `highlight`, aggregation `field`/`filter` and `top_hits` `sort`/`_source`; mapped fields still autocomplete. `DocumentFor<T>` accepts fields that are not in the mapping as `unknown`, so `index`, `bulk` and the bulk helpers take documents with extra fields. A generic `SearchRequest<T>` can be passed to the upstream `Client`.
10
+
11
+ fix(opensearch): sort accepts the direction shorthand (`{ age: 'desc' }`), `knn_vector` fields map to `number[]` in `DocumentFor`, `knn.filter` is a single query instead of an array, and `script_score.query` is required. OpenSearch rejects both an array `knn.filter` and a `script_score` without `query`, so only requests that already failed at runtime stop compiling. To migrate, combine several knn filters in one `bool` query (`filter: { bool: { filter: [...] } }`), and add `query: { match_all: {} }` to a `script_score` that had none.
12
+
13
+ chore(deps): update dependencies
14
+ - `@google-cloud/pubsub` 6.3.1 → 6.3.2
15
+ - `@inquirer/figures` 2.0.9 → 2.0.10
16
+ - `@inquirer/prompts` 8.7.4 → 8.7.5
17
+ - `@opentelemetry/semantic-conventions` 1.43.0 → 1.44.0
18
+ - `redis` 6.3.0 → 6.3.1
19
+ - `tsdown` 0.23.1 → 0.23.4
20
+
21
+ fix: dependency issues found by knip
22
+ - `@sebspark/promise-cache`: drop the unused `@sebspark/otel`
23
+ - `@sebspark/socket.io-gcp-pubsub-emitter`: drop the unused `uuid`
24
+ - `@sebspark/memredis`: derive `GetExOptions` from `redis` instead of importing the unlisted `@redis/client` internals
25
+
26
+ fix(test-iap): the default base image of `TestIapContainer` is now `node:26.13.0-alpine`, pinned by digest, instead of the floating `node:22-alpine`. Use `withBaseImage()` to choose another image.
27
+
28
+ - Updated dependencies [7db408f]
29
+ - @sebspark/opentelemetry-instrumentation-opensearch@0.4.1
30
+
3
31
  ## 4.2.0
4
32
 
5
33
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/otel",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -45,23 +45,23 @@
45
45
  "@opentelemetry/sdk-metrics": "3.0.0",
46
46
  "@opentelemetry/sdk-node": "0.300.0",
47
47
  "@opentelemetry/sdk-trace": "3.0.0",
48
- "@opentelemetry/semantic-conventions": "1.43.0",
49
- "@sebspark/opentelemetry-instrumentation-opensearch": "0.4.0",
48
+ "@opentelemetry/semantic-conventions": "1.44.0",
49
+ "@sebspark/opentelemetry-instrumentation-opensearch": "0.4.1",
50
50
  "fast-safe-stringify": "2.1.1",
51
51
  "kleur": "4.1.5",
52
52
  "yaml": "2.9.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@biomejs/biome": "2.6.3",
55
+ "@biomejs/biome": "2.6.4",
56
56
  "@opensearch-project/opensearch": "3.9.0",
57
57
  "@opentelemetry/context-async-hooks": "3.0.0",
58
- "@sebspark/tsconfig": "3.0.26",
58
+ "@sebspark/tsconfig": "3.0.28",
59
59
  "@testcontainers/opensearch": "12.2.1",
60
60
  "@testcontainers/redis": "12.2.1",
61
- "axios": "1.20.0",
61
+ "axios": "1.21.0",
62
62
  "express": "5.3.0",
63
63
  "find-free-ports": "3.1.1",
64
- "redis": "6.3.0",
64
+ "redis": "6.3.1",
65
65
  "typescript": "7.0.2",
66
66
  "undici": "8.12.3",
67
67
  "vite": "8.3.5",