
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@bedard/vue-forward
Advanced tools
@bedard/vue-forwardBehold, the missing createApp function from Vue 2.7!
Forward compatibility is key to migrating large, complex codebases. Vue 2.7 provides many 3.x features, but it's missing the critical createApp function. This project implements that function, allowing you to minimize the diff on a migration branch.
A typical migration might look like this...
new Vue(...) to createApp(...)Now that we know the plan, npm install @bedard/vue-forward
A core concept in Vue 3 is the application instance. It's responsible for the root component and registering any globals. Here we'll use it to create a component tree and mount it to the DOM.
import { createApp } from '@bedard/vue-forward'
const app = createApp(App)
.use(router)
.mixin(i18n)
app.mount('#app')
For any root props or event listeners, we'll use the same naming conventions as Vue 3.
createApp(User, {
username: 'bob',
onClick() {
// ...
},
})
Attach to the DOM using mount. This uses 3.x mouting behavior, inserting as a child node rather than replacing the target.
app.mount('#target')
Call unmount to destroy the instance. Once unmounted, an app cannot be mounted again.
app.unmount()
Use createStore and createRouter to create a forward compatible stores and routers.
import { createApp, createRouter, createStore, createWebHistory } from '@bedard/vue-forward'
const router = createRouter({
history: createWebHistory(),
routes: [ ... ],
})
const store = createStore({
state: { ... }
})
createApp(App)
.use(store)
.use(router)
FAQs
The missing createApp function from Vue 2.7
The npm package @bedard/vue-forward receives a total of 17 weekly downloads. As such, @bedard/vue-forward popularity was classified as not popular.
We found that @bedard/vue-forward demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.