Skip to content

Commit 2598752

Browse files
committed
chore: Merge branch 'master' of github.com:vuejs/vue-next into akryum/on-server-prefetch
2 parents 3d42c3a + d5cce47 commit 2598752

File tree

4 files changed

+37
-34
lines changed

4 files changed

+37
-34
lines changed

packages/runtime-core/src/component.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import {
5656
markAttrsAccessed
5757
} from './componentRenderUtils'
5858
import { startMeasure, endMeasure } from './profiling'
59-
import { devtoolsComponentAdded } from './devtools'
6059

6160
export type Data = Record<string, unknown>
6261

@@ -486,10 +485,6 @@ export function createComponentInstance(
486485
instance.root = parent ? parent.root : instance
487486
instance.emit = emit.bind(null, instance)
488487

489-
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
490-
devtoolsComponentAdded(instance)
491-
}
492-
493488
return instance
494489
}
495490

packages/runtime-core/src/helpers/useSsrContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export const useSSRContext = <T = Record<string, any>>() => {
99
if (!ctx) {
1010
warn(
1111
`Server rendering context not provided. Make sure to only call ` +
12-
`useSsrContext() conditionally in the server build.`
12+
`useSSRContext() conditionally in the server build.`
1313
)
1414
}
1515
return ctx
1616
} else if (__DEV__) {
17-
warn(`useSsrContext() is not supported in the global build.`)
17+
warn(`useSSRContext() is not supported in the global build.`)
1818
}
1919
}

packages/runtime-core/src/renderer.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ import { createHydrationFunctions, RootHydrateFunction } from './hydration'
7272
import { invokeDirectiveHook } from './directives'
7373
import { startMeasure, endMeasure } from './profiling'
7474
import { ComponentPublicInstance } from './componentPublicInstance'
75-
import { devtoolsComponentRemoved, devtoolsComponentUpdated } from './devtools'
75+
import {
76+
devtoolsComponentAdded,
77+
devtoolsComponentRemoved,
78+
devtoolsComponentUpdated
79+
} from './devtools'
7680
import { initFeatureFlags } from './featureFlags'
7781
import { isAsyncWrapper } from './apiAsyncComponent'
7882

@@ -1412,6 +1416,10 @@ function baseCreateRenderer(
14121416
}
14131417
instance.isMounted = true
14141418

