remove(location-redirection-utils): Remove package from the repository (#18202)
The package has been deprecated for some time, and had very few external usages. The time has come to remove it from the repo. [AB#5070](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/5070)
This commit is contained in:
Родитель
a8639ea3d6
Коммит
788bd9a0c3
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
"@fluidframework/location-redirection-utils": major
|
||||
---
|
||||
|
||||
Removes the @fluidframework/location-redirection-utils package
|
||||
|
||||
The package was deprecated in version `2.0.0-internal.7.2.0`, and all of its library exports were moved to other packages.
|
||||
It is now removed, and no future versions will be published.
|
|
@ -99,7 +99,7 @@ The dependencies between layers are enforced by the layer-check command._
|
|||
|
||||
| Packages | Layer Dependencies |
|
||||
| --- | --- |
|
||||
| - [@fluidframework/container-loader](/packages/loader/container-loader)</br>- [@fluidframework/location-redirection-utils](/packages/loader/location-redirection-utils)</br>- [@fluid-private/test-loader-utils](/packages/loader/test-loader-utils)</br> </br> </br> </br> </br> </br> | - [Core-Interfaces](#Core-Interfaces)</br>- [Protocol-Definitions](#Protocol-Definitions)</br>- [Driver-Definitions](#Driver-Definitions)</br>- [Container-Definitions](#Container-Definitions)</br>- [Core-Utils](#Core-Utils)</br>- [Client-Utils](#Client-Utils)</br>- [Protocol-Utils](#Protocol-Utils)</br>- [Telemetry-Utils](#Telemetry-Utils)</br>- [Driver-Utils](#Driver-Utils) |
|
||||
| - [@fluidframework/container-loader](/packages/loader/container-loader)</br>- [@fluid-private/test-loader-utils](/packages/loader/test-loader-utils)</br> </br> </br> </br> </br> </br> | - [Core-Interfaces](#Core-Interfaces)</br>- [Protocol-Definitions](#Protocol-Definitions)</br>- [Driver-Definitions](#Driver-Definitions)</br>- [Container-Definitions](#Container-Definitions)</br>- [Core-Utils](#Core-Utils)</br>- [Client-Utils](#Client-Utils)</br>- [Protocol-Utils](#Protocol-Utils)</br>- [Telemetry-Utils](#Telemetry-Utils)</br>- [Driver-Utils](#Driver-Utils) |
|
||||
|
||||
### Runtime
|
||||
|
||||
|
@ -220,4 +220,3 @@ The dependencies between layers are enforced by the layer-check command._
|
|||
| Packages | Layer Dependencies |
|
||||
| --- | --- |
|
||||
| - [@fluidframework/server-routerlicious](/server/routerlicious/packages/routerlicious)</br> </br> </br> </br> | - [Common-Definitions](#Common-Definitions)</br>- [Protocol-Definitions](#Protocol-Definitions)</br>- [Common-Utils](#Common-Utils)</br>- [Server-Shared-Utils](#Server-Shared-Utils)</br>- [Server-Libs](#Server-Libs) |
|
||||
|
||||
|
|
|
@ -80,6 +80,8 @@ Dependencies between packages in various layers of the system are enforced via a
|
|||
[layer-check](./build-tools/packages/build-tools/src/layerCheck). You can view the full list of packages and layers in
|
||||
[PACKAGES.md](./PACKAGES.md).
|
||||
|
||||
- Note: to update the contents of `PACKAGES.md` for local package changes, run `pnpm layer-check --md .`.
|
||||
|
||||
## Setup and Building
|
||||
|
||||
Install the required tools:
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
@fluidframework/datastore
|
||||
@fluidframework/container-runtime-definitions
|
||||
@fluidframework/container-runtime
|
||||
@fluidframework/location-redirection-utils
|
||||
@fluidframework/driver-utils
|
||||
@fluidframework/container-loader
|
||||
@fluidframework/view-interfaces
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
@fluidframework/container-runtime-definitions
|
||||
@fluidframework/container-runtime
|
||||
@fluid-private/test-loader-utils
|
||||
@fluidframework/location-redirection-utils
|
||||
@fluidframework/driver-utils
|
||||
@fluidframework/container-loader
|
||||
@fluidframework/view-interfaces
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
@fluidframework/datastore
|
||||
@fluidframework/container-runtime-definitions
|
||||
@fluidframework/container-runtime
|
||||
@fluidframework/location-redirection-utils
|
||||
@fluidframework/driver-utils
|
||||
@fluidframework/container-loader
|
||||
@fluidframework/view-interfaces
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
/*!
|
||||
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
extends: ["@fluidframework/eslint-config-fluid/minimal", "prettier"],
|
||||
parserOptions: {
|
||||
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-use-before-define": "off",
|
||||
"@typescript-eslint/strict-boolean-expressions": "off",
|
||||
"no-case-declarations": "off",
|
||||
},
|
||||
};
|
|
@ -1,2 +0,0 @@
|
|||
dist
|
||||
lib
|
|
@ -1,12 +0,0 @@
|
|||
/*!
|
||||
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
const getFluidTestMochaConfig = require("@fluidframework/mocha-test-setup/mocharc-common");
|
||||
|
||||
const packageDir = __dirname;
|
||||
const config = getFluidTestMochaConfig(packageDir);
|
||||
module.exports = config;
|
|
@ -1,6 +0,0 @@
|
|||
nyc
|
||||
*.log
|
||||
**/*.tsbuildinfo
|
||||
src/test
|
||||
dist/test
|
||||
**/_api-extractor-temp/**
|
|
@ -1,79 +0,0 @@
|
|||
# @fluidframework/location-redirection-utils
|
||||
|
||||
## 2.0.0-internal.7.3.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.7.2.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.7.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- Move `location-redirection-utils` APIs to `container-loader` ([#17554](https://github.com/microsoft/FluidFramework/issues/17554)) [17acf10a71](https://github.com/microsoft/FluidFramework/commits/17acf10a71e51e2490d1df57c89430c1be04c345)
|
||||
|
||||
Moves the 2 package exports of `location-redirection-utils` to the `container-loader` package.
|
||||
|
||||
Exports from `location-redirection-utils` are now deprecated, and the package itself will be removed in an upcoming release.
|
||||
|
||||
## 2.0.0-internal.7.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
||||
|
||||
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
||||
|
||||
## 2.0.0-internal.6.4.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.6.3.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.6.2.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.6.1.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.6.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
|
||||
|
||||
Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
|
||||
|
||||
## 2.0.0-internal.5.4.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.5.3.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.5.2.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.5.1.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.5.0.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.4.4.0
|
||||
|
||||
Dependency updates only.
|
||||
|
||||
## 2.0.0-internal.4.1.0
|
||||
|
||||
Dependency updates only.
|
|
@ -1,21 +0,0 @@
|
|||
Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,84 +0,0 @@
|
|||
# @fluidframework/location-redirection-utils
|
||||
|
||||
**NOTE: THIS PACKAGE IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE.**
|
||||
**ALL EXPORTS HAVE BEEN MARKED AS DEPRECATED, AND HAVE BEEN MOVED TO THE `@fluidframework/container-loader` PACKAGE.**
|
||||
**PLEASE MIGRATE ANY IMPORTS FROM THIS PACKAGE AS NEEDED.**
|
||||
**THIS PACKAGE WILL RECEIVE NO FURTHER SUPPORT.**
|
||||
|
||||
Shared utilities for handling location change of container on server.
|
||||
|
||||
<!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
||||
|
||||
## Using Fluid Framework libraries
|
||||
|
||||
When taking a dependency on a Fluid Framework library, we recommend using a `^` (caret) version range, such as `^1.3.4`.
|
||||
While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
|
||||
library consumers should always prefer `^`.
|
||||
|
||||
Note that when depending on a library version of the form `2.0.0-internal.x.y.z`, called the Fluid internal version scheme,
|
||||
you must use a `>= <` dependency range (such as `>=2.0.0-internal.x.y.z <2.0.0-internal.w.0.0` where `w` is `x+1`).
|
||||
Standard `^` and `~` ranges will not work as expected.
|
||||
See the [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
|
||||
package for more information including tools to convert between version schemes.
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<!-- AUTO-GENERATED-CONTENT:END -->
|
||||
|
||||
## Explanation of the scenario:
|
||||
|
||||
This talks about loading of a container by handling location change of container in the storage. For example, today
|
||||
the site domain can change for a particular container on server for spo. The host/app does not know about this change
|
||||
and they request the container using the old domain name and it will cause the container load request to fail.
|
||||
`resolveWithLocationRedirectionHandling` utility handles that scenario and use the new absolute url supplied by the
|
||||
driver when driver sees that error, to make the request again and successfully load the container.
|
||||
|
||||
## Usage
|
||||
|
||||
The host/apps needs to use this utility when they load the container. The below example tells how to use the utility.
|
||||
Lets say host has the code to call Loader.resolve(IRequest) or Loader.request(IRequest, pendingLocalState) in their code, now they want to wrap that within this utility if they want to handle this case.
|
||||
|
||||
```
|
||||
const container = await resolveWithLocationRedirectionHandling<IContainer>(
|
||||
async (req: IRequest) => {
|
||||
// Any other code that you want to execute like extract something info the request/ logging etc. This
|
||||
// req is the new request with which loader.resolve will be called.
|
||||
loader.resolve(req),
|
||||
},
|
||||
request, // original request to be resolved
|
||||
urlResolver, // urlResolver, same as hosts passes to the loader
|
||||
logger, // logger which will help with the telemetry
|
||||
);
|
||||
|
||||
OR
|
||||
|
||||
const response = await resolveWithLocationRedirectionHandling<IResponse>(
|
||||
async (req: IRequest) => {
|
||||
// Any other code that you want to execute like extract something info the request/ logging etc
|
||||
loader.request(req, pendingLocalState),
|
||||
},
|
||||
request, // original request to be resolved
|
||||
urlResolver, // urlResolver, same as hosts passes to the loader
|
||||
logger, // logger which will help with the telemetry
|
||||
);
|
||||
```
|
||||
|
||||
<!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
||||
|
||||
## Trademark
|
||||
|
||||
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
||||
|
||||
Use of these trademarks or logos must follow Microsoft's [Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
|
||||
|
||||
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"extends": "../../../common/build/build-common/api-extractor-base.json",
|
||||
"dtsRollup": {
|
||||
"enabled": true
|
||||
},
|
||||
"messages": {
|
||||
"extractorMessageReporting": {
|
||||
"ae-missing-release-tag": {
|
||||
// This package is scheduled for deletion, so no need to clean this up.
|
||||
"logLevel": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
## API Report File for "@fluidframework/location-redirection-utils"
|
||||
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
|
||||
import { isLocationRedirectionError } from '@fluidframework/container-loader';
|
||||
import { resolveWithLocationRedirectionHandling } from '@fluidframework/container-loader';
|
||||
|
||||
export { isLocationRedirectionError }
|
||||
|
||||
export { resolveWithLocationRedirectionHandling }
|
||||
|
||||
```
|
|
@ -1,106 +0,0 @@
|
|||
{
|
||||
"name": "@fluidframework/location-redirection-utils",
|
||||
"version": "2.0.0-internal.8.0.0",
|
||||
"description": "Location Redirection Handling Utilities",
|
||||
"homepage": "https://fluidframework.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/microsoft/FluidFramework.git",
|
||||
"directory": "packages/loader/location-redirection-utils"
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "Microsoft and contributors",
|
||||
"sideEffects": false,
|
||||
"main": "dist/index.js",
|
||||
"module": "lib/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"api": "fluid-build . --task api",
|
||||
"api-extractor:commonjs": "api-extractor run --local",
|
||||
"api-extractor:esnext": "copyfiles -u 1 \"dist/**/*-@(alpha|beta|public|untrimmed).d.ts\" lib",
|
||||
"build": "fluid-build . --task build",
|
||||
"build:commonjs": "fluid-build . --task commonjs",
|
||||
"build:compile": "fluid-build . --task compile",
|
||||
"build:docs": "fluid-build . --task api",
|
||||
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
||||
"build:test": "tsc --project ./src/test/tsconfig.json",
|
||||
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
||||
"ci:build:docs": "api-extractor run",
|
||||
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
||||
"eslint": "eslint --format stylish src",
|
||||
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
||||
"format": "npm run prettier:fix",
|
||||
"lint": "npm run prettier && npm run check:release-tags && npm run eslint",
|
||||
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
||||
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
||||
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
||||
"test": "echo \"Tests have been removed. This package is scheduled for deletion.\" && exit 1",
|
||||
"tsc": "tsc",
|
||||
"typetests:gen": "fluid-type-test-generator",
|
||||
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
||||
},
|
||||
"c8": {
|
||||
"all": true,
|
||||
"cache-dir": "nyc/.cache",
|
||||
"exclude": [
|
||||
"src/test/**/*.ts",
|
||||
"dist/test/**/*.js"
|
||||
],
|
||||
"exclude-after-remap": false,
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"dist/**/*.js"
|
||||
],
|
||||
"report-dir": "nyc/report",
|
||||
"reporter": [
|
||||
"cobertura",
|
||||
"html",
|
||||
"text"
|
||||
],
|
||||
"temp-directory": "nyc/.nyc_output"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fluidframework/container-loader": "workspace:~",
|
||||
"@fluidframework/core-interfaces": "workspace:~",
|
||||
"@fluidframework/driver-definitions": "workspace:~",
|
||||
"@fluidframework/telemetry-utils": "workspace:~"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fluid-tools/build-cli": "^0.28.0",
|
||||
"@fluidframework/build-common": "^2.0.3",
|
||||
"@fluidframework/build-tools": "^0.28.0",
|
||||
"@fluidframework/eslint-config-fluid": "^3.1.0",
|
||||
"@fluidframework/location-redirection-utils-previous": "npm:@fluidframework/location-redirection-utils@2.0.0-internal.7.2.0",
|
||||
"@fluidframework/mocha-test-setup": "workspace:~",
|
||||
"@fluidframework/test-runtime-utils": "workspace:~",
|
||||
"@microsoft/api-extractor": "^7.38.3",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "^16.18.38",
|
||||
"c8": "^7.7.1",
|
||||
"copyfiles": "^2.4.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "~8.50.0",
|
||||
"mocha": "^10.2.0",
|
||||
"mocha-json-output-reporter": "^2.0.1",
|
||||
"mocha-multi-reporters": "^1.5.1",
|
||||
"moment": "^2.21.0",
|
||||
"prettier": "~3.0.3",
|
||||
"rimraf": "^4.4.0",
|
||||
"typescript": "~5.1.6"
|
||||
},
|
||||
"fluidBuild": {
|
||||
"tasks": {
|
||||
"build:docs": {
|
||||
"dependsOn": [
|
||||
"...",
|
||||
"api-extractor:commonjs",
|
||||
"api-extractor:esnext"
|
||||
],
|
||||
"script": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"typeValidation": {
|
||||
"broken": {}
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
/*!
|
||||
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
...require("@fluidframework/build-common/prettier.config.cjs"),
|
||||
};
|
|
@ -1,23 +0,0 @@
|
|||
/*!
|
||||
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Note: this package is deprecated and will be removed in a future release.
|
||||
*
|
||||
* @deprecated API elements from this package have moved to {@link @fluidframework/container-loader#}.
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
export {
|
||||
/**
|
||||
* @deprecated Import from {@link @fluidframework/container-loader#}
|
||||
*/
|
||||
isLocationRedirectionError,
|
||||
/**
|
||||
* @deprecated Import from {@link @fluidframework/container-loader#}
|
||||
*/
|
||||
resolveWithLocationRedirectionHandling,
|
||||
} from "@fluidframework/container-loader";
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"extends": "@fluidframework/build-common/ts-common-config.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "../../dist/test",
|
||||
"types": ["node", "mocha"],
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
},
|
||||
"include": ["./**/*"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../..",
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
/*!
|
||||
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/*
|
||||
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
* Generated by fluid-type-test-generator in @fluidframework/build-tools.
|
||||
*/
|
||||
import type * as old from "@fluidframework/location-redirection-utils-previous";
|
||||
import type * as current from "../../index";
|
||||
|
||||
|
||||
// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.
|
||||
type TypeOnly<T> = T extends number
|
||||
? number
|
||||
: T extends string
|
||||
? string
|
||||
: T extends boolean | bigint | symbol
|
||||
? T
|
||||
: {
|
||||
[P in keyof T]: TypeOnly<T[P]>;
|
||||
};
|
||||
|
||||
/*
|
||||
* Validate forward compat by using old type in place of current type
|
||||
* If breaking change required, add in package.json under typeValidation.broken:
|
||||
* "FunctionDeclaration_isLocationRedirectionError": {"forwardCompat": false}
|
||||
*/
|
||||
declare function get_old_FunctionDeclaration_isLocationRedirectionError():
|
||||
TypeOnly<typeof old.isLocationRedirectionError>;
|
||||
declare function use_current_FunctionDeclaration_isLocationRedirectionError(
|
||||
use: TypeOnly<typeof current.isLocationRedirectionError>): void;
|
||||
use_current_FunctionDeclaration_isLocationRedirectionError(
|
||||
get_old_FunctionDeclaration_isLocationRedirectionError());
|
||||
|
||||
/*
|
||||
* Validate back compat by using current type in place of old type
|
||||
* If breaking change required, add in package.json under typeValidation.broken:
|
||||
* "FunctionDeclaration_isLocationRedirectionError": {"backCompat": false}
|
||||
*/
|
||||
declare function get_current_FunctionDeclaration_isLocationRedirectionError():
|
||||
TypeOnly<typeof current.isLocationRedirectionError>;
|
||||
declare function use_old_FunctionDeclaration_isLocationRedirectionError(
|
||||
use: TypeOnly<typeof old.isLocationRedirectionError>): void;
|
||||
use_old_FunctionDeclaration_isLocationRedirectionError(
|
||||
get_current_FunctionDeclaration_isLocationRedirectionError());
|
||||
|
||||
/*
|
||||
* Validate forward compat by using old type in place of current type
|
||||
* If breaking change required, add in package.json under typeValidation.broken:
|
||||
* "FunctionDeclaration_resolveWithLocationRedirectionHandling": {"forwardCompat": false}
|
||||
*/
|
||||
declare function get_old_FunctionDeclaration_resolveWithLocationRedirectionHandling():
|
||||
TypeOnly<typeof old.resolveWithLocationRedirectionHandling>;
|
||||
declare function use_current_FunctionDeclaration_resolveWithLocationRedirectionHandling(
|
||||
use: TypeOnly<typeof current.resolveWithLocationRedirectionHandling>): void;
|
||||
use_current_FunctionDeclaration_resolveWithLocationRedirectionHandling(
|
||||
get_old_FunctionDeclaration_resolveWithLocationRedirectionHandling());
|
||||
|
||||
/*
|
||||
* Validate back compat by using current type in place of old type
|
||||
* If breaking change required, add in package.json under typeValidation.broken:
|
||||
* "FunctionDeclaration_resolveWithLocationRedirectionHandling": {"backCompat": false}
|
||||
*/
|
||||
declare function get_current_FunctionDeclaration_resolveWithLocationRedirectionHandling():
|
||||
TypeOnly<typeof current.resolveWithLocationRedirectionHandling>;
|
||||
declare function use_old_FunctionDeclaration_resolveWithLocationRedirectionHandling(
|
||||
use: TypeOnly<typeof old.resolveWithLocationRedirectionHandling>): void;
|
||||
use_old_FunctionDeclaration_resolveWithLocationRedirectionHandling(
|
||||
get_current_FunctionDeclaration_resolveWithLocationRedirectionHandling());
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib",
|
||||
"module": "esnext",
|
||||
},
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"extends": "@fluidframework/build-common/ts-common-config.json",
|
||||
"exclude": ["src/test/**/*"],
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
"composite": true,
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
}
|
|
@ -8951,61 +8951,6 @@ importers:
|
|||
sinon: 7.5.0
|
||||
typescript: 5.1.6
|
||||
|
||||
packages/loader/location-redirection-utils:
|
||||
specifiers:
|
||||
'@fluid-tools/build-cli': ^0.28.0
|
||||
'@fluidframework/build-common': ^2.0.3
|
||||
'@fluidframework/build-tools': ^0.28.0
|
||||
'@fluidframework/container-loader': workspace:~
|
||||
'@fluidframework/core-interfaces': workspace:~
|
||||
'@fluidframework/driver-definitions': workspace:~
|
||||
'@fluidframework/eslint-config-fluid': ^3.1.0
|
||||
'@fluidframework/location-redirection-utils-previous': npm:@fluidframework/location-redirection-utils@2.0.0-internal.7.2.0
|
||||
'@fluidframework/mocha-test-setup': workspace:~
|
||||
'@fluidframework/telemetry-utils': workspace:~
|
||||
'@fluidframework/test-runtime-utils': workspace:~
|
||||
'@microsoft/api-extractor': ^7.38.3
|
||||
'@types/mocha': ^9.1.1
|
||||
'@types/node': ^16.18.38
|
||||
c8: ^7.7.1
|
||||
copyfiles: ^2.4.1
|
||||
cross-env: ^7.0.3
|
||||
eslint: ~8.50.0
|
||||
mocha: ^10.2.0
|
||||
mocha-json-output-reporter: ^2.0.1
|
||||
mocha-multi-reporters: ^1.5.1
|
||||
moment: ^2.21.0
|
||||
prettier: ~3.0.3
|
||||
rimraf: ^4.4.0
|
||||
typescript: ~5.1.6
|
||||
dependencies:
|
||||
'@fluidframework/container-loader': link:../container-loader
|
||||
'@fluidframework/core-interfaces': link:../../common/core-interfaces
|
||||
'@fluidframework/driver-definitions': link:../../common/driver-definitions
|
||||
'@fluidframework/telemetry-utils': link:../../utils/telemetry-utils
|
||||
devDependencies:
|
||||
'@fluid-tools/build-cli': 0.28.0_dgt3pekvdbgd2jliwm43ktglpe
|
||||
'@fluidframework/build-common': 2.0.3
|
||||
'@fluidframework/build-tools': 0.28.0_@types+node@16.18.65
|
||||
'@fluidframework/eslint-config-fluid': 3.1.0_loebgezstcsvd2poh2d55fifke
|
||||
'@fluidframework/location-redirection-utils-previous': /@fluidframework/location-redirection-utils/2.0.0-internal.7.2.0
|
||||
'@fluidframework/mocha-test-setup': link:../../test/mocha-test-setup
|
||||
'@fluidframework/test-runtime-utils': link:../../runtime/test-runtime-utils
|
||||
'@microsoft/api-extractor': 7.38.3_p4gemz6xo2owxftfuvjusnappy_@types+node@16.18.65
|
||||
'@types/mocha': 9.1.1
|
||||
'@types/node': 16.18.65
|
||||
c8: 7.14.0
|
||||
copyfiles: 2.4.1
|
||||
cross-env: 7.0.3
|
||||
eslint: 8.50.0
|
||||
mocha: 10.2.0
|
||||
mocha-json-output-reporter: 2.1.0_mocha@10.2.0+moment@2.29.4
|
||||
mocha-multi-reporters: 1.5.1_mocha@10.2.0
|
||||
moment: 2.29.4
|
||||
prettier: 3.0.3
|
||||
rimraf: 4.4.1
|
||||
typescript: 5.1.6
|
||||
|
||||
packages/loader/test-loader-utils:
|
||||
specifiers:
|
||||
'@fluid-internal/client-utils': workspace:~
|
||||
|
@ -16763,17 +16708,6 @@ packages:
|
|||
- utf-8-validate
|
||||
dev: true
|
||||
|
||||
/@fluidframework/location-redirection-utils/2.0.0-internal.7.2.0:
|
||||
resolution: {integrity: sha512-dL2/nuBNzh/RfcwQ/dgUYlFnK5r5okLw/mAl0UBFI0kwbcBU3Wv7W2QYrx1YsrlRLsOzyZlSW4BgFCzEgYU0AQ==}
|
||||
dependencies:
|
||||
'@fluidframework/container-loader': 2.0.0-internal.7.2.2
|
||||
'@fluidframework/core-interfaces': 2.0.0-internal.7.2.2
|
||||
'@fluidframework/driver-definitions': 2.0.0-internal.7.2.2
|
||||
'@fluidframework/telemetry-utils': 2.0.0-internal.7.2.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@fluidframework/map/2.0.0-internal.7.2.0:
|
||||
resolution: {integrity: sha512-wEIB8VM5SRqORjROU7gZF5K2YlE/fnv0KIgatVL9YeuHWWbjBp3D66q3Jvae2KdXKLsLYBHiMYUnl7iH5hTY4A==}
|
||||
dependencies:
|
||||
|
|
Загрузка…
Ссылка в новой задаче