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
2020-04-19 18:43:21 -04:00
Evan You
c1a85cb124
release: v3.0.0-beta.2
2020-04-17 11:01:01 -04:00
Evan You
ca6912554c
release: v3.0.0-beta.1
2020-04-16 15:45:04 -04:00
Evan You
11654a6e50
release: v3.0.0-alpha.13
2020-04-15 12:46:26 -04:00
Evan You
1068212cb2
chore: run prettier
2020-04-15 10:51:07 -04:00
Evan You
d45e47569d
fix(runtime-dom/v-on): support event.stopImmediatePropagation on multiple listeners
...
close #916
2020-04-15 10:35:34 -04:00
Evan You
0869443d01
chore: import toRaw from @vue/reactivity
2020-04-14 09:59:02 -04:00
likui
27b5c71944
fix(runtime-dom): should patch svg innerHtml ( #956 )
2020-04-13 12:13:37 -04:00
Evan You
ab16a065a8
refactor: adjust runtime-dom test structure + tests for dom props
2020-04-10 15:37:30 -04:00
Evan You
ed235f16de
refactor: simplify runtime-dom class tests
2020-04-10 15:23:01 -04:00
Evan You
6eb3399311
fix(runtime-dom): fix patching for attributes starting with on
...
fix #949
BREAKING CHANGE: Only props starting with `on` followed by an uppercase
letter or a non-letter character are considered event listeners.
2020-04-10 11:57:07 -04:00
Evan You
1d9f8fc979
release: v3.0.0-alpha.12
2020-04-08 18:59:49 -04:00
Evan You
42278317e1
fix(transition): should ship props declarations in production
2020-04-07 17:19:37 -04:00
Evan You
f87d6b501e
test: fix runtime-dom v-on test
2020-04-07 11:41:48 -04:00
Evan You
2302dea162
fix(runtime-dom): support native onxxx handlers
...
close #927
2020-04-07 11:34:54 -04:00
Evan You
ec4a4c1e06
refactor(runtime-core): refactor props resolution
...
Improve performance in optimized mode + tests
2020-04-06 17:37:47 -04:00
Jian Zhang
da1fb7afef
fix(runtime-dom): fix getModelAssigner order in vModelCheckbox ( #926 )
2020-04-06 09:55:19 -04:00
Evan You
f42d11e8e1
fix(v-model): handle dynamic assigners and array assigners
...
close #923
2020-04-04 20:51:42 -04:00
Evan You
7402951d94
release: v3.0.0-alpha.11
2020-04-03 21:45:50 -04:00
Evan You
835789532c
test: make events test more stable
2020-04-01 21:59:42 -04:00
Evan You
8080c38323
chore: avoid v-cloak test warning
2020-04-01 21:39:47 -04:00
likui
0ed147d336
fix(runtime-dom): v-cloak should be removed after compile on the root element ( #893 )
...
fix #890
2020-03-31 18:13:59 -04:00
Evan You
b1d0b046af
fix(runtome-dom): properly support creating customized built-in element
2020-03-27 12:39:00 -04:00
Evan You
de81faf00a
release: v3.0.0-alpha.10
2020-03-24 18:33:40 -04:00
ysj16
0dba5d44e6
fix(TransitionGroup): ignore comment node when warn (fix#869) ( #875 )
2020-03-24 12:09:42 -04:00
Evan You
0dc2478569
fix(transition): fix duration prop validation
...
fix #868
2020-03-23 11:13:37 -04:00
Evan You
b8c1be18f3
refactor(types): use stricter settings
...
fix #847
2020-03-23 11:08:22 -04:00
Evan You
ba9a91c48c
refactor: remove null comparisons
2020-03-18 18:14:51 -04:00
Evan You
be91b43564
types: improve directive hook argument types
2020-03-18 12:30:26 -04:00
Evan You
5282ff0edb
release: v3.0.0-alpha.9
2020-03-16 18:56:44 -04:00
likui
d318576d74
fix(runtime-dom): patch xlink attribute ( #842 )
2020-03-16 18:46:01 -04:00
Evan You
c450ede12d
feat(ssr): support getSSRProps for vnode directives
2020-03-16 18:36:19 -04:00
Evan You
9eef37fa32
refactor(compiler): remove modelValue from generated code for native v-model
2020-03-16 17:51:56 -04:00
Evan You
206640a2d8
fix(build): remove __RUNTIME_COMPILE__ flag
...
behavior should be consistent in all builds. fix #817
2020-03-11 16:39:26 -04:00
Evan You
ca5f39ee35
refactor(runtime-core): adjust patchProp value arguments order
...
BREAKING CHANGE: `RendererOptions.patchProp` arguments order has changed
The `prevValue` and `nextValue` position has been swapped to keep it
consistent with other functions in the renderer implementation. This
only affects custom renderers using the `createRenderer` API.
2020-03-09 16:15:49 -04:00
Evan You
c75388d538
release: v3.0.0-alpha.8
2020-03-06 15:58:40 -05:00
Evan You
bcb2a9b4a6
build: make @vue/shared public
...
This avoids it being inlined multiple times in esm bundler builds
2020-02-29 22:04:42 -05:00
Evan You
312513d255
release: v3.0.0-alpha.7
2020-02-26 14:36:38 -05:00
Evan You
4a5b91bd1f
fix(runtime-core): fix slot fallback + slots typing
...
fix #773
2020-02-25 09:41:07 -05:00
Evan You
9ab22c7ae6
release: v3.0.0-alpha.6
2020-02-22 08:25:32 +01:00
Evan You
189a0a3b19
chore: use undefined for TS 3.8 compat
2020-02-21 11:38:41 +01:00
Evan You
478b4cfb2c
release: v3.0.0-alpha.5
2020-02-18 15:00:55 -05:00
Evan You
80904e92b8
types: cleanup renderer & hydration typing
2020-02-14 12:33:32 -05:00
Evan You
167f8241bd
refactor(ssr): make hydration logic tree-shakeable
2020-02-14 01:30:08 -05:00
Evan You
42d80b5888
wip(ssr): component hydration
2020-02-13 23:31:03 -05:00
Evan You
6b505dcd23
wip(ssr): basic element hydration
2020-02-13 17:47:00 -05:00
Evan You
8e19424c04
refactor(security): mark potential unsafe code paths
2020-02-12 15:00:32 -05:00
Evan You
d866d389f3
chore: fix import path + comment
2020-02-12 12:12:53 -05:00
Evan You
27913e661a
feat(compiler-dom/runtime-dom): stringify eligible static trees
2020-02-12 11:56:42 -05:00
Jonas
5495c70c4a
fix(transition-group): handle multiple move-classes ( #679 )
...
fix #678
2020-02-10 09:36:19 -05:00
Evan You
c952321fcf
wip(compiler-ssr): v-model static types + textarea
2020-02-05 14:23:03 -05:00
Jacek Karczmarczyk
1b2878d80f
chore: update runtime-dom/README example to latest signature ( #693 ) [ci skip]
2020-02-04 09:24:29 -05:00
Evan You
e6e2c58234
fix(runtime-dom/ssr): properly handle xlink and boolean attributes
2020-01-28 22:03:53 -05:00
Evan You
6f43c4b516
wip(ssr): vdom serialization
2020-01-28 18:48:27 -05:00
Evan You
d293876c34
release: v3.0.0-alpha.4
2020-01-27 16:20:00 -05:00
Evan You
da25517377
wip(ssr): initial work on server-renderer
2020-01-27 16:00:17 -05:00
Evan You
c07751fd36
refactor: adjust createApp
related API signatures
...
BREAKING CHANGE: `createApp` API has been adjusted.
- `createApp()` now accepts the root component, and optionally a props
object to pass to the root component.
- `app.mount()` now accepts a single argument (the root container)
- `app.unmount()` no longer requires arguments.
New behavior looks like the following:
``` js
const app = createApp(RootComponent)
app.mount('#app')
app.unmount()
```
2020-01-27 16:00:17 -05:00
Evan You
48152bc88e
fix(runtime-dom): should not access document in non-browser env
...
fix #657
2020-01-25 22:31:38 -05:00
Evan You
b41677bf42
release: v3.0.0-alpha.3
2020-01-22 11:10:30 -05:00
yang
98d50d874d
fix(transition): handle multiple transition classes ( #638 ) ( #645 )
...
fix #638
2020-01-20 12:44:01 -05:00
likui
04ac6c467a
feat(runtime-core): support app.unmount(container) ( #601 )
...
close #593
2020-01-16 12:23:47 -05:00
Evan You
9f65d811af
release: v3.0.0-alpha.2
2020-01-13 17:44:30 -05:00
Yu Zong
54bb820f73
types: update jsx support ( #587 )
2020-01-06 16:19:18 -05:00
Evan You
1bb1271b5e
release: v3.0.0-alpha.1
2020-01-02 18:25:17 -05:00
Chris Fritz
1c4cdd841d
refactor(createComponent): rename to defineComponent ( #549 )
2019-12-22 10:58:12 -05:00
Evan You
bdbfead1e0
chore: adjust package.json
2019-12-19 14:19:58 -05:00
djy0
fc48e43ac7
chore: fix typo [ci skip] ( #547 )
2019-12-18 11:45:28 -05:00
Evan You
69c9dbc825
feat(sfc): scopeId runtime support
2019-12-17 12:31:38 -05:00
Evan You
35858cec8c
build: adjust global names + allow inline overrides of build flags
2019-12-15 15:37:43 -05:00
Evan You
136ab753b3
build: adjust esm formats
2019-12-10 22:14:02 -05:00
Evan You
8ed04ed503
build: release script
2019-12-10 21:29:52 -05:00
Haoqun Jiang
d1527fbee4
test: add test for runtime-dom/modules/class ( #75 )
2019-12-09 14:52:20 -05:00
hujiulong
7522d4d61a
types(transition): props should be declared by generic ( #514 )
2019-12-03 10:12:54 -05:00
Evan You
22957436e8
chore: default transition css prop to true
2019-11-29 17:38:29 -05:00
Evan You
6d254da532
feat(transition): add runtime props validation for TransitionGroup
2019-11-29 16:47:41 -05:00
Evan You
0e3e07079a
feat(transition): properly handle transition & transition-group in compiler
2019-11-29 12:42:04 -05:00
Evan You
52239d137c
types: fix class module transition class typing
2019-11-29 11:53:54 -05:00
Evan You
800b0f0e7a
feat(transition): TransitionGroup
2019-11-28 18:41:01 -05:00
Evan You
460b053f74
test: improve events module test stability
2019-11-26 18:06:55 -05:00
likui
00857ac816
feat(core): support v-show directive ( #310 )
2019-11-24 22:04:26 -05:00
Evan You
1765985ec2
feat(transition): support in templates
2019-11-24 18:37:59 -05:00
Evan You
a834807942
refactor: rename transition components
2019-11-24 16:00:46 -05:00
Gabriel Loiácono
f399b5476f
refactor(transition): avoid repeated code ( #483 )
2019-11-23 00:02:39 -05:00
Evan You
55b7bf991d
fix(transition): handle errors in CSSTransition onEnter & onLeave
2019-11-22 23:42:04 -05:00
Evan You
a6aa64b0cc
refactor: tweaks
2019-11-22 23:32:53 -05:00
Evan You
1b8236615e
feat(transition): handle persisted mode
2019-11-22 23:21:53 -05:00
Evan You
24b4120c21
types: fix dts
2019-11-22 18:09:26 -05:00
Evan You
231b940103
chore: remove unnecessary type annotations
2019-11-22 15:35:41 -05:00
Evan You
be9b4b2527
feat(transition): handle transition classes when patching classes
2019-11-22 15:35:41 -05:00
Evan You
7859e4bce3
feat(transition): CSS transition for runtime-dom
2019-11-22 15:35:41 -05:00
Cédric Exbrayat
8688acc36f
refactor(runtime-dom): avoid unnecessary checks in patchDOMProp ( #452 )
2019-11-14 11:27:23 -05:00
Cédric Exbrayat
fe66194a77
feat(vModel): handle true-value and false-value for checkbox ( #449 )
2019-11-12 16:24:39 -05:00
Evan You
2b2727e62c
feat(runtime-dom/style): support CSS variables and auto prefixing
2019-11-08 22:38:04 -05:00
Cr
34e2725e9b
feat(runtime-dom): support !important for patchStyle. ( #422 )
2019-11-08 22:06:53 -05:00
Evan You
7fa676e55f
feat(v-on): adjust key modifier behavior to match 2.x
2019-11-08 17:50:59 -05:00
Evan You
d7eab51315
refactor: move dom tag config to shared
...
Otherwise runtime-dom cjs & esm builds will import compiler-dom
2019-11-06 15:22:46 -05:00
Evan You
dfc7c0f12a
refactor: adjust internal vnode types + more dts tests
2019-11-04 18:38:55 -05:00
Evan You
90b9884eb4
refactor: rename/re-organize files
2019-11-02 12:18:35 -04:00
Evan You
5eee1152ca
types: (wip) improve dts output
2019-11-01 11:32:53 -04:00
Evan You
34989ef7fe
chore: license
2019-10-28 11:15:17 -04:00
Evan You
07ce2c5fa7
perf: improve directive runtime performance
2019-10-26 16:00:07 -04:00
Evan You
6a92bbd9c0
feat(runtime-dom): support using mount target innerHTML as template
2019-10-24 21:58:34 -04:00
Evan You
af57ad110f
chore: revert prettier
2019-10-22 11:53:32 -04:00
Evan You
b5886189ba
types: massive refactor
2019-10-22 11:53:32 -04:00
Evan You
bb85aefc03
chore: move dom element config to compiler-dom
2019-10-21 16:25:16 -04:00
Jooger
67eb29f63b
refactor(errorHandlling): handle array in callWithAsyncErrorHandling ( #332 )
2019-10-21 13:59:10 -04:00
Evan You
58593c4714
feat(v-on): cache handlers
2019-10-18 21:51:34 -04:00
Evan You
e98a85f3cb
refactor: applyDirectives -> withDirectives
2019-10-18 16:35:01 -04:00
Evan You
cba34453db
refactor(v-on): avoid empty modifier guard with only key modifier
2019-10-18 16:20:45 -04:00
xiaoboost
32499b16e7
types: improve typing ( #309 )
2019-10-16 10:31:40 -04:00
Dmitry Sharshakov
0bac763f5a
feat(directives): add support for function directives ( #252 )
2019-10-16 02:12:26 -04:00
宋铄运
db5c343c33
test(runtime-dom): add test coverage for v-on runtime guards, fix "exact" guard ( #298 )
2019-10-15 17:08:43 -04:00
Carlos Rodrigues
0b2573f3d1
types(runtime-dom): cast to the correct eventType instead of any ( #292 )
2019-10-15 12:26:19 -04:00
Evan You
2d6d5d4517
chore: move events.spec.ts
2019-10-14 17:46:30 -04:00
Evan You
2b3d5b3f96
chore: move vModel.spec.ts
2019-10-14 17:45:15 -04:00
Evan You
8df3e0a41e
refactor: move looseEqual to vModel
2019-10-14 17:40:56 -04:00
Stanislav Lashmanov
b4eeb2fa1b
test(runtime-dom): vModel tests ( #255 )
2019-10-14 17:07:34 -04:00
月迷津渡
66023a8886
feat: runtime component name validation ( #217 )
2019-10-14 15:36:29 -04:00
Evan You
37cbd0098d
chore: lint + include tsx files for lint
2019-10-14 15:07:43 -04:00
宋铄运
57a94b530d
feat(dom): transform + runtime for v-on ( #213 )
2019-10-14 00:33:23 -04:00
fisker Cheung
9371e65187
refactor(runtime-dom): use findIndex
instead of loop ( #244 )
2019-10-12 19:32:47 -04:00
Evan You
a7eefaff1e
refactor(runtime-dom): remove xlink support since it's been deprecated
2019-10-12 19:25:04 -04:00
Evan You
14aabf0f98
feat(v-model): number/trim modifier + array checkbox support
2019-10-11 20:35:25 -04:00
Evan You
59e18e5478
fix(runtime-dom): cast to true for boolean props
2019-10-11 18:59:39 -04:00
Evan You
b0156b5df3
chore: improve formatting
2019-10-11 18:07:18 -04:00
Evan You
a42ad6cc9d
feat(runtime-dom): v-model directive runtime
2019-10-11 17:55:34 -04:00
Evan You
ba4e6e5b4d
test: make dom events spec more stable
2019-10-10 22:02:41 -04:00
Evan You
d376439167
wip(compiler-dom): v-model runtime
2019-10-10 18:02:51 -04:00
Evan You
145559e170
chore: remove debugger
2019-10-10 15:37:28 -04:00
Evan You
46d875f4e8
fix(runtime-core): use correct parentNode when patching dynamicChildren ( close #98 )
2019-10-10 14:49:35 -04:00
Stanislav Lashmanov
08df965e3c
feat(runtime-dom): support event options ( #149 )
2019-10-09 15:05:21 -04:00
Evan You
8da5b007b1
types: improve typing
2019-10-08 12:43:13 -04:00
Evan You
caaeaff2fd
refactor(runtime-dom/events): use more explicit variable name to avoid shadowing
2019-10-07 10:57:35 -04:00
Stanislav Lashmanov
6d5c12b63a
fix(runtime-dom/events): fix wrong scope for event value ( #117 )
2019-10-07 10:56:24 -04:00
Carlos Rodrigues
23ff681418
chore: fix comment typos ( #94 )
2019-10-05 10:35:19 -04:00
Evan You
b378b17076
chore: remove unnecessary code
2019-09-12 00:37:44 -04:00
Evan You
42967f1f5a
wip: pass proper args to patchDOMProp
2019-09-11 11:10:13 -04:00
Evan You
2677c91aba
wip: pass suspense down as argument
2019-09-11 11:10:13 -04:00
Evan You
02bb156314
wip: somewhat working suspense
2019-09-11 11:10:13 -04:00
Evan You
3904678306
types: use stricter HostNode typings
2019-09-06 16:58:32 -04:00
Evan You
360f3b4f37
types: improve type exports
2019-09-06 12:58:31 -04:00
Evan You
b2d269a651
build: use api-extractor for type rollup
2019-09-03 12:16:22 -04:00
Evan You
32713f8fce
feat: createApp / appContext
2019-09-02 16:09:34 -04:00
Evan You
09593c94c3
feat: error handling in scheduler
2019-08-30 15:15:23 -04:00
Evan You
966d7b5487
feat: error handling for setup / render / watch / event handlers
2019-08-30 15:05:39 -04:00
Evan You
5a754aac81
test: test for setup()
2019-08-26 18:08:56 -04:00
Evan You
13f5067656
chore: comments
2019-08-21 16:17:02 -04:00
Evan You
bb2ff037b9
build: bump rollup version
2019-08-20 10:34:25 -04:00
Evan You
aacad85058
test: fix reactivity tests
2019-08-20 09:58:10 -04:00
Evan You
8f9afdff64
feat: template ref handling + ref unmount
2019-08-19 18:06:20 -04:00
Evan You
645c1eceea
wip: update test runtime
2019-06-20 21:28:37 +08:00
Evan You
5228f0343b
wip: setup context + emit
2019-06-19 16:43:34 +08:00
Evan You
7fe82b1199
wip: svg & parent chain
2019-06-03 09:43:28 +08:00
Evan You
e665a133e9
types: bump TS version + type test for createComponent
2019-05-30 22:09:48 +08:00
Evan You
453cdcd600
wip: portal
2019-05-29 16:10:25 +08:00
Evan You
b69ea00f5c
wip: minimal component implementation
2019-05-28 13:27:31 +08:00
Evan You
e4ce78c8c9
wip: diffKeyedChildren
2019-05-27 13:48:40 +08:00
Evan You
3f3e42b8cb
wip: compare perf
2019-05-26 15:38:55 +08:00
Evan You
b3f8b5ae0a
wip: add types to refactored runtime-core
2019-05-26 15:19:44 +08:00
Evan You
35effdee5a
feat: simplify prop/attr checking
2019-03-10 06:09:59 +08:00
Evan You
daf166553b
refactor: also check for event timestamp
2019-01-23 19:08:51 -05:00
Evan You
16270edda5
refactor: cache calls to performance.now
2019-01-23 18:52:05 -05:00
Evan You
360a10fff2
refactor: drop event delegation and use simple async edge case fix
2019-01-22 16:03:37 -05:00
Evan You
9449dfb352
refactor: events tweak
2018-12-19 18:14:41 -05:00
Evan You
157971b3cb
fix: domProps handling
2018-11-03 06:31:54 +09:00
Evan You
d70b7d6dd5
wip: error handling and nextTick for time slicing
2018-11-03 06:31:31 +09:00
Evan You
6ba02827b1
feat: experimental time-slicing
2018-11-03 06:31:30 +09:00
Evan You
e6be55a498
chore: relax render type for tsx
2018-11-03 05:59:45 +09:00
Evan You
c9b33a9e69
feat: delegate pointer events
2018-10-28 15:23:37 -04:00
Evan You
6982f755fd
build: update runtime-dom global name
2018-10-26 17:51:09 -04:00
Evan You
e05673f4d3
refactor: rename packages
2018-10-26 15:44:50 -04:00
Evan You
d1bc6ee8d6
chore: setup all packages
2018-09-19 12:26:50 -04:00
Evan You
3401f6b460
init (graduate from prototype)
2018-09-19 11:35:38 -04:00