Skip to content

Commit

Permalink
v4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpolletvillard committed Oct 31, 2022
1 parent d5f0f5c commit b52aa61
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 25 deletions.
9 changes: 1 addition & 8 deletions dist/object-model.cjs
@@ -1,4 +1,4 @@
// ObjectModel v4.3.1 - http://objectmodel.js.org
// ObjectModel v4.4.0 - http://objectmodel.js.org
// MIT License - Sylvain Pollet-Villard
const
ObjectProto = Object.prototype,
Expand Down Expand Up @@ -752,13 +752,6 @@ extend(FunctionModel, Model, {
return this
},

extend(newArgs, newReturns) {
const args = this.definition.arguments,
mixedArgs = newArgs.map((a, i) => extendDefinition(i in args ? args[i] : [], newArgs[i])),
mixedReturns = extendDefinition(this.definition.return, newReturns);
return extendModel(new FunctionModel(...mixedArgs).return(mixedReturns), this)
},

[_check](f, path, errors) {
if (!isFunction(f)) stackError(errors, "Function", f, path);
}
Expand Down
9 changes: 1 addition & 8 deletions dist/object-model.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/object-model.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/object-model.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/object-model.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions index.html
Expand Up @@ -148,15 +148,15 @@ <h2>What's inside the box ?</h2>
<li>Constants and private properties based on name conventions</li>
<li>Explicit error messages</li>
<li>Customizable error handlers</li>
<li>all in <strong class="size-gzip">4.11 kB</strong> minified and gzipped,
<li>all in <strong class="size-gzip">4.05 kB</strong> minified and gzipped,
even less when using tree-shaking
</li>
</ul>
</div>

<div id="download">
<h2>Download</h2>
<h3>Current version: v<span class="version">4.3.1</span></h3>
<h3>Current version: v<span class="version">4.4.0</span></h3>
<ul>
<li>
From <a href="https://www.npmjs.com/package/objectmodel" target="_blank" rel="noopener">
Expand All @@ -167,11 +167,11 @@ <h3>Current version: v<span class="version">4.3.1</span></h3>
<a href="http://cdn.pika.dev/objectmodel" rel="noopener">cdn.pika.dev/objectmodel</a>
</li>
<li>Minified <abbr title="ECMAScript module">ESM</abbr> bundle
(<strong class="size-gzip">4.11 kB</strong> gzipped) :
(<strong class="size-gzip">4.05 kB</strong> gzipped) :
<a href="dist/object-model.min.js">object-model.min.js</a>
</li>
<li>Source files :
<a class="link-zip" href="https://github.com/sylvainpolletvillard/ObjectModel/archive/v4.3.1.zip">object-model-4.3.1.zip</a>
<a class="link-zip" href="https://github.com/sylvainpolletvillard/ObjectModel/archive/v4.4.0.zip">object-model-4.4.0.zip</a>
</li>
</ul>

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "objectmodel",
"version": "4.3.1",
"version": "4.4.0",
"description": "Strong Dynamically Typed Object Modeling for JavaScript",
"author": "Sylvain Pollet-Villard",
"license": "MIT",
Expand Down

0 comments on commit b52aa61

Please sign in to comment.