1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
Commit Graph

22 Commits

Author SHA1 Message Date
Steven Hartland
a81d9a55bf
chore: update underscore to 1.13.7 (#536)
Update underscore to 1.13.7
2024-11-03 15:54:54 +00:00
Steven Hartland
233dfa4ef0
chore: remove perl, make and local docs. (#476)
Remove the dependencies on perl and make.

inline.pl is replaced by tools/gen-jscore and token/tokenfmt is replaced
by tools/gen-tokens which are both golang text/template utilities.

gen-jscore uses property ordering that matches chromes output ordering
adding missing properties to the Error types.

Local generated documentation have been removed as https://pkg.go.dev/
is more feature rich.

The use of make has been removed as the functionality is now replicated by
standard golang tools go test ./... and go generate ./... as well as integrated
into github actions.
2022-12-05 22:19:34 +00:00
Steven Hartland
026a1d9a9c
chore: lint and naming refactor (#475)
Enable more linters, address the issues and do a major naming refactor
to use golang lower camelCase identifiers for types, functions, methods
and variable names.

Also: 
* Clean up inline generation so it doesn't rely on temporary variables.
* Remove unused functions generated by inline.pl.
2022-12-04 21:49:38 +00:00
Steven Hartland
8d121dcad1
feat(underscore)!: update to v1.13.6 (#470)
Update underscore.js to v1.13.6.

BREAKING CHANGE: This changes the behaviour for the following underscore
functions, please see underscore.js documentation for details.
* .template
* .keys
* .after
* .range
* .reduce
* .reduceRight
* .reduceLeft

Fixes #110
2022-11-29 00:09:10 +00:00
Steven Hartland
7009038f79
fix: linting errors (#441)
Disable new linters which aren't compatible with this code module.

Upgrade github actions to fix caching issues.

Run go mod to bring in new styling.

Remove space on nolint declarations.

Apply all changes to whitespace as required to pass goimports linter.

Only trigger checks on pull_request which works for pulls from other
forks, where as push only works from the same repo.
2022-10-08 00:12:19 +01:00
Iskander (Alex) Sharipov
818f7465f8
fix(underscore): remove unneeded wrapping lambda (#320)
Use func value instead of wrapping lambda

Found using https://go-critic.github.io/overview.html#unlambda-ref
2021-09-27 16:34:54 +01:00
Dmitry Savintsev
b487603abe minor spacing changes for gofmt compliance 2015-02-25 21:48:07 +01:00
Robert Krimen
470b8c3b73 terst
* Update to latest github.com/robertkrimen/terst
* Clean up testing
2014-04-25 22:48:25 -07:00
Robert Krimen
40d01ced6e Add Array.reduceRight (sdgoij) 2013-06-23 15:29:33 +02:00
Robert Krimen
9184233705 Bundle terst dependency (github.com/robertkrimen/terst) 2013-04-15 10:20:34 -07:00
Robert Krimen
de3f9d4592 Prevent slurp of underscore entirely if disabled 2013-02-04 22:10:52 -08:00
Robert Krimen
15aadd333c Upgrade underscore to 1.4.4, including tests 2013-02-04 21:58:47 -08:00
Robert Krimen
20d2e8bba6 gofmt
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
bf38778ba2 Get rid of .import crutch 2012-10-20 15:04:19 -07:00
Robert Krimen
2f89d77d37 Add import line 2012-10-10 17:38:56 -07:00
Robert Krimen
2161cc2cf5 Add Caveat Emptor section 2012-10-10 16:47:01 -07:00
Robert Krimen
49dc256af8 Add README.markdown for registry 2012-10-10 16:17:36 -07:00
Robert Krimen
84b4aee178 Add README for underscore 2012-10-10 16:11:46 -07:00
Robert Krimen
1fd249d119 Add documentation to underscore 2012-10-10 16:07:50 -07:00
Robert Krimen
5958af6914 Add registry package
Automatic inclusion of source on import
2012-10-10 15:46:10 -07:00
Robert Krimen
0b82701409 Add documentation to underscore.go 2012-10-10 15:06:15 -07:00
Robert Krimen
f8a0d426f2 Move underscore into otto/underscore 2012-10-10 14:58:35 -07:00