![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.
rarefied-redis-js
Advanced tools
Pure javascript implementations of redis Abstractions. Part of the [Rarefied Redis Project](http://wilkenstein.github.io/rarefied-redis/).
Pure javascript implementations of redis Abstractions. Part of the Rarefied Redis Project.
$ npm install rarefied-redis-js
TODO
All Abstractions are exported by the rarefied_redis object if the Abstraction exists.
All Abstractions are available by requiring rarefied-redis-js
. Example:
var Q = require('q');
var client = require('redis-js').toNodeRedis().toPromiseStyle(Q.defer);
var rarefied_redis = require('rarefied-redis-js');
var scanner = rarefied_redis.RedisScanner.lscanner(client).toPromiseStyle(Q.defer);
client
.rpush('key', 'v1', 'v2')
.then(function () {
return scanner.scan('key', function (range) {
console.log(range);
});
})
.fail(function (err) {
throw err;
})
.done();
// Script will print ['v1', 'v2'] to the console.
Abstractions that have been loaded before the rarefied-redis.js
(or its minified version) will be exported onto the global window
object. Example:
(function () {
var client = window.redismock;
var scanner = window.RedisScanner.lscanner(client);
client.rpush('key', 'v1', 'v2', function () {
scanner.scan('key', function (range) {
console.log(range);
});
});
// Script will print ['v1', 'v2'] to the console.
})();
All contributions welcome! Issues or Pull Requests. For PRs, npm test
, npm run test-phantomjs
, and npm run test-integrations
must
all succeed and test the new code before the PR will be considered.
This project users karma + mocha + chai + redis-js.
To run the full test suite from source, issue the standard npm command:
$ npm test
This will run jshint against all the source files, run the full mocha suite with a coverage report, and finally run a complexity report against all the source files.
To run the mocha tests against an actual redis server instead of in-memory redis-js, issue the following command:
$ npm run test-integrations
This command will substitute the node redis client for the in-memory redis-js client. This command tests against a localhost redis server on port 6379. To test against a different redis server, set REDIS_JS_NODE_REDIS_PORT
, REDIS_JS_NODE_REDIS_HOST
, and REDIS_JS_NODE_REDIS_OPTIONS
as documented in redis-js.
To run the mocha tests within a particular browser using karma, issue the following npm commands:
$ npm run test-phantomjs
$ npm run test-firefox
$ npm run test-chrome
$ npm run test-safari
$ npm run test-opera
$ npm run test-ie
These tests use the various karma-*-launcher projects to launch the browsers. If the browser is not installed on the system, the corresponding test command will print an error and hang.
test-phantomjs is the only test command that does not rely on external dependencies. test-phantomjs will install the latest compatible version of phantomjs in a tmp directory, and use that binary to run the tests.
Creating a test is as easy as adding a new test file in
test/mocha/
. In order for the test to run across different
JavaScript engines, a somewhat specific style is required:
(function() {
var redismock = typeof require === 'function' ? require('redis-js') : window.redismock;
if (typeof chai === 'undefined') {
var chai = typeof require === 'function' ? require('chai') : window.chai;
}
chai.config.includeStack = true;
var expect = chai.expect;
/* Put describe & it blocks here */
}).call(this);
Tests should use the rarefied_redis object to get at the Abstraction. For example:
var RedisReliableMover = typeof require === 'function' ? require('../../rarefied-redis.js').RedisReliableMover : window.RedisReliableMover;
FAQs
Pure javascript implementations of redis Abstractions. Part of the [Rarefied Redis Project](http://wilkenstein.github.io/rarefied-redis/).
The npm package rarefied-redis-js receives a total of 1 weekly downloads. As such, rarefied-redis-js popularity was classified as not popular.
We found that rarefied-redis-js 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.