Skip to content

Commit c1615be

Browse files
committed
jsonpickle v4.1.1
1 parent 56c0452 commit c1615be

File tree

12 files changed

+354
-329
lines changed

12 files changed

+354
-329
lines changed

_static/basic.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -741,14 +741,6 @@ abbr, acronym {
741741
cursor: help;
742742
}
743743

744-
.translated {
745-
background-color: rgba(207, 255, 207, 0.2)
746-
}
747-
748-
.untranslated {
749-
background-color: rgba(255, 207, 207, 0.2)
750-
}
751-
752744
/* -- code displays --------------------------------------------------------- */
753745

754746
pre {

_static/pygments.css

Lines changed: 230 additions & 230 deletions
Large diffs are not rendered by default.

_static/searchtools.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,11 @@ const Search = {
513513
// perform the search on the required terms
514514
searchTerms.forEach((word) => {
515515
const files = [];
516+
// find documents, if any, containing the query word in their text/title term indices
517+
// use Object.hasOwnProperty to avoid mismatching against prototype properties
516518
const arr = [
517-
{ files: terms[word], score: Scorer.term },
518-
{ files: titleTerms[word], score: Scorer.title },
519+
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
520+
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
519521
];
520522
// add support for partial matches
521523
if (word.length > 2) {
@@ -547,8 +549,9 @@ const Search = {
547549

548550
// set score for the word in each file
549551
recordFiles.forEach((file) => {
550-
if (!scoreMap.has(file)) scoreMap.set(file, {});
551-
scoreMap.get(file)[word] = record.score;
552+
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
553+
const fileScores = scoreMap.get(file);
554+
fileScores.set(word, record.score);
552555
});
553556
});
554557

@@ -587,7 +590,7 @@ const Search = {
587590
break;
588591

589592
// select one (max) score for the file.
590-
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
593+
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
591594
// add result to the result list
592595
results.push([
593596
docNames[file],

api.html

Lines changed: 31 additions & 30 deletions
Large diffs are not rendered by default.

contrib.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
66
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="History" href="history.html" /><link rel="prev" title="jsonpickle extensions" href="extensions.html" />
77

8-
<!-- Generated with Sphinx 8.1.2 and Furo 2024.08.06 -->
8+
<!-- Generated with Sphinx 8.2.3 and Furo 2024.08.06 -->
99
<title>Contributing to jsonpickle - jsonpickle documentation</title>
10-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
10+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8f2a1f02" />
1111
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=354aac6f" />
1212
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=302659d7" />
1313

extensions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
66
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Contributing to jsonpickle" href="contrib.html" /><link rel="prev" title="jsonpickle API" href="api.html" />
77

8-
<!-- Generated with Sphinx 8.1.2 and Furo 2024.08.06 -->
8+
<!-- Generated with Sphinx 8.2.3 and Furo 2024.08.06 -->
99
<title>jsonpickle extensions - jsonpickle documentation</title>
10-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
10+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8f2a1f02" />
1111
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=354aac6f" />
1212
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=302659d7" />
1313

@@ -256,7 +256,7 @@ <h2>NumPy<a class="headerlink" href="#numpy" title="Link to this heading">¶</a>
256256
<p>jsonpickle includes a built-in numpy extension. If would like to encode
257257
sklearn models, numpy arrays, and other numpy-based data then you must
258258
enable the numpy extension by registering its handlers:</p>
259-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">jsonpickle.ext.numpy</span> <span class="k">as</span> <span class="nn">jsonpickle_numpy</span>
259+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">jsonpickle.ext.numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">jsonpickle_numpy</span>
260260
<span class="gp">&gt;&gt;&gt; </span><span class="n">jsonpickle_numpy</span><span class="o">.</span><span class="n">register_handlers</span><span class="p">()</span>
261261
</pre></div>
262262
</div>
@@ -266,7 +266,7 @@ <h2>Ecdsa<a class="headerlink" href="#ecdsa" title="Link to this heading">¶</a>
266266
<p>For the ecdsa module’s keys, when trying to serialize them with
267267
<code class="docutils literal notranslate"><span class="pre">gmpy2</span></code> installed, jsonpickle will error unless the <code class="docutils literal notranslate"><span class="pre">gmpy</span></code>
268268
handlers are registered:</p>
269-
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">jsonpickle.ext.gmpy</span> <span class="k">as</span> <span class="nn">jsonpickle_gmpy</span>
269+
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span><span class="w"> </span><span class="nn">jsonpickle.ext.gmpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">jsonpickle_gmpy</span>
270270
<span class="gp">&gt;&gt;&gt; </span><span class="n">jsonpickle_gmpy</span><span class="o">.</span><span class="n">register_handlers</span><span class="p">()</span>
271271
</pre></div>
272272
</div>

genindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta name="viewport" content="width=device-width,initial-scale=1"/>
55
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />
66

7-
<!-- Generated with Sphinx 8.1.2 and Furo 2024.08.06 --><title>Index - jsonpickle documentation</title>
8-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
7+
<!-- Generated with Sphinx 8.2.3 and Furo 2024.08.06 --><title>Index - jsonpickle documentation</title>
8+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8f2a1f02" />
99
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=354aac6f" />
1010
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=302659d7" />
1111

history.html

Lines changed: 56 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
66
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="prev" title="Contributing to jsonpickle" href="contrib.html" />
77

8-
<!-- Generated with Sphinx 8.1.2 and Furo 2024.08.06 -->
8+
<!-- Generated with Sphinx 8.2.3 and Furo 2024.08.06 -->
99
<title>History - jsonpickle documentation</title>
10-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
10+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8f2a1f02" />
1111
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=354aac6f" />
1212
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=302659d7" />
1313

@@ -261,6 +261,31 @@ <h2>Upcoming<a class="headerlink" href="#upcoming" title="Link to this heading">
261261
</ul>
262262
</div></blockquote>
263263
</section>
264+
<section id="v4-1-1">
265+
<h2>v4.1.1<a class="headerlink" href="#v4-1-1" title="Link to this heading"></a></h2>
266+
<blockquote>
267+
<div><ul class="simple">
268+
<li><p>Maintenance release to omit upcoming breaking changes.</p></li>
269+
<li><p>An error in the jsonpickle pandas extension when decoding objects that were encoded
270+
before jsonpickle v3.4.0 was fixed, and warnings were added. (<a class="reference external" href="https://github.com/jsonpickle/jsonpickle/pull/562">+562</a>)</p></li>
271+
<li><p>Added <code class="docutils literal notranslate"><span class="pre">jsonpickle.ext.yaml</span></code> for forwards-compatibility, but the <code class="docutils literal notranslate"><span class="pre">yaml</span></code> module
272+
continues to be registered by default. <code class="docutils literal notranslate"><span class="pre">v5.0.0</span></code> will no longer register
273+
<code class="docutils literal notranslate"><span class="pre">jsonpickle.ext.yaml</span></code> by default.</p></li>
274+
</ul>
275+
</div></blockquote>
276+
</section>
277+
<section id="v4-1-0">
278+
<h2>v4.1.0<a class="headerlink" href="#v4-1-0" title="Link to this heading"></a></h2>
279+
<dl class="simple">
280+
<dt>21 May 2025</dt><dd><ul class="simple">
281+
<li><p>Deprecation warnings were added to certain simple functions in <code class="docutils literal notranslate"><span class="pre">jsonpickle/util.py</span></code>.
282+
These functions will be removed in 5.0.0 to ease the transition into typing everything.</p></li>
283+
<li><p>The <code class="docutils literal notranslate"><span class="pre">test_multindex_dataframe_roundtrip</span></code> test in the pandas extension had been failing
284+
on 32-bit architectures in Debian’s test suite. This has been resolved. (<a class="reference external" href="https://github.com/jsonpickle/jsonpickle/pull/560">+560</a>)</p></li>
285+
</ul>
286+
</dd>
287+
</dl>
288+
</section>
264289
<section id="v4-0-5">
265290
<h2>v4.0.5<a class="headerlink" href="#v4-0-5" title="Link to this heading"></a></h2>
266291
<dl class="simple">
@@ -962,8 +987,8 @@ <h2>v0.5.0<a class="headerlink" href="#v0-5-0" title="Link to this heading">¶</
962987
</ul>
963988
</div></blockquote>
964989
</section>
965-
<section id="id163">
966-
<h2>0.4.0<a class="headerlink" href="#id163" title="Link to this heading"></a></h2>
990+
<section id="id165">
991+
<h2>0.4.0<a class="headerlink" href="#id165" title="Link to this heading"></a></h2>
967992
<p>21 Jun 2011</p>
968993
<blockquote>
969994
<div><ul class="simple">
@@ -987,17 +1012,17 @@ <h2>0.4.0<a class="headerlink" href="#id163" title="Link to this heading">¶</a>
9871012
</div>
9881013
</div></blockquote>
9891014
</section>
990-
<section id="id166">
991-
<h2>0.3.1<a class="headerlink" href="#id166" title="Link to this heading"></a></h2>
1015+
<section id="id168">
1016+
<h2>0.3.1<a class="headerlink" href="#id168" title="Link to this heading"></a></h2>
9921017
<p>12 Dec 2009</p>
9931018
<blockquote>
9941019
<div><ul class="simple">
9951020
<li><p>Include tests and docs directories in sdist for distribution packages.</p></li>
9961021
</ul>
9971022
</div></blockquote>
9981023
</section>
999-
<section id="id167">
1000-
<h2>0.3.0<a class="headerlink" href="#id167" title="Link to this heading"></a></h2>
1024+
<section id="id169">
1025+
<h2>0.3.0<a class="headerlink" href="#id169" title="Link to this heading"></a></h2>
10011026
<p>11 Dec 2009</p>
10021027
<blockquote>
10031028
<div><ul class="simple">
@@ -1030,8 +1055,8 @@ <h2>0.3.0<a class="headerlink" href="#id167" title="Link to this heading">¶</a>
10301055
</ul>
10311056
</div></blockquote>
10321057
</section>
1033-
<section id="id168">
1034-
<h2>0.2.0<a class="headerlink" href="#id168" title="Link to this heading"></a></h2>
1058+
<section id="id170">
1059+
<h2>0.2.0<a class="headerlink" href="#id170" title="Link to this heading"></a></h2>
10351060
<p>10 Jan 2009</p>
10361061
<blockquote>
10371062
<div><ul class="simple">
@@ -1050,8 +1075,8 @@ <h2>0.2.0<a class="headerlink" href="#id168" title="Link to this heading">¶</a>
10501075
</ul>
10511076
</div></blockquote>
10521077
</section>
1053-
<section id="id169">
1054-
<h2>0.1.0<a class="headerlink" href="#id169" title="Link to this heading"></a></h2>
1078+
<section id="id171">
1079+
<h2>0.1.0<a class="headerlink" href="#id171" title="Link to this heading"></a></h2>
10551080
<p>22 Aug 2008</p>
10561081
<blockquote>
10571082
<div><ul class="simple">
@@ -1063,8 +1088,8 @@ <h2>0.1.0<a class="headerlink" href="#id169" title="Link to this heading">¶</a>
10631088
</ul>
10641089
</div></blockquote>
10651090
</section>
1066-
<section id="id170">
1067-
<h2>0.0.5<a class="headerlink" href="#id170" title="Link to this heading"></a></h2>
1091+
<section id="id172">
1092+
<h2>0.0.5<a class="headerlink" href="#id172" title="Link to this heading"></a></h2>
10681093
<p>22 Jul 2008</p>
10691094
<blockquote>
10701095
<div><ul class="simple">
@@ -1075,16 +1100,16 @@ <h2>0.0.5<a class="headerlink" href="#id170" title="Link to this heading">¶</a>
10751100
</ul>
10761101
</div></blockquote>
10771102
</section>
1078-
<section id="id171">
1079-
<h2>0.0.3<a class="headerlink" href="#id171" title="Link to this heading"></a></h2>
1103+
<section id="id173">
1104+
<h2>0.0.3<a class="headerlink" href="#id173" title="Link to this heading"></a></h2>
10801105
<blockquote>
10811106
<div><ul class="simple">
10821107
<li><p>Convert back to setup.py from pavement.py (issue found by spidaman)</p></li>
10831108
</ul>
10841109
</div></blockquote>
10851110
</section>
1086-
<section id="id172">
1087-
<h2>0.0.2<a class="headerlink" href="#id172" title="Link to this heading"></a></h2>
1111+
<section id="id174">
1112+
<h2>0.0.2<a class="headerlink" href="#id174" title="Link to this heading"></a></h2>
10881113
<blockquote>
10891114
<div><ul class="simple">
10901115
<li><p>Handle feedparser’s FeedParserDict</p></li>
@@ -1094,8 +1119,8 @@ <h2>0.0.2<a class="headerlink" href="#id172" title="Link to this heading">¶</a>
10941119
</ul>
10951120
</div></blockquote>
10961121
</section>
1097-
<section id="id173">
1098-
<h2>0.0.1<a class="headerlink" href="#id173" title="Link to this heading"></a></h2>
1122+
<section id="id175">
1123+
<h2>0.0.1<a class="headerlink" href="#id175" title="Link to this heading"></a></h2>
10991124
<blockquote>
11001125
<div><p>Initial release</p>
11011126
</div></blockquote>
@@ -1151,6 +1176,8 @@ <h2>0.0.1<a class="headerlink" href="#id173" title="Link to this heading">¶</a>
11511176
<ul>
11521177
<li><a class="reference internal" href="#">History</a><ul>
11531178
<li><a class="reference internal" href="#upcoming">Upcoming</a></li>
1179+
<li><a class="reference internal" href="#v4-1-1">v4.1.1</a></li>
1180+
<li><a class="reference internal" href="#v4-1-0">v4.1.0</a></li>
11541181
<li><a class="reference internal" href="#v4-0-5">v4.0.5</a></li>
11551182
<li><a class="reference internal" href="#v4-0-4">v4.0.4</a></li>
11561183
<li><a class="reference internal" href="#v4-0-3">v4.0.3</a></li>
@@ -1197,15 +1224,15 @@ <h2>0.0.1<a class="headerlink" href="#id173" title="Link to this heading">¶</a>
11971224
<li><a class="reference internal" href="#v0-6-1">v0.6.1</a></li>
11981225
<li><a class="reference internal" href="#v0-6-0">v0.6.0</a></li>
11991226
<li><a class="reference internal" href="#v0-5-0">v0.5.0</a></li>
1200-
<li><a class="reference internal" href="#id163">0.4.0</a></li>
1201-
<li><a class="reference internal" href="#id166">0.3.1</a></li>
1202-
<li><a class="reference internal" href="#id167">0.3.0</a></li>
1203-
<li><a class="reference internal" href="#id168">0.2.0</a></li>
1204-
<li><a class="reference internal" href="#id169">0.1.0</a></li>
1205-
<li><a class="reference internal" href="#id170">0.0.5</a></li>
1206-
<li><a class="reference internal" href="#id171">0.0.3</a></li>
1207-
<li><a class="reference internal" href="#id172">0.0.2</a></li>
1208-
<li><a class="reference internal" href="#id173">0.0.1</a></li>
1227+
<li><a class="reference internal" href="#id165">0.4.0</a></li>
1228+
<li><a class="reference internal" href="#id168">0.3.1</a></li>
1229+
<li><a class="reference internal" href="#id169">0.3.0</a></li>
1230+
<li><a class="reference internal" href="#id170">0.2.0</a></li>
1231+
<li><a class="reference internal" href="#id171">0.1.0</a></li>
1232+
<li><a class="reference internal" href="#id172">0.0.5</a></li>
1233+
<li><a class="reference internal" href="#id173">0.0.3</a></li>
1234+
<li><a class="reference internal" href="#id174">0.0.2</a></li>
1235+
<li><a class="reference internal" href="#id175">0.0.1</a></li>
12091236
</ul>
12101237
</li>
12111238
</ul>

0 commit comments

Comments
 (0)