Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update npm package @opensearch-project/opensearch to v3 #6085

Closed
wants to merge 1 commit into from

Conversation

hash-worker[bot]
Copy link
Contributor

@hash-worker hash-worker bot commented Jan 7, 2025

This PR contains the following updates:

Package Type Update Change
@opensearch-project/opensearch (source) dependencies major 2.13.0 -> 3.0.0

Release Notes

opensearch-project/opensearch-js (@​opensearch-project/opensearch)

v3.0.0

Compare Source

Added
  • Added API Generator (#​789)
  • Added missing API functions and modules.
  • Added missing request and response types.
Dependencies
  • Bumps @babel/traverse from 7.22.8 to 7.24.7
  • Bumps @types/node from 22.5.0 to 22.5.4
  • Bumps aws4 from 1.13.0 to 1.13.2
  • Bumps aws4 from 1.13.1 to 1.13.2
  • Bumps debug from 4.3.6 to 4.3.7
  • Bumps eslint-plugin-prettier from 5.1.3 to 5.2.1
  • Bumps micromatch from 4.0.7 to 4.0.8
  • Bumps simple-git from 3.24.0 to 3.26.0
  • Bumps simple-git from 3.25.0 to 3.26.0
  • Bumps simple-statistics from 7.8.4 to 7.8.5
Changed
  • All API functions are now generated from the OpenSearch API specification.
  • API request and response types are now generated from the OpenSearch API specification.
  • Overhauled API codebase and break it into smaller, more manageable files for better readability and maintainability.
Deprecated
  • Support for snake_cased API function aliases have been deprecated to conform to JavaScript naming conventions.
Removed
  • Removed support for API param aliases. That is, the API functions now only accept params with the exact names specified in the OpenSearch API specification.
  • Removed support for overriding HTTP methods in API functions.
  • Removed support for Node.js 10 and 12. The minimum supported Node.js version is now 14.
Fixed
  • Upgrade JSON11 from 1.1.2 to 2.0.0 to ensure UTF-8 safety when stringifying JSON data
  • Fixed typo cause JSON11 parse will always be executed when json string has number inside
Security

Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@hash-worker hash-worker bot enabled auto-merge January 7, 2025 17:42
@github-actions github-actions bot added area/deps Relates to third-party dependencies (area) area/apps > hash* Affects HASH (a `hash-*` app) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Jan 7, 2025
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Benchmark results

@rust/hash-graph-benches – Integrations

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$16.8 \mathrm{ms} \pm 218 \mathrm{μs}\left({\color{lightgreen}-26.358 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$16.3 \mathrm{ms} \pm 176 \mathrm{μs}\left({\color{gray}-3.824 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$17.4 \mathrm{ms} \pm 206 \mathrm{μs}\left({\color{red}12.6 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$16.0 \mathrm{ms} \pm 154 \mathrm{μs}\left({\color{lightgreen}-5.180 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$17.0 \mathrm{ms} \pm 231 \mathrm{μs}\left({\color{gray}0.942 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$16.0 \mathrm{ms} \pm 183 \mathrm{μs}\left({\color{gray}-1.037 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$16.0 \mathrm{ms} \pm 209 \mathrm{μs}\left({\color{gray}0.946 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$16.8 \mathrm{ms} \pm 179 \mathrm{μs}\left({\color{lightgreen}-26.529 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$16.6 \mathrm{ms} \pm 237 \mathrm{μs}\left({\color{gray}-2.087 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$67.2 \mathrm{ms} \pm 456 \mathrm{μs}\left({\color{gray}-1.153 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$40.3 \mathrm{ms} \pm 226 \mathrm{μs}\left({\color{gray}-0.410 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$58.1 \mathrm{ms} \pm 287 \mathrm{μs}\left({\color{gray}-0.643 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$44.5 \mathrm{ms} \pm 275 \mathrm{μs}\left({\color{gray}-0.245 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$51.4 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{gray}2.27 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$54.8 \mathrm{ms} \pm 574 \mathrm{μs}\left({\color{gray}-0.679 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$103 \mathrm{ms} \pm 465 \mathrm{μs}\left({\color{gray}-0.515 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$39.6 \mathrm{ms} \pm 218 \mathrm{μs}\left({\color{gray}-2.330 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$94.7 \mathrm{ms} \pm 743 \mathrm{μs}\left({\color{gray}-1.289 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$78.3 \mathrm{ms} \pm 380 \mathrm{μs}\left({\color{gray}-0.484 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$87.3 \mathrm{ms} \pm 509 \mathrm{μs}\left({\color{gray}0.025 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$90.8 \mathrm{ms} \pm 515 \mathrm{μs}\left({\color{gray}-0.679 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579 $$2.12 \mathrm{ms} \pm 6.37 \mathrm{μs}\left({\color{gray}-0.542 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$5.43 \mathrm{s} \pm 544 \mathrm{ms}\left({\color{red}1937 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$27.0 \mathrm{ms} \pm 167 \mathrm{μs}\left({\color{gray}0.199 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$20.6 \mathrm{ms} \pm 75.8 \mathrm{μs}\left({\color{gray}-0.579 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$57.2 \mathrm{ms} \pm 193 \mathrm{μs}\left({\color{gray}-0.988 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$176 \mathrm{ms} \pm 719 \mathrm{μs}\left({\color{gray}-0.957 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$1.93 \mathrm{ms} \pm 6.87 \mathrm{μs}\left({\color{gray}-0.313 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$2.14 \mathrm{ms} \pm 7.09 \mathrm{μs}\left({\color{gray}-0.073 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$1.95 \mathrm{ms} \pm 7.56 \mathrm{μs}\left({\color{gray}-0.222 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.90 \mathrm{ms} \pm 14.1 \mathrm{μs}\left({\color{lightgreen}-6.380 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$14.2 \mathrm{ms} \pm 47.7 \mathrm{μs}\left({\color{red}55.1 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$4.06 \mathrm{ms} \pm 22.6 \mathrm{μs}\left({\color{gray}0.546 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.94 \mathrm{ms} \pm 9.66 \mathrm{μs}\left({\color{gray}-1.117 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.93 \mathrm{ms} \pm 11.3 \mathrm{μs}\left({\color{gray}0.011 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$2.04 \mathrm{ms} \pm 9.48 \mathrm{μs}\left({\color{gray}-1.299 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$3.26 \mathrm{ms} \pm 10.2 \mathrm{μs}\left({\color{gray}-0.954 \mathrm{\%}}\right) $$ Flame Graph

@vilkinsons vilkinsons closed this Jan 8, 2025
auto-merge was automatically disabled January 8, 2025 08:37

Pull request was closed

@hash-worker
Copy link
Contributor Author

hash-worker bot commented Jan 8, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@hash-worker hash-worker bot deleted the deps/js/opensearch-project-opensearch-3.x branch January 8, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apps > hash* Affects HASH (a `hash-*` app) area/deps Relates to third-party dependencies (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team
Development

Successfully merging this pull request may close these issues.

3 participants