Skip to content

Commit 5454d95

Browse files
committed
Merge branch 'main' into typedoc
2 parents c33db59 + a30c3dc commit 5454d95

27 files changed

+11819
-577
lines changed

.buildkite/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
env:
77
NODE_VERSION: "{{ matrix.nodejs }}"
88
TEST_SUITE: "{{ matrix.suite }}"
9-
STACK_VERSION: 8.15.0
9+
STACK_VERSION: 8.16.0
1010
matrix:
1111
setup:
1212
suite:

.github/workflows/nodejs.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
node-version: [18.x, 20.x, 22.x]
35+
node-version: [18.x, 20.x, 22.x, 23.x]
3636
os: [ubuntu-latest, windows-latest, macOS-latest]
3737

3838
steps:
@@ -57,6 +57,10 @@ jobs:
5757
run: |
5858
npm run test:unit
5959
60+
- name: ECMAScript module test
61+
run: |
62+
npm run test:esm
63+
6064
license:
6165
name: License check
6266
runs-on: ubuntu-latest
@@ -110,3 +114,7 @@ jobs:
110114
- name: Unit test
111115
run: |
112116
bun run test:unit-bun
117+
118+
- name: ECMAScript module test
119+
run: |
120+
bun run test:esm

.github/workflows/serverless-patch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Apply patch from stack to serverless
4343
id: apply-patch
4444
run: $GITHUB_WORKSPACE/stack/.github/workflows/serverless-patch.sh
45-
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
45+
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
4646
with:
4747
token: ${{ secrets.GH_TOKEN }}
4848
path: serverless

catalog-info.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ spec:
4242
main:
4343
branch: "main"
4444
cronline: "@daily"
45+
8_x:
46+
branch: "8.x"
47+
cronline: "@daily"
4548
8_14:
46-
branch: "8.14"
49+
branch: "8.16"
4750
cronline: "@daily"

docs/changelog.asciidoc

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
[[changelog-client]]
22
== Release notes
33

4+
[discrete]
5+
=== 8.16.1
6+
7+
[discrete]
8+
==== Fixes
9+
10+
[discrete]
11+
===== Fix ECMAScript imports
12+
13+
Fixed package configuration to correctly support native ECMAScript `import` syntax.
14+
415
[discrete]
516
=== 8.16.0
617

docs/doc_examples/19d60e4890cc57151d596326484d9076.asciidoc

-11
This file was deleted.

docs/doc_examples/3fab530a2e43807929c0ef3ebf7d268c.asciidoc renamed to docs/doc_examples/216e24f05cbb82c1718713fbab8623d2.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {

docs/doc_examples/d3a558ef226e9dccc1c7c61e1167547f.asciidoc renamed to docs/doc_examples/334811cfceb6858aeec5b3461717dd63.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {

docs/doc_examples/3b6718257421b5419bf4cd6a7303c57e.asciidoc

-11
This file was deleted.

docs/doc_examples/533087d787b48878a0bf3fa8d0851b64.asciidoc

-11
This file was deleted.

docs/doc_examples/4b113c7f475cfe484a150ddbb8e6c5c7.asciidoc renamed to docs/doc_examples/5e021307d331a4483a5aa2198168451b.asciidoc

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@
44
[source, js]
55
----
66
const response = await client.security.putRole({
7-
name: "role_with_remote_indices",
7+
name: "only_remote_access_role",
88
remote_indices: [
99
{
1010
clusters: ["my_remote"],
1111
names: ["logs*"],
1212
privileges: ["read", "read_cross_cluster", "view_index_metadata"],
1313
},
1414
],
15+
remote_cluster: [
16+
{
17+
clusters: ["my_remote"],
18+
privileges: ["monitor_stats"],
19+
},
20+
],
1521
});
1622
console.log(response);
1723
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
},
14+
},
15+
],
16+
});
17+
console.log(response);
18+
19+
const response1 = await client.index({
20+
index: "my-index-000001",
21+
id: "my_id",
22+
pipeline: "ip_location",
23+
document: {
24+
ip: "80.231.5.0",
25+
},
26+
});
27+
console.log(response1);
28+
29+
const response2 = await client.get({
30+
index: "my-index-000001",
31+
id: "my_id",
32+
});
33+
console.log(response2);
34+
----

docs/doc_examples/981b331db1404b39c1a612a135e4e76d.asciidoc

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
},
14+
},
15+
],
16+
});
17+
console.log(response);
18+
19+
const response1 = await client.index({
20+
index: "my-index-000001",
21+
id: "my_id",
22+
pipeline: "ip_location",
23+
document: {
24+
ip: "89.160.20.128",
25+
},
26+
});
27+
console.log(response1);
28+
29+
const response2 = await client.get({
30+
index: "my-index-000001",
31+
id: "my_id",
32+
});
33+
console.log(response2);
34+
----

docs/doc_examples/b577e7e7eb5ce9d16cb582356e2cc45c.asciidoc renamed to docs/doc_examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
----
66
const response = await client.ingest.putPipeline({
77
id: "geoip",
8-
description: "Add geoip info",
8+
description: "Add ip geolocation info",
99
processors: [
1010
{
1111
geoip: {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
3+
4+
[source, js]
5+
----
6+
const response = await client.ingest.putPipeline({
7+
id: "ip_location",
8+
description: "Add ip geolocation info",
9+
processors: [
10+
{
11+
ip_location: {
12+
field: "ip",
13+
target_field: "geo",
14+
database_file: "GeoLite2-Country.mmdb",
15+
},
16+
},
17+
],
18+
});
19+
console.log(response);
20+
21+
const response1 = await client.index({
22+
index: "my-index-000001",
23+
id: "my_id",
24+
pipeline: "ip_location",
25+
document: {
26+
ip: "89.160.20.128",
27+
},
28+
});
29+
console.log(response1);
30+
31+
const response2 = await client.get({
32+
index: "my-index-000001",
33+
id: "my_id",
34+
});
35+
console.log(response2);
36+
----

docs/examples/bulk.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[[bulk_examples]]
22
=== Bulk
33

4-
The `bulk` API makes it possible to perform many index/delete operations in a
5-
single API call. This can greatly increase the indexing speed.
4+
With the {jsclient}/api-reference.html#_bulk[`bulk` API], you can perform multiple index/delete operations in a
5+
single API call. The `bulk` API significantly increases indexing speed.
66

7-
NOTE: Did you know that we provide an helper for sending bulk request? You can find it {jsclient}/client-helpers.html[here].
7+
NOTE: You can also use the {jsclient}/client-helpers.html[bulk helper].
88

99
[source,js]
1010
----

docs/index.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ include::integrations.asciidoc[]
1717
include::observability.asciidoc[]
1818
include::transport.asciidoc[]
1919
include::typescript.asciidoc[]
20+
include::reference.asciidoc[]
2021
include::reference-main-index.asciidoc[]
2122
include::examples/index.asciidoc[]
2223
include::helpers.asciidoc[]

0 commit comments

Comments
 (0)