Skip to content

Commit

Permalink
Merge pull request #301 from dsuryd/update-signalr-client-package
Browse files Browse the repository at this point in the history
Update SignalR client package (@aspnet/signalr -> @microsoft/signalr)
  • Loading branch information
dsuryd authored Oct 1, 2021
2 parents 07dee66 + 304317e commit ce489de
Show file tree
Hide file tree
Showing 14 changed files with 146 additions and 198 deletions.
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/APIs/Connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Use **hubOptions.connectionBuilder** to gain access to the `HubConnectionBuilder
For example, the following code will configure the client to use the MessagePack binary protocol:

```jsx
import { MessagePackHubProtocol } from '@aspnet/signalr-protocol-msgpack';
import { MessagePackHubProtocol } from '@microsoft/signalr-protocol-msgpack';

const protocol = new MessagePackHubProtocol();
dotnetify.hubOptions.connectionBuilder = builder => builder.withHubProtocol(protocol);
Expand Down
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/FromScratchScriptTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Add a new file _wwwroot/index.html_ with the following content:
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@latest/dist/dotnetify-react.min.js"></script>

<script src="HelloWorld.js" type="text/babel"></script>
Expand Down
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/GetStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ If using script tags, include _React_, _signalR_, and _dotNetify_ from their res
```html
<script src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@latest/dist/dotnetify-react.min.js"></script>
```

Expand Down
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/Knockout/FromScratchScriptTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Add a new file _wwwroot/index.html_ with the following content:
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@3/dist/dotnetify-ko.min.js"></script>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/Knockout/GetStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ If using script tags, include _jQuery_, _knockout_, _signalR_, and _dotNetify_ f
```html
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@3/dist/dotnetify-ko.min.js"></script>
```
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/Vue/FromScratchScriptTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Add a new file _wwwroot/index.html_ with the following content:
</div>

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@3/dist/dotnetify-vue.min.js"></script>

<script>
Expand Down
2 changes: 1 addition & 1 deletion DevApp.ViewModels/Docs/Vue/GetStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If using script tags, include _vue_, _signalR_, and _dotNetify_ from their respe

```html
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1/dist/browser/signalr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microsoft/signalr@5/dist/browser/signalr.min.js"></script>
<script src="https://unpkg.com/dotnetify@3/dist/dotnetify-vue.min.js"></script>
```

Expand Down
2 changes: 1 addition & 1 deletion DevApp/client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dotnetify.debug = true;

// Enable this to switch from JSON to MessagePack protocol
/*
import { MessagePackHubProtocol } from '@aspnet/signalr-protocol-msgpack';
import { MessagePackHubProtocol } from '@microsoft/signalr-protocol-msgpack';
const protocol = new MessagePackHubProtocol();
dotnetify.hubOptions.connectionBuilder = builder => builder.withHubProtocol(protocol);
*/
Expand Down
2 changes: 1 addition & 1 deletion DevApp/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"LICENSE.*"
],
"dependencies": {
"@aspnet/signalr": "~1.1.4",
"@microsoft/signalr": "~5.0.9",
"jquery-deferred": "~0.3.1",
"prop-types": "~15.6.1"
},
Expand Down
122 changes: 65 additions & 57 deletions DevApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions DevApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"printWidth": 140
},
"dependencies": {
"@aspnet/signalr": "^1.1.4",
"@aspnet/signalr-protocol-msgpack": "^1.1.0",
"@microsoft/signalr": "^5.0.9",
"@microsoft/signalr-protocol-msgpack": "^5.0.9",
"@types/node": "^14.0.1",
"chartjs-plugin-streaming": "~1.7.1",
"dotnetify-elements": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion DevApp/src/dotnetify/_typings/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HubConnectionBuilder } from "@aspnet/signalr";
import { HubConnectionBuilder } from "@microsoft/signalr";
import * as React from "react";

declare const dotnetify: IDotnetify;
Expand Down
Loading

0 comments on commit ce489de

Please sign in to comment.