clipboard-text
clipboard-text copied to clipboard
chore(deps): update dependency tsup to v8
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
tsup (source) | ^4.14.0 -> ^8.3.0 |
Release Notes
egoist/tsup (tsup)
v8.3.0
Bug Fixes
Features
- add support for
cts
andmts
config files (#1178) (ec811b3) - add support for async
injectStyle
(#1193) (f25a9db)
v8.2.4
Bug Fixes
v8.2.3
v8.2.2
v8.2.1
v8.2.0
v8.1.2
v8.1.1
v8.1.0
Features
v8.0.2
Bug Fixes
v8.0.1
Bug Fixes
- dts: ensure chunks conform to bundle format (#1034) (f83baf8)
-
experimental-dts: make
--experimental-dts
to be compatible with--clean
(#1041) (8c26e63) - experimental-dts: only include exported declarations (#1039) (731f43f)
v8.0.0
Bug Fixes
Features
- add experimental dts rollup using @microsoft/api-extractor (#983) (61fc06c)
BREAKING CHANGES
- Drop node < 18
v7.3.0
Bug Fixes
- add newline after cjsInterop (b749a27), closes #1022
- process not found on windows (#1013) (690af7b)
Features
v7.2.0
Bug Fixes
Features
v7.1.0
Features
v7.0.0
Bug Fixes
- external: match root paths on unix-like and windows (#891) (cfa6bba)
- prefix terser log with name (#899) (2f41663)
- preserve top-level when running terser for IIFE (#900) (2c0435a)
- Remove SWC and Terser minification clash (#881) (23e25cd)
- Update docs domain in schema.json (#901) (a036242)
Features
- require nodejs 16 or above (45832d9)
- support svelte-preprocess (#906) (3606e45)
- Update esbuild version to latest for keeping unknown directives during bundle (#925) (e2e70e8)
BREAKING CHANGES
- require nodejs 16 or above
- update esbuild to 0.18
v6.7.0
Features
- add function type for options.injectStyle (#855) (01169b3)
- support typescript 5.0 (#859) (3e15867)
v6.6.3
Bug Fixes
- raise node engine requirement to 14.18 (#832) (49cde79), closes #825
- upgrade rollup-plugin-dts for better watch mode support (#836) (2ad00aa)
v6.6.2
Bug Fixes
- upgrade tsup (a4df971)
v6.6.1
Bug Fixes
v6.6.0
Bug Fixes
- add home page to package.json (#817) (2e73ca9)
- clean d.ts files if "dts" option is false (#747) (b107de0)
- default exports not working on CJS + treeshake: true (#815) (14ad4bd)
- search postcss config from current work dir (#773) (78432e2)
- use postMessage instead of console in worker thread (#779) (4cb1bc2)
Features
- Bump esbuild 0.15 -> 0.16 (#805) (904e07a)
- Minify with terser (#789) (fdd4dfa), closes #742
- Provide JSON Schema (#763) (31b2e72)
- types: allow autocomplete for target (#809) (398ae15)
- update rollup-plugin-dts to support custom tsconfig and preserve export {} for file that have no exports (#807) (4154e05)
- upgrade esbuild 0.16 -> 0.17 (30ff79d)
v6.5.0
Bug Fixes
Features
- add
--publicDir [dir]
flag (3da1c00)
v6.4.0
Bug Fixes
- ensure setContext before run buildStarted (#758) (44d3d47)
- update bundle-require, closes #719 (6cbbea1)
- use rollup v3, closes #749 (9ce5c13)
Features
- rebuild when package.json dependencies changed (#759) (d4b317b)
- respect target config in tsconfig.json (#757) (906f124)
v6.3.0
Bug Fixes
- Configure Rollup's external to support subpaths too (#722) (2f9d370)
- ignore rollup warning if silent is true (#707) (fb248e4)
- respect noExternal option with Tsup node (#720) (bb2309a)
- types: Add typing for platform: 'neutral' (#713) (9488ac0)
- use loader from config for postcss (#744) (48b3381)
Features
v6.2.3
Bug Fixes
- deps: update bundle-require, fix #695 (d074dd9)
- pass globalName to rollup for tree-shaking iife build (#692) (900a260)
- respect exit code from onSuccess process, closes #697 (dd9ef53)
v6.2.2
Bug Fixes
- deps: upgrade esbuild to 0.15, resolves #690 (c3dc8d8)
- don't transform to cjs twice, resolves #675 (7000c8b)
- make --treeshake work with hashbang (c06b5e1)
v6.2.1
Bug Fixes
v6.2.0
Bug Fixes
- actually trigger rebuild when watched files change (135ff39)
Features
- allow onSuccess callback in tsup config file (#657) (2087907)
- improve minification for
--target es5
(#664) (34df1da) - optimize tsconfig.json loading (#660) (407cec6)
v6.1.3
Bug Fixes
v6.1.2
Bug Fixes
v6.1.1
Features
-
cli: add
--tsconfig
flag to accept custom tsconfig path (#652) (58d0145) - minor: use shell option for complex commands in onSuccess (#649) (be48b8b)
v6.1.0
Bug Fixes
- allow
format
to be a string in config file (0a96985) - ignore esbuild warning if silent is true (#643) (36e2199)
Features
- allow to use an object as entry with
--entry
flag (33a7c5f) - new option
outExtension
(b9cd8d5) - support custom config file with
--config
flag (90f2d1a)
v6.0.1
Bug Fixes
- add missing
tsup-node
command (a175339)
v6.0.0
Upgrade guide
-
shims
option isfalse
by default: If you're dual-publishing (i.e.--format esm,cjs
) and using platform specific API likeimport.meta.url
,__dirname
and__filename
, you need to manually enable--shims
flag now, becauseimport.meta.url
won't work in acjs
module, and__dirname
,__filename
won't work in anesm
module. -
target
option is nownode14
by default: previously it wasnode12
, the minimal node version that tsup can run in is also changed tonode14
New Features
- New
treeshake
option: You can use Rollup for tree-shaking now, read more https://tsup.egoist.sh/#tree-shaking
v5.12.9
Bug Fixes
Features
v5.12.8
Bug Fixes
v5.12.7
Bug Fixes
- define a build-time constant called
TSUP_FORMAT
(f4a56ed) - resolve to package.json only if tsup key exists (#622) (67eea53)
v5.12.6
Bug Fixes
v5.12.5
Bug Fixes
v5.12.4
Bug Fixes
- make sure
sources
are relative path in sourcemap, closes #603 (637ec28) - reject promise with an error (401e204)
v5.12.3
Bug Fixes
v5.12.2
Bug Fixes
v5.12.1
Bug Fixes
v5.12.0
Bug Fixes
- exclude
banner
andfooter
in the options for rollup (4cc7ea7) - unlink the outDir twice will report an error (#569) (5bd6819)
Features
- allow
banner
andfooter
to a function (2521e9f)
v5.11.13
Bug Fixes
v5.11.12
Bug Fixes
- node 12.20.0 compatibility (b8c51f4)
v5.11.11
Bug Fixes
- plugins can't be pased to the worker (b26ea64)
v5.11.10
Bug Fixes
- remove --inlineDynamicImports (it's never used) (ce15069)
- support multiple targets (#525) (2a42a02)
v5.11.9
Bug Fixes
- watch mode: buildDependencies lost after build failure (#504) (40951ec)
- dts: apply required defaults to rollup-plugin-dts, closes #509 (6c44f3d)
v5.11.8
Bug Fixes
v5.11.7
Bug Fixes
v5.11.6
Bug Fixes
v5.11.5
Bug Fixes
v5.11.4
Bug Fixes
v5.11.3
Bug Fixes
- add .map suffix to sourcemap comment (c0ffb68)
v5.11.2
Bug Fixes
v5.11.1
Bug Fixes
v5.11.0
Bug Fixes
- now cjs shims should only be injected when it's actually used (a6e06e8)
- show a warning if
@swc/core
was not installed (213ac91) - potentially fixed sourcemap issue if you are using cjs format with
--splitting
Features
- add bundle size reporter (5edf9a8)
- allow to disable cjs/esm shims (edc92e4)
- experimental plugin system (#486) (524470c)
- Simple CSS injection support (#483) (798f446)
- upgrade esbuild to 0.14 (7f2660c)
v5.10.3
Bug Fixes
-
types: build types for
src/index.ts
only (ae30b68)
v5.10.2
Bug Fixes
- missing types in previous release (8d8abfe)
v5.10.1
Bug Fixes
- only use esm shim for node platform (#475) (29dcb8e)
- Preserve usused imports when esbuild transforms ts in svelte (#476) (1056575)
- shim
__dirname
,__filename
in esm bundle (d0870dd) -
svelte: handle
lang="ts"
(ab5829d)
v5.10.0
Features
- add
dts.banner
anddts.footer
options (557fcae) - add
noExternal
option (f7ed948) - load tsup config in parent directory until it reaches root, closes #378 (325b254)
- support native
.node
files, closes #303 (8cadbb1) - use swc to support decorator metadata (531a05e)
v5.9.2
Bug Fixes
v5.9.1
Bug Fixes
- use
bundle-require
to bundletsup.config.ts
(3aba009) - windows: normalize path in watcher (#466) (9d4d3d7)
v5.9.0
Features
- add
--dts-only
flag to emit declarations only (2d4f6b0) - watch: only trigger rebuild when the changed file is actually imported (88875e6)
v5.8.1
Bug Fixes
- bundle svelte without styles (#464) (3fb9b8e)
- windows: support backslash in cli arguments (#463) (8c8f19f)
v5.8.0
Features
- custom tsconfig and allow multpile tsup config (555c535)
v5.7.4
Bug Fixes
v5.7.3
Features
v5.7.2
Bug Fixes
- resolve
module
field beforemain
field (7bc02d7)
v5.7.1
Bug Fixes
- dts: use real path (d079b9b)
v5.7.0
Features
v5.6.3
Bug Fixes
- do not use
preserveSymlinks: true
when bundling dts file (112fbf6)
v5.6.2
Bug Fixes
- Revert "fix: do not use
preserveSymlinks: true
when bundling dts file" (e487ffe)
v5.6.1
Bug Fixes
- do not use
preserveSymlinks: true
when bundling dts file (5697b20)
v5.6.0
Features
- add
footer
andbanner
options, closes #451 (1fa05c3) - allow to extend esbuild options via tsup options (1f85660)
v5.5.0
Features
v5.4.4
Bug Fixes
- regression: fix declaration file path with a single entrypoint (15c82f5)
v5.4.3
Bug Fixes
v5.4.2
Bug Fixes
v5.4.1
Bug Fixes
v5.4.0
Features
v5.3.0
Features
v5.2.1
Bug Fixes
- modules should not be externalized in iife format (f29ec8f)
v5.2.0
Features
v5.1.0
Features
v5.0.0
Bug Fixes
BREAKING CHANGES
- Code splitting now only works for esm format (default output format is
cjs
), code splitting with cjs format is not supported by esbuild, and our workaround is kinda buggy, so we reverted that decision.
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.