![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
The name is from random generated Pokémon, between Bulbasaur and Golbat.
This is in-memory quick storage that could be synced to the disk if neaded inside an encrypted file.
WARNING
The current implementation is pretty basic in terms of encryption. So don't put any sensitive data
Install the package with
npm install --save bulbat
Import and use
import { Database } from 'bulbat';
const db = new Database();
const post = {
id: 42,
title: 'Welcome to my blog!',
content: '...'
};
db.collection('posts').insert(post);
db.collection('posts').data.map((post) => {
console.log(post);
});
You could use the Collection only without the need of the
Database
instance:
import { Collection } from 'bulbat'
const posts = new Collection('posts');
posts.insert(/* data */);
posts.data.map((post) => {
console.log(post)
});
The collection provide an reduce
method that could be used to sort or change the content of the collection,
internal state. Right now the only way to make bulk actions to the storage.
import { Collection } from 'bulbat';
const col = new Collection('posts');
// insert some data into the collection
col.reduce((result, post) => {
if (post.status !== 'deleted') {
result.push(post);
}
return result;
});
col.data
// => only posts that are not `deleted`
Collection require to have name
as first argument - this is the minimum requirment. CollectionProps
could be passed to all collections when using the Database
and overwrite/extend for each collections from
the Collection
constructor or as second argument to Database#add
method.
const db = Database({ path: `./db` });
db.add('posts', { path: './posts' });
Encryption, every collection by default will try to store it's state to the disk inside a encrypted file.The file
is locked with default password of '<empty-string>'. You could change this by passing password to all collections
or per collection - you will need to set CollectionProps.password
. Created collection could not change there password (for now).
const db = Database({ password: 'not-qwerty' });
db.add('posts', { password: 'qwerty' }); // will use 'qwerty' for password
db.add('images'); // will use 'not-qwerty' as password
npm install
To start development run:
npm run develop
Other commands:
# to code format the code with prettier
npm run format
# to lint the code for errors with tslint
npm run lint
# to build the project
npm run build
# to run tests
npm run test
# or
npm run test:watch
It's located into the root CHANGELOG.md file
0.0.2
Little patches on how some of the methods are working
Collection#drop
was not clearing properly the storage only removing the file if it was there.Database#collection
will return new Collection without the need to call Database#add
to add to Database.records
Database#add
now is returning the Collection instance so this is valid syntax now:const posts = db.add('posts');
// => this is same as
db.add('posts');
const posts = db.collection('posts');
CollectionProps.dryRun
that will make the collection to run only in memory. All changes will be lost
when the instance is deleted or the process end. No file will be created.FAQs
In-Memory storage that could be synced to encrypted file
We found that bulbat 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.