]>
git.ipfire.org Git - thirdparty/vuejs/core.git/log
dependabot-preview[bot] [Mon, 9 Mar 2020 19:57:28 +0000 (15:57 -0400)]
build(deps-dev): bump rollup from 1.32.0 to 1.32.1 (#810)
Bumps [rollup](https://github.com/rollup/rollup) from 1.32.0 to 1.32.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.32.0...v1.32.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Evan You [Fri, 6 Mar 2020 20:58:40 +0000 (15:58 -0500)]
release: v3.0.0-alpha.8
Evan You [Fri, 6 Mar 2020 20:39:54 +0000 (15:39 -0500)]
test(ssr): test for hydration mismatch handling
Evan You [Fri, 6 Mar 2020 20:14:12 +0000 (15:14 -0500)]
test(ssr): ssr + hydration integration test
Evan You [Fri, 6 Mar 2020 19:52:15 +0000 (14:52 -0500)]
fix(ssr): fix ssr on-the-fly compilation + slot fallback branch helper injection
Evan You [Fri, 6 Mar 2020 17:11:37 +0000 (12:11 -0500)]
fix(reactivity): allow effect trigger inside no-track execution contexts
fix #804
Evan You [Fri, 6 Mar 2020 17:02:38 +0000 (12:02 -0500)]
chore(template-explorer): bump monaco version for live deployed page
Cédric Exbrayat [Fri, 6 Mar 2020 17:01:13 +0000 (18:01 +0100)]
chore(template-explorer): update monaco dependency (#793)
hareku [Fri, 6 Mar 2020 16:32:39 +0000 (01:32 +0900)]
types(reactivity): add undefined type to ref/shallowRef when no args (#791)
Evan You [Fri, 6 Mar 2020 16:30:56 +0000 (11:30 -0500)]
fix(reactivity): should not trigger length dependency on Array delete
close #774
dependabot-preview[bot] [Fri, 6 Mar 2020 16:24:21 +0000 (11:24 -0500)]
build(deps): bump @babel/parser from 7.8.6 to 7.8.7 (#797)
Bumps [@babel/parser](https://github.com/babel/babel) from 7.8.6 to 7.8.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.8.6...v7.8.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
dependabot-preview[bot] [Fri, 6 Mar 2020 16:24:09 +0000 (11:24 -0500)]
build(deps): bump @babel/types from 7.8.6 to 7.8.7 (#796)
Bumps [@babel/types](https://github.com/babel/babel) from 7.8.6 to 7.8.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.8.6...v7.8.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Evan You [Fri, 6 Mar 2020 16:10:02 +0000 (11:10 -0500)]
fix(reactivity): Map/Set identity methods should work even if raw value contains reactive entries
fix #799
Evan You [Thu, 5 Mar 2020 22:57:52 +0000 (16:57 -0600)]
types: remove 'this' annotation from 'get' accessor (#801)
The next version of Typescript disallows 'this' parameter annotations on
accessors, which causes vue-next to fail to compile.
This PR removes the annotation and adds a cast instead.
Fixes #800
Evan You [Thu, 5 Mar 2020 16:29:50 +0000 (10:29 -0600)]
test(ssr): more hydration tests
Evan You [Wed, 4 Mar 2020 23:06:50 +0000 (17:06 -0600)]
test(ssr): hydratioon tests (wip)
Evan You [Tue, 3 Mar 2020 21:12:38 +0000 (15:12 -0600)]
feat(ssr): hydration mismatch handling
Evan You [Tue, 3 Mar 2020 18:26:32 +0000 (12:26 -0600)]
fix(directives): ignore invalid directive hooks
fix #795
火石 [Tue, 3 Mar 2020 16:05:07 +0000 (00:05 +0800)]
chore: fix componentRenderUtils.ts comment typo (#790) [ci skip]
dependabot-preview[bot] [Mon, 2 Mar 2020 08:19:01 +0000 (08:19 +0000)]
build(deps-dev): bump typescript from 3.8.2 to 3.8.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.2...v3.8.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Evan You [Sun, 1 Mar 2020 03:05:41 +0000 (22:05 -0500)]
chore: update @vue/shared readme [ci skip]
Evan You [Sun, 1 Mar 2020 03:04:42 +0000 (22:04 -0500)]
build: make @vue/shared public
This avoids it being inlined multiple times in esm bundler builds
Evan You [Fri, 28 Feb 2020 22:53:26 +0000 (17:53 -0500)]
refactor(runtime-core): adjust attr fallthrough behavior
BREAKING CHANGE: adjust attr fallthrough behavior
Updated per pending RFC https://github.com/vuejs/rfcs/pull/137
- Implicit fallthrough now by default only applies for a whitelist
of attributes (class, style, event listeners, a11y attributes, and
data attributes).
- Fallthrough is now applied regardless of whether the component has
explicitly declared props. (close #749)
dependabot-preview[bot] [Fri, 28 Feb 2020 07:59:24 +0000 (07:59 +0000)]
build(deps-dev): bump rollup from 1.31.1 to 1.32.0
Bumps [rollup](https://github.com/rollup/rollup) from 1.31.1 to 1.32.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.31.1...v1.32.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Evan You [Fri, 28 Feb 2020 02:51:57 +0000 (21:51 -0500)]
fix(runtime-core): ensure inhertied attrs update on optimized child root
fix #677, close #784
Evan You [Thu, 27 Feb 2020 22:15:51 +0000 (17:15 -0500)]
chore: fix snapshot
Evan You [Thu, 27 Feb 2020 21:53:51 +0000 (16:53 -0500)]
feat(compiler-core): switch to @babel/parser for expression parsing
This enables default support for parsing bigInt, optional chaining
and nullish coalescing, and also adds the `expressionPlugins`
compiler option for enabling additional parsing plugins listed at
https://babeljs.io/docs/en/next/babel-parser#plugins.
Evan You [Thu, 27 Feb 2020 16:26:39 +0000 (11:26 -0500)]
refactor(hydration): move fragment to seaprate function + skip normalization in optimized mode
Evan You [Thu, 27 Feb 2020 02:43:27 +0000 (21:43 -0500)]
fix(slots): fix conditional slot
fix #787
Evan You [Thu, 27 Feb 2020 02:29:41 +0000 (21:29 -0500)]
test: fix options usage of reactive
Evan You [Thu, 27 Feb 2020 00:01:42 +0000 (19:01 -0500)]
refactor(runtime-core): revert setup() result reactive conversion
BREAKING CHANGE: revert setup() result reactive conversion
Revert
6b10f0c &
a840e7d . The motivation of the original change was
avoiding unnecessary deep conversions, but that can be achieved by
explicitly marking values non-reactive via `markNonReactive`.
Removing the reactive conversion behavior leads to an usability
issue in that plain objects containing refs (which is what most
composition functions will return), when exposed as a nested
property from `setup()`, will not unwrap the refs in templates. This
goes against the "no .value in template" intuition and the only
workaround requires users to manually wrap it again with `reactive()`.
So in this commit we are reverting to the previous behavior where
objects returned from `setup()` are implicitly wrapped with
`reactive()` for deep ref unwrapping.
Evan You [Wed, 26 Feb 2020 21:32:06 +0000 (16:32 -0500)]
refactor(fragments): remove visible anchors for fragments
Evan You [Wed, 26 Feb 2020 21:07:00 +0000 (16:07 -0500)]
fix(portal): fix portal placeholder text
Evan You [Wed, 26 Feb 2020 20:05:11 +0000 (15:05 -0500)]
refactor(compiler-ssr): extract portal processing + emit errors
Dmitry Sharshakov [Wed, 26 Feb 2020 19:59:53 +0000 (22:59 +0300)]
feat(compiler-ssr): compile portal (#775)
Evan You [Wed, 26 Feb 2020 19:36:38 +0000 (14:36 -0500)]
release: v3.0.0-alpha.7
Evan You [Wed, 26 Feb 2020 15:12:32 +0000 (10:12 -0500)]
refactor: use consistent name for watch invalidation register function
djy0 [Wed, 26 Feb 2020 15:20:10 +0000 (23:20 +0800)]
fix(runtime-core): set appContext.provides to Object.create(null) (#781)
djy0 [Wed, 26 Feb 2020 15:13:07 +0000 (23:13 +0800)]
fix(template-explorer): rename watch -> watchEffect (#780)
Praveen Puglia [Wed, 26 Feb 2020 15:11:49 +0000 (20:41 +0530)]
chore: fixes a small typo and prettifies the document (#778)
dependabot-preview[bot] [Wed, 26 Feb 2020 07:46:26 +0000 (07:46 +0000)]
build(deps-dev): bump @types/puppeteer from 2.0.0 to 2.0.1
Bumps [@types/puppeteer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/puppeteer) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/puppeteer)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Evan You [Wed, 26 Feb 2020 01:43:01 +0000 (20:43 -0500)]
fix(types): shallowRef should not unwrap value type
Evan You [Wed, 26 Feb 2020 01:38:02 +0000 (20:38 -0500)]
test: add type test for nested refs in ref.value
Evan You [Wed, 26 Feb 2020 00:44:06 +0000 (19:44 -0500)]
fix(types): ref value type unwrapping should happen at creation time
Evan You [Tue, 25 Feb 2020 23:57:41 +0000 (18:57 -0500)]
refactor: remove old watch signature support
Evan You [Wed, 26 Feb 2020 00:35:48 +0000 (19:35 -0500)]
refactor(directives): remove binding.instance
BREAKING CHANGE: custom directive bindings no longer expose instance
This is a rarely used property that creates extra complexity in
ensuring it points to the correct instance. From a design
perspective, a custom directive should be scoped to the element and
data it is bound to and should not have access to the entire
instance in the first place.
Evan You [Tue, 25 Feb 2020 23:29:51 +0000 (18:29 -0500)]
fix(template-ref): fix string template refs inside slots
ysj16 [Tue, 25 Feb 2020 15:41:44 +0000 (23:41 +0800)]
fix(renderSlot): set slot render as a STABLE_FRAGMENT (#776)
fix #766
Evan You [Tue, 25 Feb 2020 04:05:35 +0000 (23:05 -0500)]
fix(runtime-core): fix slot fallback + slots typing
fix #773
djy0 [Mon, 24 Feb 2020 17:03:02 +0000 (01:03 +0800)]
fix(runtime-core): make watchEffect ignore deep option (#765)
djy0 [Mon, 24 Feb 2020 17:01:26 +0000 (01:01 +0800)]
chore: fix typo (#764) [ci skip]
Xin Du (Clark) [Mon, 24 Feb 2020 16:23:35 +0000 (16:23 +0000)]
refactor(ssr): extract buffer resolving and resolvePortals (#771)
Evan You [Sat, 22 Feb 2020 07:28:56 +0000 (08:28 +0100)]
chore: changelog edits [ci skip]
Evan You [Sat, 22 Feb 2020 07:25:32 +0000 (08:25 +0100)]
release: v3.0.0-alpha.6
Evan You [Sat, 22 Feb 2020 07:19:10 +0000 (08:19 +0100)]
feat(runtime-core): add watchEffect API
BREAKING CHANGE: replae `watch(fn, options?)` with `watchEffect`
The `watch(fn, options?)` signature has been replaced by the new
`watchEffect` API, which has the same usage and behavior. `watch`
now only supports the `watch(source, cb, options?)` signautre.
Evan You [Sat, 22 Feb 2020 04:19:22 +0000 (05:19 +0100)]
chore: remove debugger [ci skip]
guaijie [Sat, 22 Feb 2020 04:17:30 +0000 (12:17 +0800)]
perf(effect): optimize effect trigger for array length mutation (#761)
Evan You [Sat, 22 Feb 2020 03:39:32 +0000 (04:39 +0100)]
feat(reactivity): expose unref and shallowRef
Evan You [Sat, 22 Feb 2020 02:54:20 +0000 (03:54 +0100)]
chore: fix test type
Evan You [Fri, 21 Feb 2020 16:48:39 +0000 (17:48 +0100)]
refactor: preserve refs in reactive arrays
BREAKING CHANGE: reactive arrays no longer unwraps contained refs
When reactive arrays contain refs, especially a mix of refs and
plain values, Array prototype methods will fail to function
properly - e.g. sort() or reverse() will overwrite the ref's value
instead of moving it (see #737).
Ensuring correct behavior for all possible Array methods while
retaining the ref unwrapping behavior is exceedinly complicated; In
addition, even if Vue handles the built-in methods internally, it
would still break when the user attempts to use a 3rd party utility
functioon (e.g. lodash) on a reactive array containing refs.
After this commit, similar to other collection types like Map and
Set, Arrays will no longer automatically unwrap contained refs.
The usage of mixed refs and plain values in Arrays should be rare in
practice. In cases where this is necessary, the user can create a
computed property that performs the unwrapping.
Evan You [Fri, 21 Feb 2020 16:45:42 +0000 (17:45 +0100)]
fix(types): improve ref typing, close #759
Evan You [Fri, 21 Feb 2020 14:05:16 +0000 (15:05 +0100)]
perf(reactivity): only trigger all effects on Array length mutation if new length is shorter than old length
dependabot-preview[bot] [Fri, 21 Feb 2020 13:46:21 +0000 (13:46 +0000)]
build(deps-dev): bump typescript from 3.7.5 to 3.8.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.5 to 3.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Reed Jones [Fri, 21 Feb 2020 13:44:58 +0000 (06:44 -0700)]
chore: typo (#744) [ci skip]
hareku [Fri, 21 Feb 2020 13:44:41 +0000 (22:44 +0900)]
test(reactivity): test for ref without init value (#746)
hareku [Fri, 21 Feb 2020 13:44:13 +0000 (22:44 +0900)]
fix(sfc): inherit parent scopeId on child rooot (#756)
Evan You [Fri, 21 Feb 2020 12:10:13 +0000 (13:10 +0100)]
fix(compiler-dom): properly stringify class/style bindings when hoisting static strings
Evan You [Fri, 21 Feb 2020 10:27:08 +0000 (11:27 +0100)]
chore: use undefined for TS 3.8 compat
guaijie [Fri, 21 Feb 2020 10:38:07 +0000 (18:38 +0800)]
fix(reactivity): should trigger all effects when array length is mutated (#754)
Luxiaosong [Fri, 21 Feb 2020 10:21:24 +0000 (18:21 +0800)]
chore: use 'const' instead of 'let' (#755) [ci skip]
Evan You [Wed, 19 Feb 2020 17:29:01 +0000 (18:29 +0100)]
fix(types): update setup binding unwrap types for
6b10f0c
close #738
basvanmeurs [Wed, 19 Feb 2020 14:50:24 +0000 (15:50 +0100)]
build: use buildOption to determine runtime compile build (#742)
This makes it possible to create a separate package that uses runtime compilation.
likui [Wed, 19 Feb 2020 14:49:46 +0000 (22:49 +0800)]
fix(compiler-core): should alias name in helperString (#743)
fix #740
Evan You [Tue, 18 Feb 2020 20:00:55 +0000 (15:00 -0500)]
release: v3.0.0-alpha.5
Evan You [Tue, 18 Feb 2020 19:56:18 +0000 (14:56 -0500)]
chore: readme
Evan You [Tue, 18 Feb 2020 19:48:56 +0000 (14:48 -0500)]
build: remove compiler-ssr and server-renderer from skipped packages
dependabot-preview[bot] [Tue, 18 Feb 2020 19:56:39 +0000 (14:56 -0500)]
build(deps): bump postcss from 7.0.26 to 7.0.27 (#734)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.26 to 7.0.27.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.26...7.0.27)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Evan You [Tue, 18 Feb 2020 19:43:04 +0000 (14:43 -0500)]
fix(runtime-core): ensure renderCache always exists
Evan You [Tue, 18 Feb 2020 19:32:06 +0000 (14:32 -0500)]
fix(v-on): transform click.right and click.middle modifiers
fix #735
Evan You [Tue, 18 Feb 2020 18:52:59 +0000 (13:52 -0500)]
refactor: extract remove util
Evan You [Tue, 18 Feb 2020 18:26:15 +0000 (13:26 -0500)]
feat(ssr): useSSRContext
Evan You [Tue, 18 Feb 2020 18:23:30 +0000 (13:23 -0500)]
refactor: only run useCssModule code in non-global builds
Evan You [Tue, 18 Feb 2020 18:22:09 +0000 (13:22 -0500)]
fix(reactivity): effect should handle self dependency mutations
Evan You [Tue, 18 Feb 2020 05:09:24 +0000 (00:09 -0500)]
fix(reactivity): trigger iteration effect on Map.set
fix #709
Evan You [Tue, 18 Feb 2020 04:26:25 +0000 (23:26 -0500)]
chore: fix dts tests
Evan You [Tue, 18 Feb 2020 04:22:25 +0000 (23:22 -0500)]
fix(computed): support arrow function usage for computed option
fix #733
Evan You [Tue, 18 Feb 2020 04:14:19 +0000 (23:14 -0500)]
refactor(watch): adjsut watch API behavior
BREAKING CHANGE: `watch` behavior has been adjusted.
- When using the `watch(source, callback, options?)` signature, the
callback now fires lazily by default (consistent with 2.x
behavior).
Note that the `watch(effect, options?)` signature is still eager,
since it must invoke the `effect` immediately to collect
dependencies.
- The `lazy` option has been replaced by the opposite `immediate`
option, which defaults to `false`. (It's ignored when using the
effect signature)
- Due to the above changes, the `watch` option in Options API now
behaves exactly the same as 2.x.
- When using the effect signature or `{ immediate: true }`, the
intital execution is now performed synchronously instead of
deferred until the component is mounted. This is necessary for
certain use cases to work properly with `async setup()` and
Suspense.
The side effect of this is the immediate watcher invocation will
no longer have access to the mounted DOM. However, the watcher can
be initiated inside `onMounted` to retain previous behavior.
Evan You [Tue, 18 Feb 2020 04:14:07 +0000 (23:14 -0500)]
fix(reactivity): avoid cross-component dependency leaks in setup()
Evan You [Mon, 17 Feb 2020 19:43:16 +0000 (14:43 -0500)]
chore: use consistent signature for shared utilities
Evan You [Mon, 17 Feb 2020 16:02:15 +0000 (11:02 -0500)]
build: make watch tree-shakable in lean build
Evan You [Sun, 16 Feb 2020 02:48:45 +0000 (21:48 -0500)]
types: fix tsx dts tests
Evan You [Sun, 16 Feb 2020 02:04:29 +0000 (21:04 -0500)]
fix(types): app.component should accept defineComponent return type
fix #730
Evan You [Sat, 15 Feb 2020 16:40:09 +0000 (11:40 -0500)]
refactor: make portal tree-shakeable
dependabot-preview[bot] [Sat, 15 Feb 2020 22:42:46 +0000 (17:42 -0500)]
build(deps): bump csstype from 2.6.8 to 2.6.9 (#722)
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9.
- [Release notes](https://github.com/frenic/csstype/releases)
- [Commits](https://github.com/frenic/csstype/compare/v2.6.8...v2.6.9)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Dmitry Sharshakov [Sat, 15 Feb 2020 22:41:20 +0000 (01:41 +0300)]
feat(ssr): render portals (#714)
Evan You [Sat, 15 Feb 2020 17:02:00 +0000 (12:02 -0500)]
chore: mark main package side-effects free
hareku [Sat, 15 Feb 2020 16:42:38 +0000 (01:42 +0900)]
test(server-renderer): implement ssrRenderList tests (#726)
夜宴 [Sat, 15 Feb 2020 16:33:22 +0000 (00:33 +0800)]
chore: remove redundant Non-Null Assertion (#728)
Dmitry Sharshakov [Sat, 15 Feb 2020 16:11:55 +0000 (19:11 +0300)]
fix(ssr): render components returning render function from setup (#720)
Evan You [Sat, 15 Feb 2020 16:10:52 +0000 (11:10 -0500)]
chore: fix snapshots