GithubHelp home page GithubHelp logo

Comments (6)

kitsonk avatar kitsonk commented on June 16, 2024 1

Now we will need to refactor our previous projects because of this update

Yeah, that is why breaking changes are breaking changes, but previous versions are still available. 🤯

from oak.

kitsonk avatar kitsonk commented on June 16, 2024 1

Fixed in 43de84a

from oak.

kitsonk avatar kitsonk commented on June 16, 2024

It is the very first point of the release notes listed as:

  • feat: align request body better to Fetch API (bb996fe)

    BREAKING CHANGE Previous versions of oak had a request body API that was
    fairly convoluted as oak evolved from the early days of Deno where there
    wasn't a built in APIs for handling HTTP requests. The Fetch API Request and
    Response have become the standard almost everywhere and make it easy to get
    ahold of a request body in many forms.

    Inspired by this the ctx.request.body aligns to this API for the most part,
    but also still retains some of the advantages that oak provided like providing
    a ctx.request.body.type to help figure out what sort of body you are looking
    at as well as support for ctx.request.body.form().

    This also leverages native Fetch API where possible which resolved a lot of
    issues with decoding multi-part forms. This does mean files that are uploaded
    to oak become web standard Files that are entries in FormData. This means
    multipart.ts has been removed from oak and the

Inline API documentation was updated as well.

The README needs to be updated.

from oak.

kitsonk avatar kitsonk commented on June 16, 2024

(Also, the release notes/change log list the other breaking changes in 13)

from oak.

vlev1n avatar vlev1n commented on June 16, 2024

Thank you for pointing out the update in the CHANGELOG.md. I apologize for missing that in my initial review. The only change needed is README to ensure it's immediately visible to new users (like me 😂).

Thanks again for your quick response and for maintaining this project!

from oak.

BayoKwendo avatar BayoKwendo commented on June 16, 2024

Now we will need to refactor our previous projects because of this update

from oak.

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.