Commit Graph

39 Commits

Author SHA1 Message Date
三咲智子 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
ZHAO Jin-Xiang fff7b864f4
feat: use enum to replace const enum (#9261)
close #1228
2023-11-29 12:24:50 +08:00
renovate[bot] 16a6438236
chore(deps): update lint (#9627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-18 10:33:24 +08:00
Evan You d1181ad692 fix(build): avoid const enum conflicts 2023-02-06 09:44:12 +08:00
Evan You 0739f8909a fix(custom-element): fix event listeners with capital letter event names on custom elements
close https://github.com/vuejs/docs/issues/1708
close https://github.com/vuejs/docs/pull/1890
2022-08-30 14:07:35 +08:00
Yugang Cao 92e04a651f
chore: type improvements (#5264) 2022-01-21 01:56:20 -05:00
tryag 08e5909659
chore: remove unused parameter type definitions (#4607) 2021-09-21 12:35:11 -04:00
Evan You 47f488350c chore: run updated prettier 2021-07-19 18:24:18 -04:00
Evan You 80c868aefe workflow: setup eslint for prohibited syntax and globals
fix #1285
2020-06-10 16:54:23 -04:00
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`.
2020-04-15 16:45:20 -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 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 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 2569890e31 refactor: move mockWarn utility to @vue/shared
close #652
2020-01-22 09:29:45 -05:00
Evan You 3d16c0ea5a fix(runtime-test): output empty attrs without value in seralized output 2019-12-17 12:31:38 -05:00
Evan You 69c9dbc825 feat(sfc): scopeId runtime support 2019-12-17 12:31:38 -05:00
QuincyChen d7d87622ce refactor: use isArray function from shared (#441) 2019-11-08 09:52:24 -05:00
Evan You 66ecd8b47f types: setup tests for built d.ts files 2019-11-01 22:54:01 -04:00
Evan You 28895b8817 chore: rename mockWarn util 2019-10-31 13:53:11 -04:00
Evan You 47d3356f31 build(deps-dev): bump @types/jest 2019-10-30 11:52:19 -04:00
Cong Min ec05469b1a chore: use Boolean to filter empty (#228) 2019-10-12 10:55:35 -04:00
Jordan Pittman a8c82909fa test: Add tests for some runtime helpers (#87)
* test for `renderList`
* test for `toHandlers`
2019-10-05 23:22:42 -04:00
Haoqun Jiang b275f8697d test: add tests for rendererChildren (#52)
* test: [wip] add tests for rendererChildren

* chore: use serializeInner for clearer output

* fix: should remove the text node if content is empty

* test: also test for appended content

* test: inserting & removing

* test: moving children

* refactor: use a helper function

* test: finish tests

* test: duplicate keys tests belong to keyed children block

* fix(runtime-test): fix insert when moving node in the same parent

* fix: fix failing test cases for rendererChildren

* test: handle rendererChildren edge case
2019-09-20 18:17:35 -04:00
Evan You 3904678306 types: use stricter HostNode typings 2019-09-06 16:58:32 -04:00
Evan You 1e4535dc78 test: improve warning assertions 2019-09-03 16:17:26 -04:00
Evan You 32713f8fce feat: createApp / appContext 2019-09-02 16:09:34 -04:00
Evan You 0cb42fbcf3 wip: make runtime-test nodes non-observable 2019-08-29 16:38:57 -04:00
Evan You 5a754aac81 test: test for setup() 2019-08-26 18:08:56 -04:00
Evan You 3efe0ba3cd test: jest warning assert utils 2019-08-26 16:08:23 -04:00
Evan You fd1fef5502 test: update fragment tests 2019-08-23 15:27:17 -04:00
Evan You b5384006d2 wip: update runtime-test 2019-08-21 17:05:14 -04:00
Evan You 645c1eceea wip: update test runtime 2019-06-20 21:28:37 +08:00
Evan You 9d1f0f248d wip: fix more tests 2018-11-03 06:31:31 +09:00
Evan You ba571cda61 wip: trying to make tests work 2018-11-03 06:31:31 +09:00
Evan You d70b7d6dd5 wip: error handling and nextTick for time slicing 2018-11-03 06:31:31 +09:00
Evan You e6be55a498 chore: relax render type for tsx 2018-11-03 05:59:45 +09:00
Evan You 665cd8e3d9 feat(runtime-test): triggerEvent 2018-10-28 17:43:27 -04:00
Evan You e05673f4d3 refactor: rename packages 2018-10-26 15:44:50 -04:00