* Expose a serverMode option to enable serverless-friendly defaults
* Update basic config docs to note how the serverMode flag works
* Docs cleanup
* Add another note to docs about connecting to serverless
* Add experimental Bun test runner
* Add TypeScript export for Bun
* Clean up tests to prevent TypeScript build warnings
* Use Node.js 22 to run codegen
* Squash a couple TypeScript errors during tests
These are expected errors, to test edge cases for non-TS users
* Ignore Bun lockfile
* Drop unused index.ts
* Move unit test file list to tap config
* Bulk helper onSuccess callback
For https://github.com/elastic/elasticsearch-js/issues/2090
Includes refactor of the tryBulk result processing code, to make
iterating over bulk response data easier to understand.
* Add onSuccess tests for each datasource type
* Cleanup, additional comments
* Add documentation for onSuccess callback
* Update changelog
* Drop link to 8.14 release notes.
Page not yet published, breaking docs build.
* Set version to 8.10.1
* Add tests for bulk helper with various flush and server timeouts
* Copy and empty bulkBody when flushBytes is reached
Before it was waiting until after semaphore resolved, then sending with
a reference to bulkBody. If flushInterval is reached after `await
semaphore()` but before `send(bulkBody)`, onFlushTimeout is "stealing"
bulkBody so that there is nothing left in bulkBody for the flushBytes
block to send, causing an indefinite hang for a promise that does not
resolve.
* comment typo fixes
---------
Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
* Fix bad sysctl command in README
* Add --suite and --test flags to integration tests
So we can run a single suite or a single test without having to edit
any code.
* Drop several skipped integration tests
Many of these skips are no longer necessary. Didn't do an exhaustive
check of all skipped tests, so this is just a start.
* Simplify cleanup make target
* Use more inclusive language
* Don't bail on failing tests without --bail
* Skip a few more free suite tests
* Default to https when running platinum tests
* Add make targets for local integration testing
* Linter cleanup
* Skip some platinum integration tests
* Improvements to integration test README
* Another free test to skip for now
* Continue on non-bail test failure
* Output cleanup