Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Easy querying for Horizon and React
Example
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import { createDevTools } from './devTools'
import { Provider, connect, live } from 'hzql'
let root = document.getElementById('root')
let DevTools = createDevTools(horizon)
class RawApp extends Component {
constructor (props) {
super(props)
this.state = { message: '' }
this.handleInput = this.handleInput.bind(this)
this.handleSubmit = this.handleSubmit.bind(this)
}
handleInput (e) {
this.setState({
message: e.target.value
})
}
handleSubmit () {
this.props.submitPost(this.state.message)
}
render () {
return <div>
<h1>Posts</h1>
{!this.props.posts__loaded
? 'Loading...'
: this.props.posts.map(p => <li key={p.time.toISOString()}>{p.message} - <small>{p.time.toISOString()}</small></li>)}
<div>
<h1>Submit Post</h1>
<input type='text' value={this.state.message} onChange={this.handleInput} />
<button onClick={this.handleSubmit}>Submit</button>
</div>
</div>
}
}
const App = connect({
posts: live(_ => _('posts').order('time').limit(5)),
submitPost: _ => message => _('posts').insert({ message, time: new Date })
})(RawApp)
ReactDOM.render(<div>
<Provider horizon={horizon}>
<App />
</Provider>
<DevTools />
</div>, root)
FAQs
Easy querying for Horizon and React
The npm package hzql receives a total of 5 weekly downloads. As such, hzql popularity was classified as not popular.
We found that hzql 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.