-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[4.x] Bump elasticsearch-js version to the latest stable #7210
Comments
I just did a test of a fresh clone of 4.5, and I'm not seeing this. Is this still an issue? Do you have any other details? |
I had to update the package.json to newer versions. In the end I chose elasticsearch 8.1. This was the earliest version of that module that supported node v4.4.4 I'm not sure why you can't reproduce. npm only does these version checks at install time. If you used a version of node in the acceptable range to run install it may have downloaded. On another project, we ran into version issues with fresh installs due to 3rd party dependencies and their dependencies... so we started maintaining a shrinkwrap file. I'll try a fresh clone over the weekend and see if it's still a problem for me. |
I setup a simple test confirming that npm won't download elasticsearch 8.0.1 with node v4.4.4: mac~$ cat package.json
{
"name": "test",
"version": "1.0.0",
"description": "a random test",
"main": "index.js",
"scripts": {
"test": "ls"
},
"author": "",
"license": "ISC",
"dependencies": {
"elasticsearch": "8.0.1"
}
}
mac~$ npm install
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/me/.nvm/versions/node/v4.4.4/bin/node" "/Users/akenney/.nvm/versions/node/v4.4.4/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":">=0.8 <3.0","iojs":">=1.5"}
npm ERR! notsup Actual: {"npm":"2.15.1","node":"4.4.4"}
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/dev/gitrepo/sandbox/test/npm-debug.log
mac~$ nvm list
v0.10.45
v4.3.2
-> v4.4.4
v5.7.0
v5.7.1
system
default -> stable (-> v5.7.1)
node -> stable (-> v5.7.1) (default)
stable -> 5.7 (-> v5.7.1) (default)
iojs -> N/A (default) |
I get a warning, but not a failure (with node 4.4.7 and npm 2.15.8):
As I understand, the install should only fail if the dependency lists |
While I don't see us bumping this for 4.5, we probably should update it in 4.x so that we don't run into problems in the future while maintaining 4.6. @spalger What do you think? Is there an obvious version of the es-js client that we should use against ES 2.4? |
Every version of the elasticsearch-js client works against every version of elasticsearch released since 0.90. Just supply the |
That's convenient. |
|
@andrewjkenney I hope you don't mind that I commandeered this ticket for the dependency bump. It seemed appropriate since this ticket provides all of the context. |
Sure no problem. @Bargs is right, under normal config you would only receive a warning. But, I have engine-strict=true in my local config. and forgot it was set. I think I turned it on before we started shrinkwrapping... |
@spalger I think there was a backwards compatibility break in the elasticsearch-js plugin at some point between 8.x and 12.x. If I bump the
That's with a completely fresh node_modules. |
esjs used to ship with bluebird, but that was removed in support of native JS promises. We configure the library to use bluebird though |
Awesome, I'll sort that out. |
It looks like the latest version of elasticsearch-js (12.1) does not support the ES 2.0 api, which is a requirement for 4.x. Since the default npm settings work for the current version, I'm going to close this out. |
`v88.3.0`⏩`v88.5.0` closes #151514 --- ## [`88.5.0`](https://github.com/elastic/eui/tree/v88.5.0) - Updated `EuiCallOut` with a new `onDismiss` prop ([#7156](elastic/eui#7156)) - Added a new `renderCustomToolbar` prop to `EuiDataGrid`, which allows custom rendering of the toolbar. ([#7190](elastic/eui#7190)) - Added a new `allowResetButton` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows hiding the "Reset to default" button from the display settings popover. ([#7190](elastic/eui#7190)) - Added a new `additionalDisplaySettings` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows rendering extra settings inside the display settings popover. ([#7190](elastic/eui#7190)) - Updated `EuiDataGrid`'s toolbar display settings button icon ([#7190](elastic/eui#7190)) - Updated `EuiTextTruncate` with significantly improved iteration performance. Removed `measurementRenderAPI` prop, as `EuiTextTruncation` now only uses more performant canvas render API ([#7210](elastic/eui#7210)) - Updated `EuiPopover` with a new configurable `repositionToCrossAxis` prop ([#7211](elastic/eui#7211)) - Updated `EuiDatePicker` to support `compressed` input styling ([#7218](elastic/eui#7218)) - Added `gradient` and `palette` icon glyphs. ([#7220](elastic/eui#7220)) **Bug fixes** - Fixed `EuiPopover`'s missing animations on popover close ([#7211](elastic/eui#7211)) - Fixed `EuiInputPopover` anchoring to the wrong side and missing shadows on smaller screens ([#7211](elastic/eui#7211)) - Fixed `EuiSuperDatePicker` icon spacing on the quick select button ([#7217](elastic/eui#7217)) - Fixed a missing type in `EuiMarkdownEditor`'s default processing plugins ([#7221](elastic/eui#7221)) ## [`88.4.1`](https://github.com/elastic/eui/tree/v88.4.1) **Bug fixes** - Fixed missing `className`s on `EuiTextTruncate` ([#7212](elastic/eui#7212)) - Fixed `title`s on `EuiComboBox` dropdown options to always be present ([#7212](elastic/eui#7212)) - Fixed `EuiComboBox` truncation issues when search is an empty space ([#7212](elastic/eui#7212)) ## [`88.4.0`](https://github.com/elastic/eui/tree/v88.4.0) - Updated `EuiComboBox` to allow configuring text truncation behavior via `truncationProps`. These props can be set on the entire combobox as well as on on individual dropdown options. ([#7028](elastic/eui#7028)) - Updated `EuiInMemoryTable` with a new `searchFormat` prop (defaults to `eql`). When setting this prop to `text`, the built-in search bar will ignore EQL syntax and allow searching for plain strings with special characters and symbols. ([#7175](elastic/eui#7175)) **Bug fixes** - `EuiComboBox` now always shows the highlighted search text, even on truncated text ([#7028](elastic/eui#7028)) - Fixed missing i18n in `EuiSearchBar`'s default placeholder and aria-label text ([#7175](elastic/eui#7175)) - Fixed the inline compressed styles of `EuiDescriptionListTitle` to use a taller line-height for readability ([#7185](elastic/eui#7185)) - Fixed `EuiComboBox` to correctly truncate selected items when displayed as pills and plain text ([#7193](elastic/eui#7193)) **Accessibility** - Added `aria-current` attribute to `EuiTablePagination` ([#7186](elastic/eui#7186)) **CSS-in-JS conversions** - Converted `EuiDroppable` and `EuiDraggable` to Emotion; Removed `$euiDragAndDropSpacing` Sass variables ([#7187](elastic/eui#7187)) --------- Co-authored-by: Patryk Kopycinski <[email protected]> Co-authored-by: Jan Monschke <[email protected]> Co-authored-by: Thomas Watson <[email protected]>
Edit by @epixa
We should bump the elasticsearch-js version in 4.x to the latest stable version possible.
Original title: npm install fails due to node_module version incompatibility with 4.4.4
When following the contributing.md instructions to do a fresh install I get an incompatibility for elasticsearch and also karma. This happened for me on branch 4.5, I have observed similar on 4.5.1 and 4.1
on 4.5 branch, If I bump
npm install works
The text was updated successfully, but these errors were encountered: