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

fix(deps): update dependency @tinyhttp/app to v2 #373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 3, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@tinyhttp/app (source) 1.3.15 -> 2.2.3 age adoption passing confidence

Release Notes

tinyhttp/tinyhttp (@​tinyhttp/app)

v2.2.3

Compare Source

v2.2.2

Compare Source

v2.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/tinyhttp/tinyhttp/compare/[@​tinyhttp/app](https://togithub.com/tinyhttp/app)[@​2](https://togithub.com/2).2.0...[@​tinyhttp/app](https://togithub.com/tinyhttp/app)[@​2](https://togithub.com/2).2.1

v2.2.0: v2.2: New (old) view engine

Compare Source

v.2.2

Features

new View engine

by @​talentlessguy in https://github.com/tinyhttp/tinyhttp/pull/401

View engine was ported from express for cases like multiple view engines and custom View processing. See docs for more info.

App doesn't require a first argument as engine options in a generic anymore. Instead pass engine options to app.engine and res.render.

Example:

import { App } from '@​tinyhttp/app'
import { renderFile, type EtaConfig } from 'eta'
import type { PartialConfig } from 'eta/dist/types/config'

const app = new App()

app.engine('eta', eta.renderFile)

app.use((_, res) => void res.render<PartialConfig>('index.eta', { name: 'Eta' }))

app.listen(3000, () => console.log(`Listening on http://localhost:3000`))
new type: AppConstructor

A constructor type for @tinyhttp/app has been moved into a type for more convenience:

import type { AppConstructor } from '@&#8203;tinyhttp/app'
new App method: app.disabled

Returns if a setting is disabled:

app.disabled('networkExtensions') // true

Bug Fixes

Improvements

  • Cut down total deps of @tinyhttp/app from 25 to 23.
  • Install size of @tinyhttp/app decreased from 692KB to 540KB (22% smaller) by switching from es-mime-types to mime@beta
  • app.set, app.enable and app.disable now have stricter types
  • app.engine supports extensions with and without a dot
  • app.render, res.render and app.engine support passing template engine options as a generic
  • a few es- modules owned by @​talentlessguy are moved to the tinyhttp organization to avoid lock-in and make it easier to maintain

New examples

Full Changelog: https://github.com/tinyhttp/tinyhttp/compare/[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).1.4...[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).2.0

v2.1.4

Compare Source

Full Changelog: https://github.com/tinyhttp/tinyhttp/compare/[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).1.3...[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).1.4

v2.1.3

Compare Source

v2.1.0

Compare Source

Full Changelog: https://github.com/tinyhttp/tinyhttp/compare/[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).0.34...[@&#8203;tinyhttp/app](https://togithub.com/tinyhttp/app)[@&#8203;2](https://togithub.com/2).1.0

v2.0.34

Compare Source

v2.0.33

Compare Source

v2.0.32

Compare Source

v2.0.31

Compare Source

v2.0.29

Compare Source

v2.0.28

Compare Source

v2.0.27

Compare Source

v2.0.26

Compare Source

v2.0.25

Compare Source

v2.0.24

Compare Source

v2.0.23

Compare Source

v2.0.22

Compare Source

v2.0.21

Compare Source

v2.0.20

Compare Source

v2.0.19

Compare Source

v2.0.18

Compare Source

v2.0.17

Compare Source

v2.0.16

Compare Source

v2.0.15

Compare Source

v2.0.13

Compare Source

v2.0.12

Compare Source

v2.0.11

Compare Source

v2.0.10

Compare Source

v2.0.9

Compare Source

v2.0.6

Compare Source

v2.0.5

Compare Source

v2.0.4

Compare Source

v2.0.3

Compare Source

v2.0.2

Compare Source

v2.0.1

Compare Source

v2.0.0: V2: Hello ESM, goodbye CJS

Compare Source

Slide 16_9 - 18

tinyhttp v2 - Hello ESM, goodbye CJS

tinyhttp finally drops all CommonJS outputs and becomes pure ESM. Node.js 10 became EOL so this means all LTS versions starting v12 support the framework. All of the middlewares are also pure ESM now.

Core

  • BREAKING: move to pure ESM
  • fix: Unable to set url prefix for the application (#​249)
  • remove freshnessTesting property because it makes no sense
  • router: align RegexParams types to regexpram
  • fix: console.error triggering in tests
  • don't report error if it is not an Error class instance
  • set proper headers for HEAD requests
  • fix: ETag caching not working (#​272)
  • send: set 304 status on fresh request
  • fix: req.path computed improperly (#​290)
  • fix: router mount order (#​292)
  • fix(send): res.sendFile method forcibly overwrites the HTTP status code with 200

Wares

  • cors: set default allowed headers to content-type (#​257)
  • fix(logger): statusEmoji import in logger (#​271)
  • deprecate @​tinyhttp/session, @​tinyhttp/pug
  • move bot-detector, cookie-parser, jwt, logger, favicon, markdown to separate repos
  • ip-filter, rate-limit: remove type dependency on tinyhttp in wares

Other

  • cli: add project name as package.json name (#​264)

Docs

  • fix typo in couchdb/README.md (#​251)
  • fix broken benchmarks link (#​300)
  • rate-limit: Correct status code typo (#​303)
  • move website to a separate repo

Examples

  • add turbo-http, neo4j (#​269), malibu (#​281), swagger (#​283) examples
  • use ts-node/esm loader for ts example
  • remove aws, babel, next-custom-server, dev-server examples bc of incompatibility with ESM
  • examples cleanup & deps bump

thanks to @​wasd845, @​tbhmens, @​fabiospampinato, @​sbencoding, @​e965, @​n1ru4l, @​paolotiu, @​eltociear, @​sonnyp, @​aral, @​wakeupmh, @​aldy505, @​massivefermion for helping with the project! ❤️❤️❤️


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from ae02ae3 to b151555 Compare October 6, 2021 09:27
@renovate renovate bot changed the title fix(deps): update dependency @tinyhttp/app to v2.0.6 fix(deps): update dependency @tinyhttp/app to v2.0.10 Oct 6, 2021
@renovate renovate bot changed the title fix(deps): update dependency @tinyhttp/app to v2.0.10 fix(deps): update dependency @tinyhttp/app to v2.0.11 Oct 23, 2021
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch 3 times, most recently from 7c6bd55 to 4a2f690 Compare October 28, 2021 17:41
@renovate renovate bot changed the title fix(deps): update dependency @tinyhttp/app to v2.0.11 fix(deps): update dependency @tinyhttp/app to v2.0.12 Oct 28, 2021
@renovate renovate bot changed the title fix(deps): update dependency @tinyhttp/app to v2.0.12 fix(deps): update dependency @tinyhttp/app to v2.0.13 Nov 25, 2021
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 4a2f690 to 86df827 Compare November 25, 2021 11:11
@renovate renovate bot changed the title fix(deps): update dependency @tinyhttp/app to v2.0.13 fix(deps): update dependency @tinyhttp/app to v2 Dec 8, 2021
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 86df827 to 5f43b3e Compare December 8, 2021 20:14
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 5f43b3e to 379f729 Compare December 28, 2021 16:02
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 379f729 to bb97924 Compare January 22, 2022 20:04
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch 2 times, most recently from 1743702 to 6e27480 Compare March 14, 2022 14:34
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 6e27480 to 8501ad3 Compare April 8, 2022 23:53
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 8501ad3 to 3ebe334 Compare June 18, 2022 18:13
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from db48f6a to bfa1922 Compare November 20, 2022 16:50
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from bfa1922 to e0f17cc Compare March 18, 2023 10:12
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from e0f17cc to fe5df9a Compare May 28, 2023 11:12
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from fe5df9a to 6fb2d45 Compare August 4, 2023 12:55
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 6fb2d45 to 43324c3 Compare August 13, 2023 16:25
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from c409ae9 to 8d54a71 Compare October 28, 2023 14:01
@renovate renovate bot force-pushed the renovate/tinyhttp-app-2.x branch from 8d54a71 to ce9c50a Compare January 6, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants