Skip to content

Commit

Permalink
Merge branch 'main' into typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Nov 19, 2024
2 parents c33db59 + a30c3dc commit 5454d95
Show file tree
Hide file tree
Showing 27 changed files with 11,819 additions and 577 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
env:
NODE_VERSION: "{{ matrix.nodejs }}"
TEST_SUITE: "{{ matrix.suite }}"
STACK_VERSION: 8.15.0
STACK_VERSION: 8.16.0
matrix:
setup:
suite:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [18.x, 20.x, 22.x, 23.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -57,6 +57,10 @@ jobs:
run: |
npm run test:unit
- name: ECMAScript module test
run: |
npm run test:esm
license:
name: License check
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,3 +114,7 @@ jobs:
- name: Unit test
run: |
bun run test:unit-bun
- name: ECMAScript module test
run: |
bun run test:esm
2 changes: 1 addition & 1 deletion .github/workflows/serverless-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Apply patch from stack to serverless
id: apply-patch
run: $GITHUB_WORKSPACE/stack/.github/workflows/serverless-patch.sh
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7
with:
token: ${{ secrets.GH_TOKEN }}
path: serverless
Expand Down
5 changes: 4 additions & 1 deletion catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
main:
branch: "main"
cronline: "@daily"
8_x:
branch: "8.x"
cronline: "@daily"
8_14:
branch: "8.14"
branch: "8.16"
cronline: "@daily"
11 changes: 11 additions & 0 deletions docs/changelog.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
[[changelog-client]]
== Release notes

[discrete]
=== 8.16.1

[discrete]
==== Fixes

[discrete]
===== Fix ECMAScript imports

Fixed package configuration to correctly support native ECMAScript `import` syntax.

[discrete]
=== 8.16.0

Expand Down
11 changes: 0 additions & 11 deletions docs/doc_examples/19d60e4890cc57151d596326484d9076.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
11 changes: 0 additions & 11 deletions docs/doc_examples/3b6718257421b5419bf4cd6a7303c57e.asciidoc

This file was deleted.

11 changes: 0 additions & 11 deletions docs/doc_examples/533087d787b48878a0bf3fa8d0851b64.asciidoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
[source, js]
----
const response = await client.security.putRole({
name: "role_with_remote_indices",
name: "only_remote_access_role",
remote_indices: [
{
clusters: ["my_remote"],
names: ["logs*"],
privileges: ["read", "read_cross_cluster", "view_index_metadata"],
},
],
remote_cluster: [
{
clusters: ["my_remote"],
privileges: ["monitor_stats"],
},
],
});
console.log(response);
----
34 changes: 34 additions & 0 deletions docs/doc_examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "80.231.5.0",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
17 changes: 0 additions & 17 deletions docs/doc_examples/981b331db1404b39c1a612a135e4e76d.asciidoc

This file was deleted.

34 changes: 34 additions & 0 deletions docs/doc_examples/a3779f21f132787c48681bfb50453592.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "89.160.20.128",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
----
const response = await client.ingest.putPipeline({
id: "geoip",
description: "Add geoip info",
description: "Add ip geolocation info",
processors: [
{
geoip: {
Expand Down
36 changes: 36 additions & 0 deletions docs/doc_examples/e308899a306e61d1a590868308689955.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.ingest.putPipeline({
id: "ip_location",
description: "Add ip geolocation info",
processors: [
{
ip_location: {
field: "ip",
target_field: "geo",
database_file: "GeoLite2-Country.mmdb",
},
},
],
});
console.log(response);
const response1 = await client.index({
index: "my-index-000001",
id: "my_id",
pipeline: "ip_location",
document: {
ip: "89.160.20.128",
},
});
console.log(response1);
const response2 = await client.get({
index: "my-index-000001",
id: "my_id",
});
console.log(response2);
----
6 changes: 3 additions & 3 deletions docs/examples/bulk.asciidoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[[bulk_examples]]
=== Bulk

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

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

[source,js]
----
Expand Down
1 change: 1 addition & 0 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ include::integrations.asciidoc[]
include::observability.asciidoc[]
include::transport.asciidoc[]
include::typescript.asciidoc[]
include::reference.asciidoc[]
include::reference-main-index.asciidoc[]
include::examples/index.asciidoc[]
include::helpers.asciidoc[]
Expand Down
Loading

0 comments on commit 5454d95

Please sign in to comment.