Socket
Socket
Sign inDemoInstall

@shelf/jest-elasticsearch

Package Overview
Dependencies
107
Maintainers
55
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 5.0.0

7

CHANGELOG.md
# Breaking Changes
## 5.0.0
- Upgrade `@elastic/elasticsearch` to version 8.4.0
- Changed `getDocuments` request parameters according to the new Elasticsearch version
- use `getDocuments({index, {query: {}})` instead of `getDocuments({index, body: {query: {}}})`
- Run Elasticsearch >= `v8.0.0` locally requires java `v17`/`v18`. See [Support Matrix](https://www.elastic.co/support/matrix#matrix_jvm)
## 4.0.0
- Upgrade `jest` to version 28

2

jest-es-config.js

@@ -5,3 +5,3 @@ const documentsMapping = require('./index-mapping');

return {
esVersion: '8.2.0',
esVersion: '8.4.0',
clusterName: 'docs',

@@ -8,0 +8,0 @@ nodeName: 'docs',

{
"name": "@shelf/jest-elasticsearch",
"version": "4.1.0",
"version": "5.0.0",
"description": "Run your tests using jest & elasticsearch-local",

@@ -52,3 +52,3 @@ "keywords": [

"dependencies": {
"@shelf/elasticsearch-local": "3.0.0",
"@shelf/elasticsearch-local": "3.2.0",
"cwd": "0.10.0"

@@ -59,3 +59,3 @@ },

"@babel/core": "7.18.9",
"@elastic/elasticsearch": "7.15.0",
"@elastic/elasticsearch": "8.4.0",
"@shelf/babel-config": "1.2.0",

@@ -68,3 +68,3 @@ "@shelf/eslint-config": "0.19.0",

"@types/node": "16",
"eslint": "7.26.0",
"eslint": "7.32.0",
"husky": "7.0.4",

@@ -74,3 +74,3 @@ "jest": "28.1.3",

"prettier": "2.3.0",
"typescript": "4.7.4"
"typescript": "4.8.2"
},

@@ -77,0 +77,0 @@ "engines": {

@@ -28,3 +28,3 @@ # jest-elasticsearch

return {
esVersion: '7.6.0', // ! must be exact version. Ref: https://github.com/elastic/elasticsearch-js .
esVersion: '8.4.0', // ! must be exact version. Ref: https://github.com/elastic/elasticsearch-js .
// don't be shy to fork our code and update deps to correct.

@@ -88,10 +88,10 @@ clusterName: 'your-cluster-name',

2. If you see version 1.8.xxx
2. If you see version 18.0.x
Add this command to your bashrc, zshrc, etc
```shell
$ /usr/libexec/java_home -v 1.8
$ /usr/libexec/java_home -v 18
```
3. If you see no versions or do not have a compatible version installed - Install version 1.8xxx
https://www.java.com/en/download/
3. If you see no versions or do not have a compatible version installed - Install version 18
https://www.oracle.com/java/technologies/downloads/#java18

@@ -105,10 +105,12 @@ 4. Reload the console and check the java version with

$ java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
java version "18.0.2.1"
Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
```
5. Go to step 2 and set version 1.8xx as a default for the shell
5. Go to step **2** and set version 18.xx as a default for the shell
> Note: If you need to run elastic <= `v7.17.x` locally, then perform the steps above but for the java version 1.8.xxx
</details>

@@ -115,0 +117,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc