
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.
@ucast/core
Advanced tools
This package contains classes and functions that helps to create parsers, conditions AST, interpreters and translators.
npm i @ucast/core
# or
yarn add @ucast/core
# or
pnpm add @ucast/core
Parser is a function that translates conditions from any language into conditions AST. For example, MongoQueryParser
parses MongoQuery into AST which then can be interpreted by JavaScriptInterpreter
that returns a boolean value based on passed in object.
Abstract Syntax Tree of any condition. What is condition?
x > 4
is a condition, x === 4
is a condition as well, { x: { $eq: 4 } }
is a MongoQuery condition.
There are few types of AST nodes that allow us to represent any condition:
x > 4
, x
is a field, 4
is a value and >
is operator$where
operator and in SQL it's EXISTS
).An interpreter is a function that interprets conditions AST in a specific way. For example, it can:
WHERE
statementCombines Parser and Interpreter and returns a factory function:
const parse = (query) => /* to conditions AST */
const interpreter = createInterpreter({ /* condition interpreters */ });
const translate = (query, ...args) => interpreter.bind(null, parse(query));
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on guidelines for contributing
FAQs
git@github.com:stalniy/ucast.git
The npm package @ucast/core receives a total of 0 weekly downloads. As such, @ucast/core popularity was classified as not popular.
We found that @ucast/core 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.