Coder Social home page Coder Social logo

debounce's People

Contributors

bep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

debounce's Issues

API break in v1.2.0

debounce's New function changed its signature. This release was tagged as a semver'd v1 release but this signature change is API incompatible. This API change should have been tagged as v2.0.0.

Dependency managers (eg dep / go modules) may choose upgrade debounce from v1.1.0 to v1.2.0. Code that relies on the v1.1.0's New will now fail to compile.

An example break is with Hugo. Hugo v0.54.0 depends on debounce and was released with debounce v1.1.0. This works fine if I start a project and install Hugo.

tristan@dashie:~/go/src/example.com/foo$ go version
go version go1.12.1 linux/amd64
tristan@dashie:~/go/src/example.com/foo$ export GO111MODULE=on
tristan@dashie:~/go/src/example.com/foo$ go mod init
go: creating new go.mod: module example.com/foo
tristan@dashie:~/go/src/example.com/foo$ go run github.com/gohugoio/hugo
Total in 0 ms
Error: Error building site: open /home/tristan/go/src/example.com/foo/content: no such file or directory
exit status 255

But if I update dependencies, debounce v1.2.0 will come in and Hugo breaks.

tristan@dashie:~/go/src/example.com/foo$ go get -u github.com/bep/debounce
tristan@dashie:~/go/src/example.com/foo$ go run github.com/gohugoio/hugo
# github.com/gohugoio/hugo/commands
../../../pkg/mod/github.com/gohugoio/[email protected]/commands/commandeer.go:146:26: assignment mismatch: 3 variables but debounce.New returns 1 values

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.