Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8397957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:54:43+00:00 2026-06-09T20:54:43+00:00

Update: This question is now out of date as the documentation is accurate and

  • 0

Update: This question is now out of date as the documentation is accurate and up to date.

I’ve been exploring the jQuery Deferred/Promise API for a bit and I’m very confused about the differences between pipe() and then() philosophically and in the jQuery documentation. I’ve found that pipe() is just an alias for then() as of jQuery 1.8.

From jQuery source:

// Keep pipe for back-compat
promise.pipe = promise.then;

Yet the documentation is completely different for pipe() and then() as they supposedly have entirely different uses.

Description for then():

Description: Add handlers to be called when the Deferred object is resolved or rejected.

Description for pipe():

Description: Utility method to filter and/or chain Deferreds.

I understand that historically they had slightly different behavior, but in the entirety of the documentation for pipe or the documentation for then, it doesn’t even say that these two functions do the exact same thing now.

So, here’s my two part question:

  1. Why does the documentation between pipe() and then() differ as of jQuery 1.8?
  2. Why does then() return a new deferred object? This behavior is completely undocumented (the docs just say it returns a Deferred, not that it’s a new one). I understand that it has utility in doing so (namely to implement all of pipe()‘s features), but philosophically why is it the case? It’s unnecessary given the description of then() (to attach handlers).

Update

I’ll even go so far as to say the then() docs are misleading and inaccurate:

Since deferred.then returns the deferred object, other methods of the deferred object can be chained to this one, including additional .then() methods.

Maybe it’s just vague, but it implies it returns the deferred object you called then() on for chaining, when in reality it returns an entirely new object….

Update Again

Seems the documentation is simply wrong/out of date! So that answers why the documentation makes no mention of them being the same thing. However, my second question still stands. Is the reason then() returns a new deferred simply so that it and pipe() can be made equivalent?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:54:45+00:00Added an answer on June 9, 2026 at 8:54 pm

    The documentation update for jQuery 1.8 is not online yet.

    According to this recent blog post:

    We’re in the process of updating the API documentation for all the
    changes to 1.8, but for now you can refer back to the changelog in the
    jQuery 1.8 announcement to see what’s changed.

    Update: Yes, then() returns a new Deferred because it is equivalent to pipe() now. I’m pretty confident the documentation update will clarify this soon.

    Further update for completeness: The documentation was recently updated and now says for pipe():

    Deprecation Notice: As of jQuery 1.8, the deferred.pipe() method is deprecated. The deferred.then() method, which replaces it, should
    be used instead.

    And for then():

    Prior to jQuery 1.8, the arguments could be a function or an array of functions.

    […]

    As of jQuery 1.8, the deferred.then() method returns a new promise that can filter the status and values of a deferred through a
    function, replacing the now-deprecated deferred.pipe() method. The
    doneFilter and failFilter functions filter the original deferred’s
    resolved / rejected status and values. The progressFilter function
    filters any calls to the original deferred’s notify or notifyWith
    methods. These filter functions can return a new value to be passed
    along to the promise’s .done() or .fail() callbacks, or they can
    return another observable object (Deferred, Promise, etc) which will
    pass its resolved / rejected status and values to the promise’s
    callbacks. If the filter function used is null, or not specified,
    the promise will be resolved or rejected with the same values as the
    original.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: This question is out of date, but left for informational purposes. Original Question
UPDATE: Facebook's API has changed a lot since this question was posted. This question
I have been following the answer of this question: How to update existing object
I've been using .net MVC for a year or two now, and this question
Update: This question was an epic failure, but here's the working solution. It's based
Update: This question is a duplicate of Are there any programming languages targeting PHP,
Sorry for the double post, I will update this question if I can't get
UPDATE (spoiler): This question is answered (see David Carlisle answere below) and it looks
UPDATE : Since this question is getting some views, I figured I'd better highlight
Update: See the bottom of this question for a C# workaround. Hi there, Consider

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.