Merge pull request #4280 from jgonggrijp/prepare-release

Prepare release 1.5.0
This commit is contained in:
Julian Gonggrijp
2023-07-28 18:11:07 +02:00
committed by GitHub
9 changed files with 592 additions and 473 deletions

2
backbone-min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
// Backbone.js 1.4.1
// Backbone.js 1.5.0
// (c) 2010-2022 Jeremy Ashkenas and DocumentCloud
// Backbone may be freely distributed under the MIT license.
@@ -44,7 +44,7 @@
var slice = Array.prototype.slice;
// Current version of the library. Keep in sync with `package.json`.
Backbone.VERSION = '1.4.1';
Backbone.VERSION = '1.5.0';
// For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
// the `$` variable.

File diff suppressed because it is too large Load Diff

View File

@@ -356,7 +356,7 @@ have an id of its own.</p>
</div>
<p>localSync delegate to the model or collections
<em>localStorage</em> property, which should be an instance of <code>Store</code>.
window.Store.sync and Backbone.localSync is deprectated, use Backbone.LocalStorage.sync instead</p>
window.Store.sync and Backbone.localSync is deprecated, use Backbone.LocalStorage.sync instead</p>
</div>

View File

@@ -300,7 +300,7 @@
<div id="sidebar" class="interface">
<a class="toc_title" href="#">
Backbone.js <span class="version">(1.4.1)</span>
Backbone.js <span class="version">(1.5.0)</span>
</a>
<ul class="toc_section">
<li>&raquo; <a href="http://github.com/jashkenas/backbone">GitHub Repository</a></li>
@@ -608,11 +608,11 @@
<table>
<tr>
<td><a class="punch" href="backbone.js">Development Version (1.4.1)</a></td>
<td><a class="punch" href="backbone.js">Development Version (1.5.0)</a></td>
<td class="text"><i>72kb, Full source, tons of comments</i></td>
</tr>
<tr>
<td><a class="punch" href="backbone-min.js">Production Version (1.4.1)</a></td>
<td><a class="punch" href="backbone-min.js">Production Version (1.5.0)</a></td>
<td class="text" style="line-height: 16px;">
<i>7.9kb, Packed and gzipped</i><br />
<small>(<a href="backbone-min.map">Source Map</a>)</small>
@@ -4501,6 +4501,44 @@ ActiveRecord::Base.include_root_in_json = false
<h2 id="changelog">Change Log</h2>
<b class="header" id="1.5.0">1.5.0</b> &mdash; <small><i>Jul. 28, 2023</i></small>
&mdash; <a href="https://github.com/jashkenas/backbone/compare/1.4.1...1.5.0">Diff</a>
&mdash; <a href="https://cdn.statically.io/gh/jashkenas/backbone/1.5.0/index.html">Docs</a>
<br />
<ul style="margin-top: 5px;">
<li>
Added a <tt>trailingSlash</tt> option to the
<tt>Backbone.history.start</tt> method. When this option is
<tt>true</tt>, the trailing slash of the <tt>root</tt> is always
retained in the route, even if the path segment of the current URL is
empty.
</li>
<li>
Fixed a bug that caused collection <tt>add</tt> events to include an
irrelevant <tt>options.index</tt> if other models were removed during
the same call to <tt>Collection.set</tt>.
</li>
<li>
Fixed a corner case where a collection would not forward
the <tt>error</tt> event if <tt>Collection.create</tt> was invoked
with <tt>{wait: true}</tt>.
</li>
<li>
Adapted CoffeeScript Model test to CoffeeScript version 2.
</li>
<li>
Added a security policy and a code of conduct.
</li>
<li>
Added a <tt>.editorconfig</tt> to the project root in order to promote
consistent whitespace handling across editors.
</li>
<li>
Many clarifications, corrections and refinements to the documentation,
as well as some code comments.
</li>
</ul>
<b class="header" id="1.4.1">1.4.1</b> &mdash; <small><i>Feb. 26, 2022</i></small>
&mdash; <a href="https://github.com/jashkenas/backbone/compare/1.4.0...1.4.1">Diff</a>
&mdash; <a href="https://cdn.statically.io/gh/jashkenas/backbone/1.4.1/index.html">Docs</a>

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "backbone",
"version": "1.4.1",
"version": "1.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "backbone",
"version": "1.4.1",
"version": "1.5.0",
"license": "MIT",
"dependencies": {
"underscore": ">=1.8.3"

View File

@@ -36,7 +36,7 @@
"prepublishOnly": "npm run test && npm run build && npm run alias-sourcemap && npm run doc"
},
"main": "backbone.js",
"version": "1.4.1",
"version": "1.5.0",
"license": "MIT",
"repository": {
"type": "git",