Jaime Pillora

Results 323 comments of Jaime Pillora

+1 to thin core Disclaimer: I'm a LevelUP/DOWN newbie. Just listening to the NodeUp podcast, seeing as you're all here... **What about using the plugin style `connect` uses** So: ```...

Also to address @dominictarr s points: - prehooks (intercept a mutation [batch, put, del]) - `use` higher up the plugin stack - posthooks (intercept a mutation callback) - `use` lower...

Right, but instead passing all data through one function and saying `method === 'put'`, wouldn't it be faster to call an exported `put` function?

What about: ``` javascript exports.put = function (key, value, next) { key = 'foo'; next(key, value); } ``` Where the params for next would mirror the args of the function,...

Maybe a special case for error ? using: ``` next(new Error(...)); ``` Or maintain node style and: ``` next(null, key, value); ```

@rvagg ah quite similar indeed. Though by going with the `connect` style, plugin precedence will be much clearer, and also it (kind-of) places the monkey patching into the hands of...

Could still be redone > Major version zero (0.y.z) is for initial development. Anything may change at any time. **The public API should not be considered stable**. > http://semver.org/ :wink:

Fair enough, I haven't been through all the use-cases yet and the connect-style of plugins may be inadequate, though when I find some time, I'll temper my idea with some...

No worries Mick, have a good break! On Fri, 23 Dec 2022 at 6:58 pm MickMake ***@***.***> wrote: > Had to shift to v3.0.4 - not enough time before Christmas!...

From a go module directory go install is equivalent to go build -o $GOPATH/bin/ From outside a go module, you need the version go install ***@***.*** (or v3xxxx tag) On...