![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A super minimal and highly extensible modeling library. Wadofgum models use pure functions to work with the state of an object.
Wadofgum by itself doesn't do much, but with extensions, it can manage the state of an object with schemas, processors, etc.
The basic form of wadofgum is essentially just an object with a few additions to simplify using it as the base for a more robust modeling system.
const Wadofgum = require('wadofgum');
const Model = new Wadofgum();
The base class and all classes derived from it contain a capabilities
property, which is a Set
containing the names of capabilities that have been added to your class. By default, this set is empty. It is intended to be added to when loading a mixin.
For example:
const Wadofgum = require('wadofgum');
Wadofgum.capabilities.add('my_cap');
A mixin is simply a function that accepts a base class as a parameter, performs some manipulation of it, and returns a new class:
const Wadofgum = require('wadofgum');
let myMixin = function (baseClass) {
class myModel extends baseClass {
static myMethod() {
console.log('called myMethod');
};
}
myModel.capabilities.add('myMethod');
return myModel;
};
class Model extends Wadofgum.mixin(myMixin) {};
Model.myMethod(); // 'called myMethod'
Model.capabilities.has('myMethod'); // true
Note: extensions that want to process their options should add a getter and setter for them, and set the value in .meta
.
FAQs
simple highly extensible es6 models
The npm package wadofgum receives a total of 0 weekly downloads. As such, wadofgum popularity was classified as not popular.
We found that wadofgum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.