Evan You
f2ea25dc54
refactor(watch): reuse watch types
2024-08-20 16:16:25 +08:00
Rizumu Ayaka
205e5b5e27
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCleanup` ( #9927 )
2024-08-20 08:21:44 +08:00
Kevin Deng 三咲智子
928af5fe2f
refactor(types): enable `isolatedDeclarations` ( #11178 )
2024-08-08 23:05:21 +08:00
Evan You
eaf5455d77
chore: Merge branch 'main' into minor
2024-08-07 18:25:58 +08:00
Yuyao Nie
6c90324870
fix(ssr): ensure content is valid when rendering normal slot ( #11491 )
...
fix #11326
2024-08-07 11:56:00 +08:00
Evan You
56c76a8b05
feat(custom-element): inject child components styles to custom element shadow root ( #11517 )
...
close #4662
close #7941
close #7942
2024-08-05 20:49:28 +08:00
远方os
267093c314
feat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHandle ( #9651 )
2024-08-02 14:41:27 +08:00
Damian Głowala
998dca59f1
feat(types): export `MultiWatchSources` type ( #9563 )
2024-08-02 12:43:22 +08:00
Evan You
d14a11c1cd
feat: lazy hydration strategies for async components ( #11458 )
2024-07-31 12:14:51 +08:00
Evan You
73ef1561f6
feat(runtime-core): useId() ( #11404 )
2024-07-19 18:06:02 +08:00
Evan You
68bb48c04e
refactor: move useTemplateRef file
2024-07-19 10:50:06 +08:00
Evan You
3ba70e49b5
feat: useTemplateRef()
2024-07-17 18:20:23 +08:00
Evan You
26356264d2
chore: Merge branch 'main' into minor
2024-06-14 12:32:28 +02:00
Evan You
df686abb4f
fix(ssr): directive binding.instance should respect exposed during ssr
...
close #7499
close #7502
2024-06-10 17:46:59 +08:00
Tycho
aae2d78875
fix(types/apiWatch): correct type inference for reactive array ( #11036 )
...
close #9416
2024-06-10 16:07:25 +08:00
bqy_fe
189573dcee
feat(types): export more emit related types ( #11017 )
...
Co-authored-by: Evan You <yyx990803@gmail.com>
2024-05-30 11:26:17 +08:00
Evan You
eae0ccb8e0
chore: re-export deprecated component options types
2024-05-03 16:22:13 -07:00
Evan You
c146186396
fix(types): fix compat with generated types that rely on CreateComponentPublicInstance
...
close #10842
2024-04-30 10:09:06 -07:00
Evan You
75c8cf63a1
feat(types): provide internal options for directly using user types in language tools ( #10801 )
2024-04-27 11:48:37 +08:00
Carlos Rodrigues
4cc9ca870c
types(defineComponent): support for GlobalComponents, typed Directives and respect `expose` on defineComponent ( #3399 )
...
close #3367
2024-04-25 16:04:03 +08:00
Evan You
6c74fb07a7
chore: rename and export DefineSetupFnComponent
2024-02-25 23:38:39 +08:00
Evan You
dfd9654665
fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope
2024-01-11 18:30:23 +08:00
Evan You
bceccf9e21
chore(build): rename __NODE_JS__ build flag to __CJS__
2024-01-11 18:24:21 +08:00
Evan You
8fda856a82
refactor: split out useModel implementation and tests
2024-01-11 18:04:47 +08:00
Evan You
a772031ea8
feat(defineModel): support modifiers and transformers
2023-12-26 22:13:04 +08:00
三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
...
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You
38706e4a1e
fix: also export runtime error strings in all cjs builds
2023-12-26 16:32:53 +08:00
Evan You
73ae6adbb1
refactor: adjust warn method treeshaking
2023-12-26 15:26:29 +08:00
Evan You
ee68c525f0
build: avoid exporting setDevTools in global prod build
2023-12-26 11:03:45 +08:00
三咲智子 Kevin Deng
fa4969e7a3
feat(types): export ObjectPlugin and FunctionPlugin types ( #8946 )
...
close #8577
2023-12-11 22:04:56 +08:00
三咲智子 Kevin Deng
096ba81817
feat(types): expose `DefineProps` type
2023-12-09 00:34:28 +08:00
Carlos Rodrigues
bfb856565d
feat(types): provide ComponentInstance type ( #5408 )
2023-12-08 22:24:38 +08:00
Carlos Rodrigues
44135dc95f
feat(types): expose `PublicProps` type ( #2403 )
2023-12-08 22:17:46 +08:00
Fabian Gündel
d42b6ba3f5
feat: MathML support ( #7836 )
...
close #7820
2023-12-08 18:25:01 +08:00
ZHAO Jin-Xiang
fff7b864f4
feat: use enum to replace const enum ( #9261 )
...
close #1228
2023-11-29 12:24:50 +08:00
三咲智子 Kevin Deng
feb2f2edce
feat: export runtime error strings ( #9301 )
...
These strings are used for automatically generating error references in the documentation and should be considered internal. The code-to-string mapping is **not** part of the public API and can change between non-major versions.
They are also exposed only in dev or the esm-bundler builds.
2023-10-27 23:28:40 +09:00
Haoqun Jiang
0a8be4537a
build: use `stripInternal` ( #9379 )
...
Unlike our custom plugin, TypeScript won't automatically remove
re-exports of internal types, so we need to explicitly mark them as
`@internal`.
2023-10-17 21:10:14 +08:00
Evan You
bff63c5498
feat(types): provide ExtractPublicPropTypes utility type
...
ref #5272
close #8168
2023-05-02 11:06:32 +08:00
Eduardo San Martin Morote
5510ce385a
feat: hasInjectionContext() for libraries ( #8111 )
2023-04-20 10:12:18 +08:00
三咲智子 Kevin Deng
14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper ( #8018 )
2023-04-08 12:13:05 +08:00
三咲智子 Kevin Deng
5a2f5d59cf
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option ( #7982 )
2023-04-03 16:49:16 +08:00
Evan You
59e828448e
feat(reactivity): improve support of getter usage in reactivity APIs ( #7997 )
2023-04-02 10:17:51 +08:00
三咲智子 Kevin Deng
bcf5841dde
feat(compiler-sfc): add defineOptions macro ( #5738 )
2023-03-28 10:43:51 +08:00
Evan You
eb0c1e7025
build: remove api-extractor
2023-02-03 15:57:00 +08:00
Evan You
124373db50
wip: isolatedModules + use rollup-plugin-esbuild
2023-02-03 04:30:19 +08:00
Evan You
3a6f5eb0f7
fix(build): ensure BaseTransition functions can be tree-shaken
2023-02-02 21:38:57 +08:00
Evan You
7d0c63ff43
fix(custom-elements): use strict number casting
...
close #4946
close #2598
close #2604
This commit also refactors internal usage of previous loose
implementation of `toNumber` to the stricter version where applicable.
Use of `looseToNumber` is preserved for `v-model.number` modifier to
ensure backwards compatibility and consistency with Vue 2 behavior.
2022-11-14 16:20:12 +08:00
Rudy
e4de623ea7
fix(types): support inferring injected properties in options api ( #6804 )
...
close #3031
close #5931
2022-11-08 01:09:53 -05:00
三咲智子 Kevin Deng
e9172db68b
fix(types): export `Raw` type ( #6380 )
...
fix #7048
2022-11-07 21:03:49 -05:00
Evan You
3cfe5f9fc8
build: include ssrUtils in server-renderer browser build
2022-05-25 13:52:54 +08:00