Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
wikibase-data-model
Advanced tools
JavaScript implementation of the basic Wikibase DataModel entity types and components they are made of
Wikibase DataModel JavaScript is the JavaScript implementation of the basic Wikibase DataModel at the heart of the Wikibase software. As the PHP implementation of the DataModel, this library only implements the basic Item and Property entity types, and the components they are made of.
Wikibase uses this library together with the Wikibase Serialization JavaScript library to deserialize API responses from serialized JSON to actual DataModel objects. These objects can then be consumed and manipulated via convenient getter and setter methods, turned back into JSON via the corresponding serializer, and send back to the API.
index.js
exporting all public data model partsEntity.getFingerprint
Entity.setFingerprint
ClaimGroup
ClaimGroupSet
ClaimList
SnakList.getValidMoveIndices
SnakList.move
SnakList.moveDown
SnakList.moveUp
SnakList.getFilteredSnakList
privateItem.addStatement
Item.removeStatement
Property.addStatement
Property.removeStatement
hash
constructor parameter and a getHash
method to Snak
,
PropertyValueSnak
, PropertySomeValueSnak
, and PropertyNoValueSnak
.Set::toArray
.Fingerprint::setLabel
, setDescription
and setAliases
remove the element when null or an
empty Term or MultiTerm is given.MultiTerm.getTexts
.numeric-id
and entity-type
fields from toJSON
return valueid
field to toJSON
return valuenumeric-id
and entity-type
arguments from EntityId constructorid
argument to EntityId constructorWIKIBASE_DATAMODEL_JAVASCRIPT_VERSION
PHP constant.init.php
now depends on MediaWiki >=1.25.Term
and MultiTerm
do not accept empty language codes any more.GroupableCollection.toArray
and List.toArray
Group.getItemContainer
and setItemContainer
propertyId
parameter from Claim.getQualifiers
.SnakList.getFilteredSnakList
can not be called with null
any more.Group.equals
and the List
, Map
and Set
constructors.Initial release.
FAQs
JavaScript implementation of the basic Wikibase DataModel entity types and components they are made of
The npm package wikibase-data-model receives a total of 0 weekly downloads. As such, wikibase-data-model popularity was classified as not popular.
We found that wikibase-data-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.