
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
A relatively simple module that provides a doubly top linked list for your documents. Every change creates a new document, with a link to the old one. All the documents have a link to the newest document. This setup should provide better performance in applications that usually need the newest version.
An example:
require 'mongoid'
require 'mongoid-tll'
class MyDocument
include Mongoid::Document
include Mongoid::TLL
field :data
end
@doc = MyDocument.create(data: "first version")
@doc.data = "second version"
@doc.save
@doc.data
>> "second version"
@doc.prev.data
>> "first version"
A default scope is added to only find the newest versions by default. Use
the scopeless
method to circumvent this.
Other helper methods have been added:
newest
- Returns the newest version of the document.newest?
- Is this the newest version?oldest?
- Is this the oldest (original) version?prev
- Returns the previous version of the document.FAQs
Unknown package
We found that mongoid-tll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.