1419+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
1420+
devtoolsComponentAdded(instance)
1421+
}
1422+
14151423
// #2458: deference mount-only object parameters to prevent memleaks
14161424
initialVNode = container = anchor = null as any
14171425
} else {

yarn.lock

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@
630630
fastq "^1.6.0"
631631

632632
"@rollup/plugin-commonjs@^17.0.0":
633-
version "17.0.0"
634-
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-17.0.0.tgz#2ae2228354cf0fbba6cf9f06f30b2c66a974324c"
635-
integrity sha512-/omBIJG1nHQc+bgkYDuLpb/V08QyutP9amOrJRUSlYJZP+b/68gM//D8sxJe3Yry2QnYIr3QjR3x4AlxJEN3GA==
633+
version "17.1.0"
634+
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-17.1.0.tgz#757ec88737dffa8aa913eb392fade2e45aef2a2d"
635+
integrity sha512-PoMdXCw0ZyvjpCMT5aV4nkL0QywxP29sODQsSGeDpr/oI49Qq9tRtAsb/LbYbDzFlOydVEqHmmZWFtXJEAX9ew==
636636
dependencies:
637637
"@rollup/pluginutils" "^3.1.0"
638638
commondir "^1.0.1"
@@ -650,9 +650,9 @@
650650
"@rollup/pluginutils" "^3.0.8"
651651

652652
"@rollup/plugin-node-resolve@^11.0.0":
653-
version "11.1.0"
654-
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.1.0.tgz#fa0f888297b3aebcd6534e8aba4e6fe01997649a"
655-
integrity sha512-ouBBppRdWJKCllDXGzJ7ZIkYbaq+5TmyP0smt1vdJCFfoZhLi31vhpmjLhyo8lreHf4RoeSNllaWrvSqHpHRog==
653+
version "11.1.1"
654+
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.1.1.tgz#47bc34252914794a1b06fb50371d7520a03f91f3"
655+
integrity sha512-zlBXR4eRS+2m79TsUZWhsd0slrHUYdRx4JF+aVQm+MI0wsKdlpC2vlDVjmlGvtZY1vsefOT9w3JxvmWSBei+Lg==
656656
dependencies:
657657
"@rollup/pluginutils" "^3.1.0"
658658
"@types/resolve" "1.17.1"
@@ -2621,9 +2621,9 @@ eslint-visitor-keys@^2.0.0:
26212621
integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==
26222622

26232623
eslint@^7.7.0:
2624-
version "7.18.0"
2625-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.18.0.tgz#7fdcd2f3715a41fe6295a16234bd69aed2c75e67"
2626-
integrity sha512-fbgTiE8BfUJZuBeq2Yi7J3RB3WGUQ9PNuNbmgi6jt9Iv8qrkxfy19Ds3OpL1Pm7zg3BtTVhvcUZbIRQ0wmSjAQ==
2624+
version "7.19.0"
2625+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.19.0.tgz#6719621b196b5fad72e43387981314e5d0dc3f41"
2626+
integrity sha512-CGlMgJY56JZ9ZSYhJuhow61lMPPjUzWmChFya71Z/jilVos7mR/jPgaEfVGgMBY5DshbKdG8Ezb8FDCHcoMEMg==
26272627
dependencies:
26282628
"@babel/code-frame" "^7.0.0"
26292629
"@eslint/eslintrc" "^0.3.0"
@@ -3092,6 +3092,11 @@ fsevents@^2.1.2, fsevents@~2.1.2:
30923092
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805"
30933093
integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==
30943094

3095+
fsevents@~2.3.1:
3096+
version "2.3.1"
3097+
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.1.tgz#b209ab14c61012636c8863507edf7fb68cc54e9f"
3098+
integrity sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==
3099+
30953100
function-bind@^1.1.1:
30963101
version "1.1.1"
30973102
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
@@ -4701,11 +4706,6 @@ lodash.ismatch@^4.4.0:
47014706
resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37"
47024707
integrity sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=
47034708

4704-
4705-
version "4.1.2"
4706-
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
4707-
integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=
4708-
47094709
lodash.sortby@^4.7.0:
47104710
version "4.7.0"
47114711
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
@@ -4726,7 +4726,7 @@ lodash.templatesettings@^4.0.0:
47264726
dependencies:
47274727
lodash._reinterpolate "^3.0.0"
47284728

4729-
lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.4, lodash@~4.17.15:
4729+
lodash@4.x, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.4, lodash@~4.17.15:
47304730
version "4.17.20"
47314731
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
47324732
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
@@ -6370,11 +6370,11 @@ rollup-pluginutils@^2.3.1:
63706370
estree-walker "^0.6.1"
63716371

63726372
rollup@^2.26.11:
6373-
version "2.38.0"
6374-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.38.0.tgz#57942d5a10826cb12ed1f19c261f774efa502d2d"
6375-
integrity sha512-ay9zDiNitZK/LNE/EM2+v5CZ7drkB2xyDljvb1fQJCGnq43ZWRkhxN145oV8GmoW1YNi4sA/1Jdkr2LfawJoXw==
6373+
version "2.38.4"
6374+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.38.4.tgz#1b84ea8728c73b1a00a6a6e9c630ec8c3fe48cea"
6375+
integrity sha512-B0LcJhjiwKkTl79aGVF/u5KdzsH8IylVfV56Ut6c9ouWLJcUK17T83aZBetNYSnZtXf2OHD4+2PbmRW+Fp5ulg==
63766376
optionalDependencies:
6377-
fsevents "~2.1.2"
6377+
fsevents "~2.3.1"
63786378

63796379
rsvp@^4.8.4:
63806380
version "4.8.5"
@@ -6431,9 +6431,9 @@ sane@^4.0.3:
64316431
walker "~1.0.5"
64326432

64336433
sass@^1.26.9:
6434-
version "1.32.5"
6435-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.5.tgz#2882d22ad5748c05fa9bff6c3b0ffbc4f4b9e1dc"
6436-
integrity sha512-kU1yJ5zUAmPxr7f3q0YXTAd1oZjSR1g3tYyv+xu0HZSl5JiNOaE987eiz7wCUvbm4I9fGWGU2TgApTtcP4GMNQ==
6434+
version "1.32.6"
6435+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.32.6.tgz#e3646c8325cd97ff75a8a15226007f3ccd221393"
6436+
integrity sha512-1bcDHDcSqeFtMr0JXI3xc/CXX6c4p0wHHivJdru8W7waM7a1WjKMm4m/Z5sY7CbVw4Whi2Chpcw6DFfSWwGLzQ==
64376437
dependencies:
64386438
chokidar ">=2.0.0 <4.0.0"
64396439

@@ -7185,17 +7185,17 @@ trim-right@^1.0.1:
71857185
integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=
71867186

71877187
ts-jest@^26.2.0:
7188-
version "26.4.4"
7189-
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.4.4.tgz#61f13fb21ab400853c532270e52cc0ed7e502c49"
7190-
integrity sha512-3lFWKbLxJm34QxyVNNCgXX1u4o/RV0myvA2y2Bxm46iGIjKlaY0own9gIckbjZJPn+WaJEnfPPJ20HHGpoq4yg==
7188+
version "26.5.0"
7189+
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.5.0.tgz#3e3417d91bc40178a6716d7dacc5b0505835aa21"
7190+
integrity sha512-Ya4IQgvIFNa2Mgq52KaO8yBw2W8tWp61Ecl66VjF0f5JaV8u50nGoptHVILOPGoI7SDnShmEqnYQEmyHdQ+56g==
71917191
dependencies:
71927192
"@types/jest" "26.x"
71937193
bs-logger "0.x"
71947194
buffer-from "1.x"
71957195
fast-json-stable-stringify "2.x"
71967196
jest-util "^26.1.0"
71977197
json5 "2.x"
7198-
lodash.memoize "4.x"
7198+
lodash "4.x"
71997199
make-error "1.x"
72007200
mkdirp "1.x"
72017201
semver "7.x"

0 commit comments

Comments
 (0)