Giter Site home page Giter Site logo

BC break for v1.1.0 about bitcoin-lib-php HOT 12 CLOSED

afk11 avatar afk11 commented on August 18, 2024
BC break for v1.1.0

from bitcoin-lib-php.

Comments (12)

rubensayshi avatar rubensayshi commented on August 18, 2024

actual PR for using ints instead of floats; #58

from bitcoin-lib-php.

rubensayshi avatar rubensayshi commented on August 18, 2024

also I'd like to go and replace most places where we return false and throw exceptions.

and maybe add a custom exception class instead of \Exception?

from bitcoin-lib-php.

rubensayshi avatar rubensayshi commented on August 18, 2024

maybe you can make a v1.1 branch and already merge the stuff that's gonna go in there, then we can do PRs onto that instead of onto master and have less conflicts in the end?

from bitcoin-lib-php.

btcdrak avatar btcdrak commented on August 18, 2024

well the right thing to do is create a 1.0 branch (dont use v prefix for branches) so we can maintain 1.0.x and the new stuff goes into master.

from bitcoin-lib-php.

rubensayshi avatar rubensayshi commented on August 18, 2024

okay, so @btcdrak @afk11 you guys agree to add a BitcoinLibException and start throwing it everywhere?

from bitcoin-lib-php.

btcdrak avatar btcdrak commented on August 18, 2024

Generally a custom exception makes no sense. There are plenty semantic ones to choose in PHP.

from bitcoin-lib-php.

rubensayshi avatar rubensayshi commented on August 18, 2024

Okay, but replacing all the silent return false stuff with exceptions you agree with right?

from bitcoin-lib-php.

btcdrak avatar btcdrak commented on August 18, 2024

@rubensayshi Yes: false should only be returned when a function processes something and returns false on valid input. If invalid inputs were received or something unexpected happened, it should always be an exception. This allows errors to bubble up the API. Returning false when something fails is definitely semantically wrong.

from bitcoin-lib-php.

afk11 avatar afk11 commented on August 18, 2024

PR's #59 and #60 bring the library up to date with the latest phpecc commit and should be producing minimal pushdata ops.

I've added the throw exceptions issue to the list of tasks

@btcdrak we have a few releases along v1.0.x already. I'll create a branch called 1.0, tag it as v1.0.6, and when we merge these commits we'll start following 1.1.0

from bitcoin-lib-php.

rubensayshi avatar rubensayshi commented on August 18, 2024

Another PR to throw exceptions as much as possible; #61

from bitcoin-lib-php.

afk11 avatar afk11 commented on August 18, 2024

Nice one! Looks like we have everything we wanted now. I'll merge these now and create one last branch of 1.0.

from bitcoin-lib-php.

afk11 avatar afk11 commented on August 18, 2024

This has been merged and tagged as 1.1.0 https://github.com/Bit-Wasp/bitcoin-lib-php/releases/tag/1.1.0

from bitcoin-lib-php.

Related Issues (20)

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.