Evan You
bd0f7da2c6
build: add browser builds for @vue/compiler-sfc
5 years ago
Evan You
0bb1f67d12
types(compiler-sfc): expose SFCAsyncStyleCompileOptions
5 years ago
Evan You
d29aefcf99
release: v3.0.0-beta.4
5 years ago
Evan You
ca84f46cd0
chore: add tip about Suspense being experimental
5 years ago
Evan You
ded92f93b4
fix(runtime-core): dynamic component should support falsy values without warning
5 years ago
Carlos Rodrigues
f3a9b516bd
fix(types): make return type of `defineComponent` assignable to `Component` type ( #1032 )
fix #993
5 years ago
Carlos Rodrigues
28b4c317b4
feat(types): expose `ToRefs` type ( #1037 )
5 years ago
Evan You
c9f10be9de
refactor(runtime-core): extract key/ref normalization logic
5 years ago
susiwen8
ad2b940c17
chore: remove unnecessary export ( #1044 ) [ci skip]
5 years ago
Evan You
d7379c7647
fix(runtime-core): fix key/ref resolution for cloneVNode
fix #1041
5 years ago
Evan You
dcf2458fa8
fix(runtime-core): fix dynamic node tracking in dynamic component that resolves to plain elements
fix #1039
5 years ago
Evan You
fa216a0c3a
feat(compiler-sfc): built-in support for css modules
5 years ago
Evan You
20d425fb19
feat(compiler-sfc): add preprocessCustomRequire option
5 years ago
Evan You
2acf3e84b9
feat(reactivity): add triggerRef API
Also make shallowRef assignment behavior consistent with normal ref
5 years ago
underfin
2b19965bcf
fix(slots): compiled slot fallback should be functions ( #1030 )
This avoids it being collected as dynamic children when it's not used.
fix #1021
5 years ago
Evan You
ff4d1fcd81
fix(runtime-core): mixin options that rely on this context should be deferred
Also ensure consistent option apply order with Vue 2, close #1016 , close #1029
5 years ago
Evan You
b0d4df9743
perf(reactivity): ref should not trigger if value did not change
Note: shallowRef will always trigger on assignment because it does not
account for deep mutations
close #1012
5 years ago
Evan You
7d858a9001
test(compiler-core): test dynamic component block
5 years ago
Evan You
7d0ab3392a
fix(compiler-core): dynamic component should always be made blocks
since it can potentially resolve to plain elements
fix #1018
5 years ago
Carlos Rodrigues
0bdd889156
fix(types): fix ref(false) type to Ref<boolean> ( #1028 )
5 years ago
Evan You
e422b8b082
fix(runtime-core): only infer component name for object components
close #1023
5 years ago
Evan You
6fefeafe98
release: v3.0.0-beta.3
5 years ago
Andrew Talbot
cebad64d22
feat(runtime-core): improve warning for extraneous event listeners ( #1005 )
fix #1001
5 years ago
Evan You
dece6102aa
feat(warn): infer anonymous component named based on resolve name
5 years ago
Evan You
0278992f78
fix(warn): fix component name inference in warning trace
5 years ago
Andrew Talbot
054ccecd58
perf(core): use `startsWith` instead of `indexOf` ( #989 )
5 years ago
Evan You
ab844fd169
feat(runtime-core): more specific warning for failed v-on fallthrough
close #1001
5 years ago
Evan You
e954ba21f0
feat(build): provide more specific warnings for runtime compilation
close #1004
5 years ago
Evan You
171cfa404f
fix(runtime-core): should not cast prop value if prop did not change
fix #999
5 years ago
Evan You
36d77f9a9e
refactor(hmr): simplify usage
5 years ago
Evan You
19223f5462
build: remove __BUNLDER__ flag so that HMR is available for all builds
5 years ago
limichange
fa40d1ef3a
refactor(reactivity): simplify if condition ( #1002 )
5 years ago
Evan You
218e6e1667
build: adjust build formats
- Rename `esm` to `esm-browser`
- Add runtime-only build for `esm-browser`
- Add default CDN alias for jsdelivr
5 years ago
Jian Zhang
a51b052672
chore: remove a dead if branch ( #986 )
5 years ago
Evan You
c1a85cb124
release: v3.0.0-beta.2
5 years ago
Evan You
d7ca1c5c6e
fix(runtime-core): fix user attched public instance properties that start with "$"
5 years ago
Carlos Rodrigues
99fd158d09
fix(watch): fix deep watchers on refs containing primitives ( #984 )
5 years ago
Evan You
c0adb67c2e
feat(types): expose ComponentCustomOptions for declaring custom options
5 years ago
Evan You
be21cfb1db
feat(types): feat(types): add `ComponentCustomProperties` interface ( #982 )
5 years ago
Cédric Exbrayat
4cf5e07608
feat(types): expose ExtractPropTypes ( #983 )
5 years ago
扩散性百万甜面包
70c8c58be2
test(compiler-core): expect onError to be called ( #976 )
5 years ago
Evan You
ca6912554c
release: v3.0.0-beta.1
5 years ago
Evan You
370fc820cc
refactor(runtime-core): refactor instance public proxy context object
5 years ago
Evan You
b2662a62c5
wip: separate setupState
5 years ago
Evan You
0709380c5f
feat(runtime-core): skip emit warn if has equivalent onXXX prop
5 years ago
Evan You
bfd6744fb1
perf(runtime-core): use raw context on component options init
5 years ago
Evan You
24e5ab33f5
refactor(runtime-core): remove need for internal instance sink
5 years ago
Cédric Exbrayat
4d014dc3d3
fix(reactivity): remove Symbol.observable ( #968 )
* chore: add @types/node as an explicit dependency
As `tsconfig.json` references it, it should be listed in the dependencies.
It currently uses an older version: this commit also bumps to the latest v12 version, and fixes a typing issue.
* fix(reactivity): remove Symbol.observable
`Symbol.observable` is brought by `@types/node@12` and is not a "well-known" typescript symbol https://www.typescriptlang.org/docs/handbook/symbols.html that can be find in lib.es20xx like the others. It has been removed in `@types/node@v13`.
It means that an application using vue@3.0.0-alpha.13 does not compile unless it explicitely adds `@types/node@v12` as a dependency and `node` in its own tsconfig types.
5 years ago
Carlos Rodrigues
d7ae1d0244
test(reactivity): add tests for object with symbols ( #969 )
5 years ago
Evan You
09b4202a22
refactor(reactivity): adjust APIs
BREAKING CHANGE: Reactivity APIs adjustments:
- `readonly` is now non-tracking if called on plain objects.
`lock` and `unlock` have been removed. A `readonly` proxy can no
longer be directly mutated. However, it can still wrap an already
reactive object and track changes to the source reactive object.
- `isReactive` now only returns true for proxies created by `reactive`,
or a `readonly` proxy that wraps a `reactive` proxy.
- A new utility `isProxy` is introduced, which returns true for both
reactive or readonly proxies.
- `markNonReactive` has been renamed to `markRaw`.
5 years ago