
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@seneca/entity-depend
Advanced tools
Handle dependency relationships on entity verison
ent option of @seneca/entity-history).These can be run interactively with [seneca-repl](senecajs/seneca-repl.
To use in code, call with let out = await seneca.post(msg).
> sys:entity,cmd:save,name:foo,ent:{x:1,y:'Y'} => foo1=out
{ id: <ID>, x: 1, y: 'Y' }
> sys:entity,cmd:save,name:foo,ent:{x:2,y:'YY'} => foo2=out
{ id: <ID>, x: 2, y: 'YY' }
> sys:entity,rig:depend,name:foo,make:child,parent_id:`$.foo1.id` => foo1c1=out
{ id: <ID>, x: 1, y: 'Y' }
Pulls all changes from previous pull point (initially the depend point). Default is to keep child's conflicting changes.
> sys:entity,rig:depend,name:foo,pull:parent,child_id:`$.foo1c1.id` => foo1c1=out
> sys:entity,rig:depend,name:foo,pull:parent,keep:parent,child_id:`$.foo1c1.id`
=> foo1c1=out
Pulls all changes since previous pull point (initially the depend point). Default is to keep parent's conflicting changes.
> sys:entity,rig:depend,name:foo,pull:child,parent_id:`$.foo1.id`,child_id:`$.foo1c1.id`
=> foo1=out
Keep child's conflicting changes:
> sys:entity,rig:depend,name:foo,pull:child,keep:child,parent_id:`$.foo1.id`,child_id:`$.foo1c1.id`
=> foo1=out
Parent to child relationship is one-to-many. Thus pull:child needs both
child_id and parent_id.
> sys:entity,rig:depend,name:foo,pull:child,make:request,parent_id:`$.foo1.id`,child_id:`$.foo1c1.id`
=> pr0=out
List pull requests against child and parent, as provided
> sys:entity,rig:depend,name:foo,list:request,parent_id?,child_id?
Apply a pull request. Same as applying pull operation above.
> sys:entity,rig:depend,name:foo,apply:request,request_id
See which fields are changed in parent and child.
> sys:entity,rig:depend,name:foo,pull-preview:parent,child_id:`$.foo1c1.id` => preview1=out
Pulls all changes from specified version. NOTE: uses entity-history directly
> sys:entity,rig:depend,entity:depend,ent:{name:foo,id:`$.foo1`} => h0=out.items
> sys:entity,rig:depend,name:foo,pull:parent,child_id:`$.foo1c1.id`,
parent_ver_id:`$.h0[0].id` => foo1c1=out
make:childent param as well as top level base,name,id.make:parentFAQs
Handle dependency relationships on entity verison
We found that @seneca/entity-depend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.