You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@fluidframework/driver-definitions

Package Overview
Dependencies
Maintainers
1
Versions
512
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/driver-definitions - npm Package Compare versions

Comparing version

to
2.43.0

27

CHANGELOG.md
# @fluidframework/driver-definitions
## 2.43.0
### Minor Changes
- The reason parameter on the disconnect event is now optional to allow for clean, non-error disconnections ([#24840](https://github.com/microsoft/FluidFramework/pull/24840)) [82a1c5a1362](https://github.com/microsoft/FluidFramework/commit/82a1c5a1362d3362886bdcc12859ce60a2744bdb)
To enable better handling of intentional disconnects (for example [`Container.dispose()`](https://fluidframework.com/docs/api/container-loader/container/dispose)), the `reason` parameter of the `disconnect` event on [`IDocumentDeltaConnectionEvents`](https://fluidframework.com/docs/api/driver-definitions/idocumentdeltaconnectionevents) is being deprecated as a required parameter.
In a future release, the `reason` parameter will become optional.
**Old signature:**
```typescript
listener: (reason: IAnyDriverError) => void
```
**New signature:**
```typescript
listener: (reason?: IAnyDriverError) => void
```
Developers with listeners for the `disconnect` event should update their implementations to handle cases where the `reason` parameter is `undefined`.
This indicates a clean disconnect, which should not be treated as an error.
The breaking change is scheduled to be released in version **2.60**.
## 2.42.0

@@ -4,0 +31,0 @@

8

package.json
{
"name": "@fluidframework/driver-definitions",
"version": "2.43.0-343119",
"version": "2.43.0",
"description": "Fluid driver definitions",

@@ -50,3 +50,3 @@ "homepage": "https://fluidframework.com",

"dependencies": {
"@fluidframework/core-interfaces": "2.43.0-343119"
"@fluidframework/core-interfaces": "~2.43.0"
},

@@ -56,5 +56,5 @@ "devDependencies": {

"@biomejs/biome": "~1.9.3",
"@fluid-tools/build-cli": "^0.55.0",
"@fluid-tools/build-cli": "^0.56.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.55.0",
"@fluidframework/build-tools": "^0.56.0",
"@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.42.0",

@@ -61,0 +61,0 @@ "@fluidframework/eslint-config-fluid": "^5.7.4",