Skip to content

Commit ff3be03

Browse files
authored
Release/554 (#1707)
* fix deprecated .json() pydantic call * update docs * Bump Visual Version * add PAYG license fetch for API call (#1705)
1 parent aa5ff89 commit ff3be03

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

docs/en/jsl/jsl_release_notes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ See [Github Releases](https://github.com/JohnSnowLabs/johnsnowlabs/releases) for
1717

1818

1919

20+
## 5.5.4
21+
Release date: 1-30-2025
22+
23+
The John Snow Labs 5.5.2 Library released with the following pre-installed and recommended dependencies
24+
25+
{:.table-model-big}
26+
| Library | Version |
27+
|-----------------------------------------------------------------------------------------|------------|
28+
| [Visual NLP](https://nlp.johnsnowlabs.com/docs/en/spark_ocr_versions/ocr_release_notes) | `5.5.0` |
29+
| [Enterprise NLP](https://nlp.johnsnowlabs.com/docs/en/licensed_annotators) | `5.5.2` |
30+
| [Finance NLP](https://nlp.johnsnowlabs.com/docs/en/financial_release_notes) | `1.X.X` |
31+
| [Legal NLP](https://nlp.johnsnowlabs.com/docs/en/legal_release_notes) | `1.X.X` |
32+
| [NLU](https://github.com/JohnSnowLabs/nlu/releases) | `5.4.1` |
33+
| [Spark-NLP-Display](https://sparknlp.org/docs/en/display) | `5.0` |
34+
| [Spark-NLP](https://github.com/JohnSnowLabs/spark-nlp/releases/) | `5.5.2` |
35+
| [Pyspark](https://spark.apache.org/docs/latest/api/python/) | `3.4.0` |
36+
37+
2038

2139
## 5.5.3
2240
Release date: 1-20-2025

johnsnowlabs/abstract_base/pydantic_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def write(self, path, *args, **kwargs):
1717
with open(path, "w", encoding="utf8") as json_file:
1818
if "indent" not in kwargs:
1919
kwargs["indent"] = settings.json_indent
20-
json_file.write(self.json(*args, **kwargs))
20+
json_file.write(self.model_dump_json(*args, **kwargs))
2121

2222
class Config:
2323
arbitrary_types_allowed = True

johnsnowlabs/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# These versions are used for auto-installs and version checks
1212

13-
raw_version_jsl_lib = "5.5.3"
13+
raw_version_jsl_lib = "5.5.4"
1414

1515
raw_version_nlp = "5.5.2"
1616

@@ -23,8 +23,8 @@
2323
raw_version_medical = "5.5.2"
2424
raw_version_secret_medical = "5.5.2"
2525

26-
raw_version_secret_ocr = "5.4.2"
27-
raw_version_ocr = "5.4.2"
26+
raw_version_secret_ocr = "5.5.0"
27+
raw_version_ocr = "5.5.0"
2828

2929
raw_version_pydantic = "2"
3030

johnsnowlabs/utils/my_jsl_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def get_user_lib_secrets(access_token):
166166

167167
def get_user_licenses(access_token):
168168
licenses_query = """query LicensesQuery {
169-
licenses(isValid: true, platforms: ["Airgap", "Floating"]) {
169+
licenses(isValid: true, platforms: ["Airgap", "Floating", "PAYG"]) {
170170
edges {
171171
node {
172172
id

0 commit comments

Comments
 (0)