Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(svg): apply every namespace in slot when call applyNS #11349

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
797e72e
build: use __DEV__ flag
yyx990803 May 24, 2022
450767f
refactor: isArray
yyx990803 May 24, 2022
d7d3dbb
workflow: allow wip commits
yyx990803 May 24, 2022
f50a1b8
wip(vca): partial ref and watch implementation
yyx990803 May 24, 2022
e1e5a75
wip: fix entry with compiler
yyx990803 May 25, 2022
ac85a42
wip: ref tests passing
yyx990803 May 25, 2022
c4aa8ea
wip: reactive tests passing
yyx990803 May 25, 2022
05aaa33
wip: computed tests passing
yyx990803 May 25, 2022
282ebb0
chore: remove duplicated types
yyx990803 May 25, 2022
a162712
refactor: simplify implementations
yyx990803 May 25, 2022
eb20b82
ci: fix ci
yyx990803 May 25, 2022
b0140bf
ci: __DEV__ flag for e2e tests
yyx990803 May 25, 2022
a5ad708
wip: readonly
yyx990803 May 27, 2022
f29ad1d
wip: shallowReactive/shallowReadonly
yyx990803 May 27, 2022
9321458
types: types for setup() + format types
yyx990803 May 27, 2022
1f1046b
wip: rename dir to v3
yyx990803 May 27, 2022
12150f6
chore: format typescript dir
yyx990803 May 27, 2022
1e4ac46
wip: lifecycle api
yyx990803 May 27, 2022
cfc2c59
chore: use isFunction
yyx990803 May 27, 2022
6c1d2ef
wip: setup() tests
yyx990803 May 28, 2022
c9136b1
wip: apiWatch tests
yyx990803 May 28, 2022
54f5f9b
chore: fix ssr tests
yyx990803 May 28, 2022
b4c511d
chore: fix unit tests
yyx990803 May 28, 2022
9fb4f7d
wip: effectScope
yyx990803 May 29, 2022
15c5c43
wip: onTrack debugger option
yyx990803 May 29, 2022
075f215
wip: onTrack/onTrigger debugger options
yyx990803 May 29, 2022
dae380d
wip: renderTriggered/renderTracked
yyx990803 May 29, 2022
1a13c63
wip: provide/inject
yyx990803 May 29, 2022
cae88de
chore: rename template ref module
yyx990803 May 29, 2022
4608565
wip: setup() template refs support
yyx990803 May 30, 2022
e5a6fe5
test: e2e test for composition API examples
yyx990803 May 30, 2022
2acb547
types: generate types for v3 apis
yyx990803 May 30, 2022
b3a8ccf
chore: fix test script [ci skip]
yyx990803 May 30, 2022
9f74f20
refactor: move to monorepo
yyx990803 May 31, 2022
ef297d9
chore: fix dep
yyx990803 May 31, 2022
dd39e7e
chore: fix TS 4.7 error
yyx990803 May 31, 2022
d6bdff8
refactor: move src types folder
yyx990803 May 31, 2022
8d7793f
workflow: update release script
yyx990803 May 31, 2022
ff4f1fd
refactor: move more ssr logic into server-renderer package
yyx990803 May 31, 2022
1b49c75
chore: fix unit test
yyx990803 May 31, 2022
1b75846
workflow: fix release check + remove dist file from git index
yyx990803 May 31, 2022
45b932b
release: v2.7.0-alpha.1
yyx990803 May 31, 2022
5673363
feat: expose set/del as named exports
yyx990803 Jun 1, 2022
d317237
feat: add exports field + mjs build
yyx990803 Jun 1, 2022
2b00084
chore: changelog [ci skip]
yyx990803 Jun 1, 2022
7ec8968
release: v2.7.0-alpha.2
yyx990803 Jun 1, 2022
bafb5d4
chore: avoid generating unused dts
yyx990803 Jun 1, 2022
a9a2fae
build: fix mjs build publish
yyx990803 Jun 1, 2022
5fbf2c9
release: v2.7.0-alpha.3
yyx990803 Jun 1, 2022
72194a4
build: use extended tsconfig
yyx990803 Jun 1, 2022
09beea9
chore: move sfc parser
yyx990803 Jun 1, 2022
206f8a7
wip: defineComponent
yyx990803 Jun 1, 2022
ffaf81b
chore: fix type tests
yyx990803 Jun 1, 2022
a00c63b
chore: fix test alias
yyx990803 Jun 1, 2022
c319cc7
fix: guard against non-object provide value
yyx990803 Jun 1, 2022
4dc0c6c
release: v2.7.0-alpha.4
yyx990803 Jun 1, 2022
8be5a87
chore: changelog [ci skip]
yyx990803 Jun 1, 2022
642e7aa
chore: exclude trivial refactors from `git blame` results (#12550)
sodatea Jun 6, 2022
4f2a04e
fix: fix scopedSlots regression
yyx990803 Jun 6, 2022
9ce105a
release: v2.7.0-alpha.5
yyx990803 Jun 6, 2022
c43e642
build: fix build script alias
yyx990803 Jun 6, 2022
c678e31
types: include jsx typing
yyx990803 Jun 9, 2022
5d4c59b
release: v2.7.0-alpha.6
yyx990803 Jun 9, 2022
50f2870
chore: changelog [ci skip]
yyx990803 Jun 9, 2022
06594f6
wip: port @vue/component-compiler-utils
yyx990803 Jun 10, 2022
ed4bbed
refactor: use existing types
yyx990803 Jun 10, 2022
22c457f
wip: strip with
yyx990803 Jun 10, 2022
5bee34c
chore: test pass
yyx990803 Jun 10, 2022
4306cc6
build: fix compiler-sfc build
yyx990803 Jun 10, 2022
ba08e96
wip: compileScript
yyx990803 Jun 10, 2022
846e316
refactor: add types for html parser options
yyx990803 Jun 14, 2022
d6c0c2a
wip: compileScript
yyx990803 Jun 14, 2022
53a5ac9
chore: fix tests
yyx990803 Jun 14, 2022
2bb3659
wip: expose compileScript
yyx990803 Jun 14, 2022
4cb2b7b
wip: expose generateCodeFrame in compiler-sfc
yyx990803 Jun 14, 2022
2ddd259
release: v2.7.0-alpha.7
yyx990803 Jun 14, 2022
cda5176
build: fix compiler build
yyx990803 Jun 14, 2022
b6b5239
release: v2.7.0-alpha.8
yyx990803 Jun 14, 2022
903d9b2
chore: changelog [ci skip]
yyx990803 Jun 14, 2022
452aa9d
wip: handle script analyzed bindings when prefixing identifiers
yyx990803 Jun 15, 2022
d4787e5
test: test case for prefixIdentifiers w/ bindings
yyx990803 Jun 15, 2022
4b19339
feat: resolve components from `<script setup>`
yyx990803 Jun 15, 2022
aa2b1f4
feat: directive resolution for `<script setup>`
yyx990803 Jun 15, 2022
bd8409b
wip: fix component resolution check
yyx990803 Jun 15, 2022
3c2707b
feat: defineExpose() support
yyx990803 Jun 16, 2022
7173ad4
feat: types for `<script setup>` macros
yyx990803 Jun 16, 2022
5a0cc58
release: v2.7.0-alpha.9
yyx990803 Jun 16, 2022
749b96d
feat: export version as named export
yyx990803 Jun 16, 2022
cdfd9f3
fix: avoid warning when accessing _setupProxy
yyx990803 Jun 16, 2022
b3432ff
chore: fix snapshot
yyx990803 Jun 16, 2022
457fe6d
types: align compiler-sfc type exports with v3
yyx990803 Jun 16, 2022
fa2115c
release: v2.7.0-alpha.10
yyx990803 Jun 16, 2022
2726b6d
fix: further align types with v3
yyx990803 Jun 16, 2022
ac88827
release: v2.7.0-alpha.11
yyx990803 Jun 16, 2022
8ce585d
feat: further align compiler-sfc api + expose rewriteDefault
yyx990803 Jun 16, 2022
96cd1d0
release: v2.7.0-alpha.12
yyx990803 Jun 16, 2022
8f5817a
feat(compiler-sfc): support includeAbsolute in transformAssetUrl
yyx990803 Jun 16, 2022
cdfc4c1
fix(compiler-sfc): expose src on custom blocks as well
yyx990803 Jun 17, 2022
efa8a74
feat: warn top level await usage in `<script setup>`
yyx990803 Jun 17, 2022
b2332fa
release: v2.7.0-beta.1
yyx990803 Jun 17, 2022
328ebff
fix(compiler-sfc): do not transform external and data urls in templates
yyx990803 Jun 17, 2022
9b4e179
release: v2.7.0-beta.2
yyx990803 Jun 17, 2022
0fabda7
feat: useCssModules
yyx990803 Jun 18, 2022
2533a36
fix(template-ref): preserve ref removal behavior in non-composition-a…
yyx990803 Jun 20, 2022
52cf912
fix(setup): setup props should pass isReactive check
yyx990803 Jun 20, 2022
769c053
chore: remove code for non-supported :slotted feature
yyx990803 Jun 20, 2022
9d54f8b
chore: remove .only from tests
yyx990803 Jun 20, 2022
2d67641
fix: remove wrong observe toggle, properly disable tracking in setup()
yyx990803 Jun 20, 2022
8ab0074
feat(sfc): css v-bind
yyx990803 Jun 20, 2022
d3916b6
feat(sfc): parse needMap compat
yyx990803 Jun 20, 2022
0f2cede
build: move cssVars logic into compiler-sfc entry
yyx990803 Jun 20, 2022
c9d0e3a
ci: e2e test fix
yyx990803 Jun 20, 2022
de03f69
release: v2.7.0-beta.3
yyx990803 Jun 20, 2022
9b9f2bf
fix(compiler-sfc): properly handle shorthand property in template exp…
yyx990803 Jun 21, 2022
a122bd2
release: v2.7.0-beta.4
yyx990803 Jun 21, 2022
65531f5
fix(types): fix instance type inference for setup() with no return value
yyx990803 Jun 22, 2022
fb7f5f0
chore: remove unused code
yyx990803 Jun 22, 2022
7a3aa3f
fix(watch): fix pre watchers not flushed on mount for nested component
yyx990803 Jun 22, 2022
530b56a
release: v2.7.0-beta.5
yyx990803 Jun 22, 2022
44ab1cd
fix(reactivity): readonly() compat with classes
yyx990803 Jun 23, 2022
089b27c
fix(watch): template ref watcher should fire after owner instance mou…
yyx990803 Jun 26, 2022
20e7e7e
release: v2.7.0-beta.6
yyx990803 Jun 26, 2022
11e4bfe
fix: types/v3-directive not published (#12571)
lsdsjy Jun 27, 2022
5b94562
chore: create build target dir if does not exist (#12581)
caoxiemeihao Jun 27, 2022
bf64c4d
release: v2.7.0-beta.7
yyx990803 Jun 27, 2022
008d78b
fix(compiler-sfc): should transform non relative paths when base opti…
yyx990803 Jun 28, 2022
0ea6c36
release: v2.7.0-beta.8
yyx990803 Jun 28, 2022
326d24a
fix(sfc): only include legacy decorator parser plugin when new plugin…
yyx990803 Jun 30, 2022
8dc1b31
chore: use v2-latest release tag
yyx990803 Jul 1, 2022
1e3a0ce
release: v2.7.0
yyx990803 Jul 1, 2022
89bd1c2
chore: changelog [ci skip]
yyx990803 Jul 1, 2022
8cdd0ac
chore: update 2.7 changelog [ci skip]
yyx990803 Jul 1, 2022
15b9b9b
fix(reactivity): shallowReactive should not unwrap refs (#12605)
deftliang Jul 4, 2022
ff5acb1
fix: fix NaN comparison on state change
yyx990803 Jul 4, 2022
bcb62d1
test: test case for #12597
yyx990803 Jul 4, 2022
e452e9d
fix: export proxyRefs
yyx990803 Jul 4, 2022
86fb6bd
chore(benchmarks:ssr): createRenderer function path error (#12601)
Jouryjc Jul 4, 2022
ff2d52f
chore(types): remove unnecessary type assertion (#12563)
webfansplz Jul 4, 2022
6f0d2e6
chore(compiler-sfc): replace `substr` with `slice` (#12564)
webfansplz Jul 4, 2022
caceece
fix(compiler-sfc): fix template usage check edge case for v-on statem…
yyx990803 Jul 4, 2022
427028a
release: v2.7.1
yyx990803 Jul 4, 2022
d45bbea
feat: allow passing directive definition directly to h() (#12590)
KaelWD Jul 4, 2022
fb93c1b
feat(types): define component improvements (#12612)
yyx990803 Jul 5, 2022
1294385
fix(compiler-sfc): preserve old deindent behavior for pug
yyx990803 Jul 5, 2022
e244687
release: v2.7.2
yyx990803 Jul 5, 2022
94ccca2
fix(types): allow slot attribute
yyx990803 Jul 6, 2022
360272b
fix(ssr/reactivity): fix composition api behavior in SSR
yyx990803 Jul 6, 2022
6d1dbee
fix: add renderTracked/Triggered merge strategy (#12616)
chearon Jul 6, 2022
15e6f1d
release: v2.7.3
yyx990803 Jul 6, 2022
ca7daef
fix(ssr/reactivity): fix array setting error at created in ssr [#1263…
freedomlang Jul 8, 2022
b70a258
fix(compiler-sfc): use safer deindent default for compatibility with …
yyx990803 Jul 8, 2022
26ff4bc
fix(types): global component registration type compat w/ defineComponent
yyx990803 Jul 8, 2022
9d12106
feat: defineAsyncComponent
yyx990803 Jul 8, 2022
559600f
feat: support functional components in defineComponent
yyx990803 Jul 8, 2022
012e10c
fix(build): fix mjs dual package hazard
yyx990803 Jul 8, 2022
8904ca7
fix(watch): fix watchers triggered in mounted hook
yyx990803 Jul 8, 2022
dc8a68e
fix: pass element creation helper to static render fns for functional…
yyx990803 Jul 8, 2022
1d5a411
fix(types): fix type inference when using components option
yyx990803 Jul 8, 2022
d3add06
fix(types): fix this.$slots type for defineComponent
yyx990803 Jul 8, 2022
f8de4ca
fix(types): fix missing instance properties on defineComponent this
yyx990803 Jul 8, 2022
018d29a
release: v2.7.4
yyx990803 Jul 8, 2022
04b4703
fix(sfc): fix sfc name inference type check
yyx990803 Jul 12, 2022
0825d30
fix: do not set currentInstance in beforeCreate
yyx990803 Jul 12, 2022
98fb01c
fix(reactivity): fix watch behavior inconsistency + deep ref shallow …
yyx990803 Jul 12, 2022
a6e7498
fix: detect property add/deletion on reactive objects from setup when…
yyx990803 Jul 12, 2022
0198f9f
chore: document TS changes in changelog [ci skip]
yyx990803 Jul 13, 2022
498dc1d
chore(changelog): fix dead link (#12646) [ci skip]
watonyweng Jul 13, 2022
08fb4a2
fix: add missing export from `vue.runtime.mjs` (#12648)
danielroe Jul 13, 2022
005e52d
fix(types): support Vue interface augmentations in defineComponent
yyx990803 Jul 13, 2022
1a2c3c2
fix(watch): fix deep watch for structures containing raw refs
yyx990803 Jul 13, 2022
cdd2df6
release: v2.7.5
yyx990803 Jul 13, 2022
52a5979
fix(types): fix $children and $root instance types
yyx990803 Jul 15, 2022
e0a9546
fix(types): fix missing expose() type on setup context
yyx990803 Jul 15, 2022
fffbb9e
fix(types): $refs can also contain ComponentPublicInstance (#12659)
NikhilVerma Jul 15, 2022
9ed6847
test: add test for type casting $refs to defineComponent instance type
yyx990803 Jul 15, 2022
7d4a772
release: v2.7.6
yyx990803 Jul 15, 2022
46ec648
fix(types): vue.d.ts should use relative import to v3-component-publi…
sandersn Jul 16, 2022
25ffdb6
fix(watch): fix queueing multiple post watchers
yyx990803 Jul 16, 2022
ea5d0f3
fix(inject): fix edge case of provided with async-mutated getters
yyx990803 Jul 16, 2022
67760f8
fix(setup): ensure setup context slots can be accessed immediately
yyx990803 Jul 16, 2022
e8d3a7d
fix(codegen): script setup should not attempt to resolve native eleme…
yyx990803 Jul 16, 2022
fc16281
release: v2.7.7
yyx990803 Jul 16, 2022
135d074
chore(sfc): remove useless vue-template-es2015-compiler (#12677)
troy351 Jul 20, 2022
adf3ac8
feat(setup): support listeners on setup context + `useListeners()` he…
yyx990803 Jul 20, 2022
ce6fc14
types: fix manual api types for useAttrs/useListeners
yyx990803 Jul 22, 2022
fabc1cf
fix(types): avoid circular type inference between v2 and v3 instance …
yyx990803 Jul 22, 2022
a695c5a
fix(sfc): align `<script setup>` component resolution edge case with …
edison1105 Jul 22, 2022
ba7dd2c
fix(types): export `defineAsyncComponent` type (#12684)
danielroe Jul 22, 2022
2af751b
fix(reactivity): fix shallowReactive nested ref setting edge cases
yyx990803 Jul 22, 2022
1d8b892
release: v2.7.8
yyx990803 Jul 22, 2022
00458cd
fix(types): Make SetupBindings optional on ExtendedVue and CombinedVu…
jfparadis-appomni Aug 9, 2022
5c742eb
fix(compiler-sfc): allow full hostnames in asset url base (#12732)
jonaskuske Aug 15, 2022
4b37b56
fix(types): fix options suggestions when using defineComponent
yyx990803 Aug 15, 2022
bd89ce5
fix: ensure render watcher of manually created instance is correctly …
yyx990803 Aug 15, 2022
f0057b1
fix(watch): avoid pre watcher firing on unmount
yyx990803 Aug 15, 2022
80d1baf
feat(types): export DefineComponent
yyx990803 Aug 18, 2022
b4bf4c5
fix(types): allow attaching unknown options to defined component
yyx990803 Aug 18, 2022
89a6b5e
feat(types): support mixins inference for new Vue() (#12737)
gulewei Aug 18, 2022
5221d4d
fix(compiler-sfc): rewriteDefault for class with decorators (#12747)
linshuohao Aug 18, 2022
2263948
fix: directives shorthand normalize error (#12744)
JuniorTour Aug 18, 2022
9eb8ea5
chore: fix some legacy doc urls in warnings and readme (#12725) [ci s…
Justineo Aug 18, 2022
bba6b3d
feat(types): enhance type for onErrorCaptured (#12735)
nooooooom Aug 18, 2022
165a14a
fix(ssr): fix on-component directives rendering (#12661)
manniL Aug 18, 2022
7161176
fix: fix effect scope tracking for manually created instances
yyx990803 Aug 18, 2022
8521f9d
fix(types): fix missing error for accessing undefined instance proper…
yyx990803 Aug 19, 2022
1561888
release: v2.7.9
yyx990803 Aug 19, 2022
810f6d1
fix(types): Add missing type parameter constraints (#12754)
sandersn Aug 22, 2022
46ca7bc
fix(compiler-sfc): avoid deindent when lang is jsx/tsx
yyx990803 Aug 23, 2022
e0b26c4
fix: fix parent of multi-nested HOC $el not updating (#12757)
nooooooom Aug 23, 2022
ee57d9f
release: v2.7.10
yyx990803 Aug 23, 2022
d189b4b
chore: special sponsor [ci skip]
yyx990803 Sep 1, 2022
60d268c
chore: cache bust svg [ci skip]
yyx990803 Sep 1, 2022
2f335b2
fix(sfc): remove sfc scoped deep syntax deprecation warnings
yyx990803 Oct 11, 2022
27eed82
fix(types): vue 3 directive type compatibility (#12792)
xiaoxiangmoe Oct 11, 2022
4a0d88e
fix(reactivity): use WeakMap for proxy/raw checks, compat with non-ex…
yyx990803 Oct 11, 2022
5d26f81
fix(reactivity): check skip first before checking ref when creating o…
xiersa Oct 11, 2022
87f69aa
fix(types): support Ref and function types in tsx ref attribute (#12759)
shiluo34 Oct 11, 2022
fb13930
fix(sfc): prune returned bindings for non-TS as well
yyx990803 Oct 11, 2022
bc5b92a
fix(types): fix error with options watch (#12779)
wfk007 Oct 11, 2022
0d6d972
fix(compiler-sfc): export parseComponent for compat with fork-ts-chec…
yyx990803 Oct 11, 2022
e1342df
fix(setup): setup hook should be called before beforeCreate
yyx990803 Oct 11, 2022
cc14d44
chore: bump build deps
yyx990803 Oct 11, 2022
738f4b3
fix(build): enforce LF line ending in built files
yyx990803 Oct 11, 2022
8880b55
perf: improve unsub perf for deps with massive amount of subs
yyx990803 Oct 11, 2022
c61395d
release: v2.7.11
yyx990803 Oct 11, 2022
e80cd09
Revert "fix(setup): setup hook should be called before beforeCreate"
yyx990803 Oct 12, 2022
4cad410
release: v2.7.12
yyx990803 Oct 12, 2022
8e26261
fix(types): style attribute svg (#12800)
blake-newman Oct 12, 2022
5960f05
fix(watch): avoid traversing objects that are marked non-reactive (#1…
nooooooom Oct 12, 2022
800207c
fix(effectScope): calling off() of a detached scope should not break …
yyx990803 Oct 14, 2022
df281b0
release: v2.7.13
yyx990803 Oct 14, 2022
259c706
chore: fix changelog rendering [ci skip]
yyx990803 Oct 15, 2022
a7a71ad
Update the dev to main in the PR template (#12834)
Jinjiang Oct 16, 2022
6d9aac8
chore: fix some broken links to v2 docs (#12839)
Jinjiang Oct 19, 2022
a5afc4d
chore: fix typo (#12863)
webfansplz Nov 9, 2022
0b3cf7d
fix(types): stricter type condition for `EventHandlers` (#12840)
webfansplz Nov 9, 2022
f7db7f3
fix(types): fix spreading VNodeData in tsx (#12789)
k-furusho Nov 9, 2022
5aed733
test: add test case for #12778
yyx990803 Nov 9, 2022
5e3d4e9
fix(compiler-sfc): fix template usage check edge case for v-slot dest…
a161803398 Nov 9, 2022
d1899ca
fix(provide/inject): do not mutate original provide options during merge
yyx990803 Nov 9, 2022
29b5f58
fix(reactivity): avoid using WeakMap for IE compatibility
yyx990803 Nov 9, 2022
9dd006b
release: v2.7.14
yyx990803 Nov 9, 2022
ca11dc6
chore: fix typo (#12894)
yuhang-dong Dec 6, 2022
2e57061
chore: comment typos (#12878)
FlyingCaiChong Dec 14, 2022
34c6192
chore: update links (http=https) (#12911)
Arhell Dec 27, 2022
0e8511a
chore: fix typo in apiAsyncComponent.ts (#12912)
kwarabei Dec 27, 2022
d52fbff
chore: fix typo in utils.ts (#12927) [skip ci]
huxinfeng Jan 12, 2023
a9ca2d8
chore: typos (#12949)
rj1 Feb 4, 2023
30fd4b5
fix(namespace): apply every namespace in slot when call applyNS (#11315)
zhangzhonghe Apr 26, 2020
446b2ce
refactor: extract variable
zhangzhonghe Jan 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 0 additions & 23 deletions .babelrc.js

This file was deleted.

131 changes: 0 additions & 131 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

23 changes: 0 additions & 23 deletions .flowconfig

This file was deleted.

4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# chore: move to typescript
af9fc2bcff31d5baa413039818a9b3e011deccaf
# workflow: remove eslint, apply prettier
72aed6a149b94b5b929fb47370a7a6d4cb7491c5
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
35 changes: 21 additions & 14 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
- Make sure `npm test` passes. (see [development setup](#development-setup))

- If adding a new feature:

- Add accompanying test case.
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.

Expand All @@ -35,12 +36,12 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before

## Development Setup

You will need [Node.js](http://nodejs.org) **version 8+**, [Java Runtime Environment](http://www.oracle.com/technetwork/java/javase/downloads/index.html) (for running Selenium server during e2e tests) and [yarn](https://yarnpkg.com/en/docs/install).
You will need [Node.js](https://nodejs.org) **version 12+** and [pnpm](https://pnpm.io/).

After cloning the repo, run:

``` bash
$ yarn # install the dependencies of the project
```bash
$ pnpm i # install the dependencies of the project
```

### Committing Changes
Expand All @@ -49,17 +50,20 @@ Commit messages should follow the [commit message convention](./COMMIT_CONVENTIO

### Commonly used NPM scripts

``` bash
```bash
# watch and auto re-build dist/vue.js
$ npm run dev

# watch and auto re-run unit tests in Chrome
$ npm run dev:test
# run unit tests
$ npm run test:unit

# run specific tests in watch mode
$ npx vitest {test_file_name_pattern_to_match}

# build all dist files, including npm packages
$ npm run build

# run the full test suite, including linting/type checking
# run the full test suite, including unit/e2e/type checking
$ npm test
```

Expand All @@ -79,9 +83,15 @@ The default test script will do the following: lint with ESLint -> type check wi

See [dist/README.md](https://github.com/vuejs/vue/blob/dev/dist/README.md) for more details on dist files.

- **`flow`**: contains type declarations for [Flow](https://flowtype.org/). These declarations are loaded **globally** and you will see them used in type annotations in normal source code.
- **`types`**: contains public types published to npm (note the types shipped here could be different from `src/types`). These were hand-authored before we moved the codebase from Flow to TypeScript. To ensure backwards compatibility, we keep using these manually authored types.

Types for new features added in 2.7 (Composition API) are auto-generated from source code as `types/v3-generated.d.ts` and re-exported from `types/index.d.ts`.

- **`packages`**:

- **`packages`**: contains `vue-server-renderer` and `vue-template-compiler`, which are distributed as separate NPM packages. They are automatically generated from the source code and always have the same version with the main `vue` package.
- `vue-server-renderer` and `vue-template-compiler` are distributed as separate NPM packages. They are automatically generated from the source code and always have the same version with the main `vue` package.

- `compiler-sfc` is an internal package that is distributed as part of the main `vue` package. It's aliased and can be imported as `vue/compiler-sfc` similar to Vue 3.

- **`test`**: contains all tests. The unit tests are written with [Jasmine](http://jasmine.github.io/2.3/introduction.html) and run with [Karma](http://karma-runner.github.io/0.13/index.html). The e2e tests are written for and run with [Nightwatch.js](http://nightwatchjs.org/).

Expand Down Expand Up @@ -111,16 +121,13 @@ The default test script will do the following: lint with ESLint -> type check wi

Entry files for dist builds are located in their respective platform directory.

Each platform module contains three parts: `compiler`, `runtime` and `server`, corresponding to the three directories above. Each part contains platform-specific modules/utilities which are imported and injected to the core counterparts in platform-specific entry files. For example, the code implementing the logic behind `v-bind:class` is in `platforms/web/runtime/modules/class.js` - which is imported in `entries/web-runtime.js` and used to create the browser-specific vdom patching function.
Each platform module contains three parts: `compiler`, `runtime` and `server`, corresponding to the three directories above. Each part contains platform-specific modules/utilities which are imported and injected to the core counterparts in platform-specific entry files. For example, the code implementing the logic behind `v-bind:class` is in `platforms/web/runtime/modules/class.js` - which is imported in `platforms/web/entry-runtime.ts` and used to create the browser-specific vdom patching function.

- **`sfc`**: contains single-file component (`*.vue` files) parsing logic. This is used in the `vue-template-compiler` package.

- **`shared`**: contains utilities shared across the entire codebase.

- **`types`**: contains TypeScript type definitions

- **`test`**: contains type definitions tests

- **`types`**: contains type declarations added when we ported the codebase from Flow to TypeScript. These types should be considered internal - they care less about type inference for end-user scenarios and prioritize working with internal source code.

## Financial Contribution

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [ ] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [ ] It's submitted to the `main` branch for v2.x (or to a previous version branch)
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included
Expand Down