From 0f296f5c68b2bcc326ccc390744fe42464ddb254 Mon Sep 17 00:00:00 2001 From: dicky Date: Sun, 31 May 2020 18:49:10 -0700 Subject: [PATCH] Update dotnetify version. --- Demo/React/HelloWorld.WebPack/HelloWorld.WebPack.csproj | 4 ++-- Demo/React/HelloWorld.WebPack/package-lock.json | 6 +++--- Demo/React/HelloWorld.WebPack/package.json | 2 +- Demo/React/HelloWorld.WebPack/src/HelloWorld-withHook.tsx | 3 +-- Demo/React/HelloWorld.WebPack/src/HelloWorld.tsx | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Demo/React/HelloWorld.WebPack/HelloWorld.WebPack.csproj b/Demo/React/HelloWorld.WebPack/HelloWorld.WebPack.csproj index d50e0d64..49350149 100644 --- a/Demo/React/HelloWorld.WebPack/HelloWorld.WebPack.csproj +++ b/Demo/React/HelloWorld.WebPack/HelloWorld.WebPack.csproj @@ -1,7 +1,7 @@ - netcoreapp3.0 + netcoreapp3.1 @@ -9,7 +9,7 @@ - + diff --git a/Demo/React/HelloWorld.WebPack/package-lock.json b/Demo/React/HelloWorld.WebPack/package-lock.json index 796198f4..00e55c6c 100644 --- a/Demo/React/HelloWorld.WebPack/package-lock.json +++ b/Demo/React/HelloWorld.WebPack/package-lock.json @@ -2026,9 +2026,9 @@ "dev": true }, "dotnetify": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/dotnetify/-/dotnetify-3.7.1.tgz", - "integrity": "sha512-IoGvgfqn5vBhkwJ+VJuz3p20mYcA7xbNnUqaHqhNyeCHpNERWFQGnxdvdWWFZnRoHZ3PKuUHo70JDWNbgzWEkw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/dotnetify/-/dotnetify-4.0.0.tgz", + "integrity": "sha512-V+Ed2sT5xCe9IGfD8/T1C+RCCeko2hnEz8yZ1zr7KjADFugqHltxghajFUZbS1LpVqS/0iaBzedQkHm9AulrBg==", "requires": { "@aspnet/signalr": "~1.1.4", "jquery-deferred": "~0.3.1", diff --git a/Demo/React/HelloWorld.WebPack/package.json b/Demo/React/HelloWorld.WebPack/package.json index 4e463f79..e51debb3 100644 --- a/Demo/React/HelloWorld.WebPack/package.json +++ b/Demo/React/HelloWorld.WebPack/package.json @@ -11,7 +11,7 @@ ] }, "dependencies": { - "dotnetify": "^3.7.1", + "dotnetify": "^4.0.0", "react": "~16.11.0", "react-dom": "~16.11.0" }, diff --git a/Demo/React/HelloWorld.WebPack/src/HelloWorld-withHook.tsx b/Demo/React/HelloWorld.WebPack/src/HelloWorld-withHook.tsx index a1b08cd4..583e7e05 100644 --- a/Demo/React/HelloWorld.WebPack/src/HelloWorld-withHook.tsx +++ b/Demo/React/HelloWorld.WebPack/src/HelloWorld-withHook.tsx @@ -1,5 +1,4 @@ -import * as React from 'react'; -//@ts-ignore +import React from 'react'; import { useConnect } from 'dotnetify'; interface State { diff --git a/Demo/React/HelloWorld.WebPack/src/HelloWorld.tsx b/Demo/React/HelloWorld.WebPack/src/HelloWorld.tsx index 1e254428..d56e1852 100644 --- a/Demo/React/HelloWorld.WebPack/src/HelloWorld.tsx +++ b/Demo/React/HelloWorld.WebPack/src/HelloWorld.tsx @@ -1,4 +1,4 @@ -import * as React from 'react'; +import React from 'react'; import dotnetify from 'dotnetify'; interface State {