ht2-labs / jscommons Goto Github PK
View Code? Open in Web Editor NEWA package of common functions used in our JavaScript applications.
License: MIT License
A package of common functions used in our JavaScript applications.
License: MIT License
On registry https://registry.npmjs.org/
, the "latest" version (v2.13.0) of dependency @types/moment
has the following deprecation notice:
This is a stub types definition for Moment (https://github.com/moment/moment). Moment provides its own type definitions, so you don't need @types/moment installed!
Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.
Please take the actions necessary to rename or substitute this deprecated package and commit to your base branch. If you wish to ignore this deprecation warning and continue using @types/moment
as-is, please add it to your ignoreDeps array in Renovate config before closing this issue, otherwise another issue will be recreated the next time Renovate runs.
It's quite useful to have the logger (Winston.LoggerInstance
) available in the service and repos. Adding this would break the compilation for dependents of jscommons.
This would improve development speed if implemented for memory, knex, and mongo repos since it would provide most of the common logic.
Should also think about:
select
option.type Id = string;
interface Idable {
readonly id: Id;
}
type Model<Record extends Object> = {
readonly [P in keyof (Record & Idable)]: (Record & Idable)[P];
};
type Sort<Record extends Object> = {
readonly [P in keyof Model<Record>]: boolean;
};
type Filter<Record> = Partial<Model<Record>>;
type Member<Opts, Res> = (opts: Opts) => Promise<Res>; // Already defined in JSCommons.
type GetOne<R> = Member<{ id: Id }, Model<R>>;
type GetMany<R> = Member<{ filter: Filter<R>, sort: Sort<R>, cursor: Id, limit: number }, Model<R>[]>;
type Count<R> = Member<{ filter: Filter<R> }, number>;
type Create<R> = Member<{ id: Id, model: R }, Model<R>>;
type Overwrite<R> = Member<{ id: Id, model: R }, Model<R>>;
type Patch<R> = Member<{ id: Id, patch: Partial<R> }, Model<R>>;
type Remove<R> = Member<{ id: Id }, void>;
type SoftRemove<R> = Member<{ id: Id }, void>;
type Restore<R> = Member<{ id: Id }, void>;
// Example.
interface Config<R extends Object> {
readonly data: R;
}
const getOne = <R>({ data }: Config<R>): GetOne<R> =>
async ({ id }) => ({ id, ...data })
interface User {
readonly name: string;
}
const p = getOne<User>({ data: { name: 'bob' } })({ id: '1' });
p.then(console.log.bind(console));
On registry https://registry.npmjs.org/
, the "latest" version (v2.4.4) of dependency @types/winston
has the following deprecation notice:
This is a stub types definition. winston provides its own type definitions, so you do not need this installed.
Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.
Affected package file(s): package.json
If you don't care about this, you can close this issue and not be warned about @types/winston
's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:
"suppressNotifications": ["deprecationWarningIssues"]
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project β¨
Your semantic-release bot π¦π
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop renovations until it is fixed.
Error type: undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.