Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.2.1](https://github.com/nuxt/framework/compare/@nuxt/app@0.2.0...@nuxt/app@0.2.1) (2021-04-06) | ||
### Bug Fixes | ||
* use `globalThis` instead of `global` ([#59](https://github.com/nuxt/framework/issues/59)) ([b12cbc5](https://github.com/nuxt/framework/commit/b12cbc5ed2f5448ba9c896a14730c09a6ee88e1d)) | ||
* **app, nitro:** fix `app:rendered` hook ([#53](https://github.com/nuxt/framework/issues/53)) ([7f97015](https://github.com/nuxt/framework/commit/7f97015c7443caacbb914ff3a0bc99149b66b3a6)) | ||
# 0.2.0 (2021-04-04) | ||
@@ -8,0 +20,0 @@ |
@@ -16,8 +16,8 @@ <%= nuxtOptions.vite ? "import('vite/dynamic-import-polyfill')" : '' %> | ||
await app.$nuxt.hooks.callHook('app:created', app) | ||
await app.$nuxt.hooks.callHook('app:beforeMount', app) | ||
await nuxt.hooks.callHook('app:created', app) | ||
await nuxt.hooks.callHook('app:beforeMount', app) | ||
app.mount('#__nuxt') | ||
await app.$nuxt.hooks.callHook('app:mounted', app) | ||
await nuxt.hooks.callHook('app:mounted', app) | ||
await nextTick() | ||
@@ -24,0 +24,0 @@ nuxt.isHydrating = false |
@@ -15,9 +15,5 @@ import { createApp } from 'vue' | ||
await app.$nuxt.hooks.callHook('app:created', app) | ||
await nuxt.hooks.callHook('app:created', app) | ||
nuxt.hooks.hook('vue-renderer:done', | ||
() => nuxt.hooks.callHook('app:rendered', app) | ||
) | ||
return app | ||
} |
import { $fetch } from 'ohmyfetch' | ||
import _global from '@nuxt/un/runtime/global' | ||
import logs from 'nuxt/app/plugins/logs.client.dev' | ||
@@ -8,3 +7,5 @@ import progress from 'nuxt/app/plugins/progress.client' | ||
_global.$fetch = $fetch | ||
if (!globalThis.$fetch) { | ||
globalThis.$fetch = $fetch | ||
} | ||
@@ -11,0 +12,0 @@ const plugins = [ |
{ | ||
"name": "@nuxt/app", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"repository": "nuxt/framework", | ||
@@ -15,5 +15,5 @@ "license": "MIT", | ||
"hookable": "^4.4.1", | ||
"ohmyfetch": "^0.1.8", | ||
"ohmyfetch": "^0.2.0", | ||
"vue": "^3.0.11", | ||
"vue-router": "^4.0.5", | ||
"vue-router": "^4.0.6", | ||
"vuex5": "^0.5.0-testing.3" | ||
@@ -34,3 +34,4 @@ }, | ||
] | ||
} | ||
}, | ||
"gitHead": "7b5bd53a02aa9ceed729403e48aa5c338e96fe56" | ||
} |
26221
511
+ Addeddestr@1.2.2(transitive)
+ Addedohmyfetch@0.2.0(transitive)
+ Addedufo@0.6.12(transitive)
- Removedohmyfetch@0.1.8(transitive)
Updatedohmyfetch@^0.2.0
Updatedvue-router@^4.0.6