Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Empty response support #2191

Merged
merged 100 commits into from
Nov 20, 2024
Merged

Feat: Empty response support #2191

merged 100 commits into from
Nov 20, 2024

Commits on Oct 8, 2024

  1. Changing trigger branches.

    RobinTail committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    42573ae View commit details
    Browse the repository at this point in the history
  2. Prohibit vulnerable versions of express (#2083)

    Changing peer dependencies (breaking)
    RobinTail authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    b911917 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    6c8571e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f200136 View commit details
    Browse the repository at this point in the history
  3. 21.0.0-beta.0

    RobinTail committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    fb5a786 View commit details
    Browse the repository at this point in the history
  4. Activating migration test.

    RobinTail committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    2dd4567 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4c54b45 View commit details
    Browse the repository at this point in the history
  6. Making HTTP server optional (#2086)

    This feature allows to avoid spinning up HTTP server when only HTTPS one
    is needed.
    It should enable best practices in the establishing secure communication
    channel.
    
    Changes to `ServerConfig` type:
    - `server` prop renamed to `http`
    - nested props `jsonParser`, `upload`, `compression`, `rawParser` and
    `beforeRouting` moved to the top level
    - all that included into the automated migration (ESLint rule) for v21
    RobinTail authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    fa2bccf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    62be668 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    99fbd9d View commit details
    Browse the repository at this point in the history
  2. Return generic array of servers (#2100)

    This should ease declaration and enable future improvements like #2099 
    
    Making `createServer()` to return an object having `servers` property
    instead of `httpServer` and `httpsServer`
    RobinTail authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    024411f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0c9777 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8acf93 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    54afdb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43cb643 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ca76bc View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    83ad924 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Configuration menu
    Copy the full SHA
    4066257 View commit details
    Browse the repository at this point in the history
  2. Drop serializer prop (#2122)

    No longer used, #2117
    RobinTail authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    29ce100 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f280e76 View commit details
    Browse the repository at this point in the history
  4. Changelog: 21.0.0 draft.

    RobinTail committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    5cd0c2a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Configuration menu
    Copy the full SHA
    9bbb117 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    953d1cf View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Configuration menu
    Copy the full SHA
    2466375 View commit details
    Browse the repository at this point in the history
  2. Drop originalError property on validation errors (#2139)

    Due to #2137 deprecated
    RobinTail authored Nov 2, 2024
    Configuration menu
    Copy the full SHA
    50165f9 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Configuration menu
    Copy the full SHA
    5f00dc3 View commit details
    Browse the repository at this point in the history
  2. Drop getStatusCodeFromError() (#2148)

    Due to #2144 
    
    - [x] needs a migration script
    RobinTail authored Nov 4, 2024
    Configuration menu
    Copy the full SHA
    9b67d1d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2bc29f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02dc007 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. rm todo.

    RobinTail committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    fcd43b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee2b9ec View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    6c6cbc9 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Configuration menu
    Copy the full SHA
    06a77f9 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. Configuration menu
    Copy the full SHA
    e2286fa View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Making method and methods optional (#2128)

    - Default should be `get`;
    - I'm also thinking to make it optional for `DependsOnMethod` case
    - then the default would be the property of its constructor the endpoint
    assigned to
    - for that, `getMethods()` of Endpoint would return empty (which
    technically it can) or `undefined`, and the decision making on method
    would be delegated to Routing Walker.
    - this, however, deviates from the initial concept and affect such
    features as `testEndpoint` for CORS enabled endpoints, so that it could
    not respond with its allowed methods without routing, OR decetralizing
    the method decision making.
    - the workaround might be moving CORS headers handling into
    `initRouting`
    RobinTail authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    6e868fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c492e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    635f478 View commit details
    Browse the repository at this point in the history
  4. Deprecating v17 (#2162)

    Addressing to v21
    RobinTail authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    0317deb View commit details
    Browse the repository at this point in the history
  5. 21.0.0-beta.2

    RobinTail committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    0e0159c View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    cd422c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Provide universal getLogger() to beforeRouting (#2167)

    Instead of `logger` and `getChildLogger`
    RobinTail authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    bc3db93 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Configuration menu
    Copy the full SHA
    a228dce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8f0906 View commit details
    Browse the repository at this point in the history
  3. Traverse without recursion (#2168)

    Avoiding recursion should decrease memory consumption by replacing the
    utilization of call stack to a stack of entities to process
    
    https://www.nearform.com/insights/tracking-memory-allocation-node-js/
    
    ```
       ✓ Experiment for routing walker (2) 1247ms
         name             hz     min     max    mean     p75     p99    p995    p999     rme  samples
       · current    3,691.20  0.2053  2.7257  0.2709  0.2885  0.3817  0.4519  2.1826  ±1.49%     1846
       · featured  50,253.26  0.0123  5.8032  0.0199  0.0165  0.0423  0.1116  2.7895  ±7.10%    25127   fastest
    ```
    
    Turned out that the performance is mostly affected by `assert(..., new
    Error())` pattern, partially introduced by
    #1371
    RobinTail authored Nov 15, 2024
    Configuration menu
    Copy the full SHA
    bc8e9eb View commit details
    Browse the repository at this point in the history
  4. Performance tuning for onObject zts producer (#2171)

    Discovered during #2168
    RobinTail authored Nov 15, 2024
    Configuration menu
    Copy the full SHA
    9f1e0bf View commit details
    Browse the repository at this point in the history
  5. Revert "Performance tuning for onObject zts producer (#2171)"

    This reverts commit 9f1e0bf.
    RobinTail committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    6d6e330 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dfd9d72 View commit details
    Browse the repository at this point in the history
  7. Addressing performance findings (#2172)

    I wanna put all my recent performance findings into ESLint rules, so
    that I could address them globally later
    
    - Object.assign turned out to be significantly improved in Node 22, but
    it's still faster for extending existing aggregator in a reducer. For
    other cases spread is ok.
    RobinTail authored Nov 15, 2024
    Configuration menu
    Copy the full SHA
    b288b3a View commit details
    Browse the repository at this point in the history
  8. 21.0.0-beta.3

    RobinTail committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    6ae145e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ea41234 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0c3e94f View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. Configuration menu
    Copy the full SHA
    42f30d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af5a7bf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    914f9d0 View commit details
    Browse the repository at this point in the history
  4. Generalising server type (#2174)

    `http.Server | https.Server` —> `net.Server`, common ancestor
    RobinTail authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    a65472f View commit details
    Browse the repository at this point in the history
  5. Revert "Generalising server type (#2174)"

    This reverts commit a65472f.
    RobinTail committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    97b2f5a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8310daf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7cf239f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e1c58d5 View commit details
    Browse the repository at this point in the history
  9. Removing redundant methods array in tests. (#2176)

    Due to #2128 , did not found those lines initially, but found during
    work in #2175
    RobinTail authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    02d1732 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a08a31a View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2024

  1. Configuration menu
    Copy the full SHA
    3f7bf45 View commit details
    Browse the repository at this point in the history
  2. Universal properties for arrays (#2175)

    New attempt for #1536 
    Based on the discussion
    #1193 (reply in thread)
    RobinTail authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    8bbb336 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9589b61 View commit details
    Browse the repository at this point in the history
  4. 21.0.0-beta.4

    RobinTail committed Nov 17, 2024
    Configuration menu
    Copy the full SHA
    ce0df21 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f33c4c8 View commit details
    Browse the repository at this point in the history
  6. Ease DocumentationError constructor (#2185)

    It's publicly exposed, therefore I consider it breaking.
    I wanna make the usage of that error easier.
    RobinTail authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    38bbbd0 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Configuration menu
    Copy the full SHA
    f5bc953 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43eaf2a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2ea1f65 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c3cb2db View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8efed65 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    01f3a78 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2ef3081 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d470398 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c765603 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8aeb90f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    89864cf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6ae3da7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b4a1a79 View commit details
    Browse the repository at this point in the history
  14. Fixes after rebase.

    RobinTail committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    1f982c8 View commit details
    Browse the repository at this point in the history
  15. Fixing the nested route traverse order — FIFO (#2192)

    Related to #2188 
    Affects #2191 — should reduce shifting
    RobinTail authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    f0a5d81 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    297ca78 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    4f6a34b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3956848 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    86d476b View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. Configuration menu
    Copy the full SHA
    b3dd047 View commit details
    Browse the repository at this point in the history
  2. System tests.

    RobinTail committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    f65715a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eba57f1 View commit details
    Browse the repository at this point in the history
  4. Drop Endpoint::getMimeTypes() (#2193)

    needed for #2191 as a better way to handle responses array
    RobinTail authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    035f0e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    705692b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7773153 View commit details
    Browse the repository at this point in the history
  7. Rev: removing helper.

    RobinTail committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    1e08120 View commit details
    Browse the repository at this point in the history
  8. Minor: jsdoc.

    RobinTail committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    d9c50b7 View commit details
    Browse the repository at this point in the history
  9. Organize response normalization (#2194)

    Make it slightly better in v21
    RobinTail authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    48cced2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    51f9be5 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. Configuration menu
    Copy the full SHA
    ee0386b View commit details
    Browse the repository at this point in the history
  2. Changelog: 21.1.0.

    RobinTail committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    ad7ea06 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    178fd23 View commit details
    Browse the repository at this point in the history
  4. 21.1.0-beta.1

    RobinTail committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    cbb5517 View commit details
    Browse the repository at this point in the history