jhonnymoreira / obbie Goto Github PK
View Code? Open in Web Editor NEWRuby Hash methods in JavaScript as a collection of functions.
License: MIT License
Ruby Hash methods in JavaScript as a collection of functions.
License: MIT License
The current API template for the functions dirties the URL with the type signature of each function.
The URL to compact
is /docs/api.md#compactobject-object--object
. These object-object--object
just makes the URL less friendly.
The current syntax looks like:
## `functionName(argumentName: argumentType) => returnType` Function description (the same as JSDoc) ```javascript import { functionName } from 'obbie' example ```
It would be nice to move those type signatures from the function name to a line before the description, just as the example:
## functionName `functionName :: (argumentName: argumentType) -> returnType` Function description (the same as JSDoc) ```javascript import { functionName } from 'obbie' example ```
This change affects directly how the URL looks like, using compact
as example, it becomes /docs/api.md#compact
. No type signature dirtying the URL!
It would render:
functionName :: (argumentName: argumentType) -> returnType
Function description (the same as JSDoc)
import { functionName } from 'obbie'
example
The old description doesn't match the behavior of JavaScript. The type coercion helps not to break stuff easily, let it be like this. I'm removing the good first issue
and help wanted
.
Object.values()
has a lot of gotchas. Try to keep things as normalized as possible. The Object.values()
coercion of non-object values into object are harmful and could cause inconsistency.
We may need to rethink on how to approach this issue and maybe do some benchmarks.
If there is any question, feel free to ping me.
A readme.md file that explain what this repository is about is a good entry point to new devs. Is nearly impossible to review or give some ideas without know what repository author is purposing.
A good example of readme contains, but is not limited to:
The behavior will change from Ruby to JavaScript, because JavaScript is stricter when handling keys that doesn't exist and has a sequence, so instead of returning null
, it throws a TypeError
. Below, the example of it:
Ruby
{ a: { b: { c: 1 } } }.dig(:a, :d, :c)
#=> nil
JavaScript
dig({ a: { b: { c: 1 } } }, 'a', 'd', 'c')
//=> Uncaught TypeError: Cannot read property 'c' of undefined
The arrow syntax (key => value
) to set key-value pairs on Ruby Hashes can be totally ignored.
Maybe, but just maybe, passing a valid JSON string can be a form of initializing the Obbie
object.
22.5.1
to 22.6.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 9 commits.
14d83ef
feat(rules): add no-commented-out rule (#262)
83ff198
chore: migrate no-jest-import to typescript (#259)
718c08c
chore: upgrade @typescript-eslint
ca2aa27
chore: port lowercase-name to TypeScript (#258)
3df0058
chore(ci): run danger with lts version of node
48e3a59
chore: precompile with babel (#257)
8670804
chore: bump deps
05eb11a
chore: fix lint error
dff6446
docs: link to eslint-plugin-jest-formatting
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
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.