← expressjs/express

CODEFOSSIL · express

app.use

method in lib/application.js:190 · Born 2011-10-07 (DERIVED, confidence 1.00)

15years old
27changes
3fixes
12authors
77callers
2012201320142015201620172018201920202021202220232024202520262011-11-09 43d9f6e tweak res.redirect() mount route logic2011-11-24 1334a74 misc refactoring2011-11-24 aab08d7 Removed implementation of app.mounted(callback)2011-11-24 b6611c8 Added: emit "mount" event on the app being mounted2011-11-24 5d593f2 .parent tests2011-11-24 87b991c removed "root" setting2011-12-06 17a831e app.path()2012-02-09 2a40571 Added DEBUG=express:application support2012-04-02 18fa2c9 removed debug() for .use()2012-04-26 58d522d restore req/res proto2012-10-27 dadf57c remove unused variables2012-11-08 534fbdb delete unused variables2013-06-11 a3c9eac move .app to req's & res's prototypes2014-02-03 f41d09a remove app.router and refactor middleware processing2014-07-11 1c3bd36 Support non-string path in app.use(path, fn)2014-07-11 997a558 Accept multiple callbacks to app.use()2014-07-13 3e32721 Fix subapp.mountpath regression for app.use(subapp)2014-08-06 17cea29 Support mounted app as any argument to app.use()2014-09-12 cf41a8f Fix app.use to accept array of middleware without path2014-09-18 3c1a964 Fix regression for empty string path in app.use2014-10-23 dfa7ee4 Pass context to .forEach instead of closure2014-11-07 509ebb1 Add app.router reference back2017-02-23 6022567 Use setprototypeof module to replace __proto__ setting2017-04-01 c087a45 Fix typo in variable name setPrototypeOf2017-09-28 2df1ad2 Improve error messages when non-function provided as middleware2024-08-01 d106bf5 Use Array.flat instead of array-flatten (#5677)2024-10-22 8cb53ea refactor: Remove Object.setPrototypeOf polyfill (#6081)2011-10-07 667ed6f using connect.proto.use
Every commit that changed it, 2011-10-07 – 2024-10-22. Raised orange dots are fixes.
  1. Changed refactor: Remove Object.setPrototypeOf polyfill (#6081)

    8cb53ea · Phillip Barta

  2. Changed Use Array.flat instead of array-flatten (#5677)

    d106bf5 · Mick A.

  3. Changed Improve error messages when non-function provided as middleware

    2df1ad2 · Hrvoje Šimić

  4. Changed Fix typo in variable name setPrototypeOf

    c087a45 · asaf david

  5. Changed Use setprototypeof module to replace __proto__ setting

    6022567 · Douglas Christopher Wilson

  6. Changed Add app.router reference back

    509ebb1 · Douglas Christopher Wilson

  7. Changed Pass context to .forEach instead of closure

    dfa7ee4 · lemmy

  8. Changed Fix regression for empty string path in app.use

    3c1a964 · Douglas Christopher Wilson fix · INFERRED

  9. Changed Fix app.use to accept array of middleware without path

    cf41a8f · Douglas Christopher Wilson fix · INFERRED

  10. Changed Support mounted app as any argument to app.use()

    17cea29 · Fabien Franzen

  11. Changed Fix subapp.mountpath regression for app.use(subapp)

    3e32721 · Douglas Christopher Wilson fix · INFERRED

  12. Changed Accept multiple callbacks to app.use()

    997a558 · Douglas Christopher Wilson

  13. Changed Support non-string path in app.use(path, fn)

    1c3bd36 · Douglas Christopher Wilson

  14. Changed remove app.router and refactor middleware processing

    f41d09a · Roman Shtylman

  15. Changed move .app to req's & res's prototypes

    a3c9eac · Max Melentiev

  16. Changed delete unused variables

    534fbdb · Vitaly

  17. Changed remove unused variables

    dadf57c · Roman Shtylman

  18. Changed restore req/res proto

    58d522d · TJ Holowaychuk

  19. Changed removed debug() for .use()

    18fa2c9 · TJ Holowaychuk

  20. Changed Added DEBUG=express:application support

    2a40571 · Tj Holowaychuk

  21. Changed app.path()

    17a831e · Tj Holowaychuk

  22. Changed removed "root" setting

    87b991c · Tj Holowaychuk

  23. Changed .parent tests

    5d593f2 · Tj Holowaychuk

  24. Changed Added: emit "mount" event on the app being mounted

    b6611c8 · Tj Holowaychuk

  25. Changed Removed implementation of app.mounted(callback)

    aab08d7 · Tj Holowaychuk

  26. Changed misc refactoring

    1334a74 · Tj Holowaychuk

  27. Changed tweak res.redirect() mount route logic

    43d9f6e · Tj Holowaychuk

  28. Born using connect.proto.use

    667ed6f · Tj Holowaychuk