Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluidframework/core-utils

Package Overview
Dependencies
Maintainers
2
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/core-utils - npm Package Compare versions

Comparing version 2.0.0-rc.2.0.2 to 2.0.0-rc.3.0.0

dist/legacy.d.ts

23

CHANGELOG.md
# @fluidframework/core-utils
## 2.0.0-rc.3.0.0
### Major Changes
- Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
Fluid Framework packages have been updated to use the [package.json "exports"
field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
TypeScript types and implementation code.
This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
- `"moduleResolution": "Node16"` with `"module": "Node16"`
- `"moduleResolution": "Bundler"` with `"module": "ESNext"`
We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
for use with modern versions of Node.js _and_ Bundlers.
[See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
regarding the module and moduleResolution options.
**Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
to distinguish stable APIs from those that are in development.**
## 2.0.0-rc.2.0.0

@@ -4,0 +27,0 @@

69

package.json
{
"name": "@fluidframework/core-utils",
"version": "2.0.0-rc.2.0.2",
"version": "2.0.0-rc.3.0.0",
"description": "Not intended for use outside the Fluid client repo.",

@@ -18,30 +18,20 @@ "homepage": "https://fluidframework.com",

"import": {
"types": "./lib/index.d.ts",
"types": "./lib/public.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./dist/index.d.ts",
"types": "./dist/public.d.ts",
"default": "./dist/index.js"
}
},
"./public": {
"./legacy": {
"import": {
"types": "./lib/core-utils-public.d.ts",
"types": "./lib/legacy.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./dist/core-utils-public.d.ts",
"types": "./dist/legacy.d.ts",
"default": "./dist/index.js"
}
},
"./alpha": {
"import": {
"types": "./lib/core-utils-alpha.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./dist/core-utils-alpha.d.ts",
"default": "./dist/index.js"
}
},
"./internal": {

@@ -58,4 +48,4 @@ "import": {

},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "lib/index.js",
"types": "lib/public.d.ts",
"c8": {

@@ -82,9 +72,10 @@ "all": true,

"devDependencies": {
"@arethetypeswrong/cli": "^0.13.3",
"@fluid-internal/mocha-test-setup": ">=2.0.0-rc.2.0.2 <2.0.0-rc.2.1.0",
"@arethetypeswrong/cli": "^0.15.2",
"@biomejs/biome": "^1.6.2",
"@fluid-internal/mocha-test-setup": ">=2.0.0-rc.3.0.0 <2.0.0-rc.3.1.0",
"@fluid-tools/benchmark": "^0.47.0",
"@fluid-tools/build-cli": "^0.34.0",
"@fluid-tools/build-cli": "^0.37.0",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "^0.34.0",
"@fluidframework/eslint-config-fluid": "^4.0.0",
"@fluidframework/build-tools": "^0.37.0",
"@fluidframework/eslint-config-fluid": "^5.1.0",
"@microsoft/api-extractor": "^7.42.3",

@@ -108,14 +99,2 @@ "@types/mocha": "^9.1.1",

},
"fluidBuild": {
"tasks": {
"build:docs": {
"dependsOn": [
"...",
"api-extractor:commonjs",
"api-extractor:esnext"
],
"script": false
}
}
},
"typeValidation": {

@@ -127,4 +106,4 @@ "disabled": true,

"api": "fluid-build . --task api",
"api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
"api-extractor:esnext": "api-extractor run --local",
"api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
"api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
"bench": "mocha --recursive \"lib/test/**/*.spec.*js\" --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js",

@@ -135,3 +114,3 @@ "bench:profile": "mocha --recursive \"lib/test/**/*.spec.*js\" --v8-prof --v8-logfile=profile.log --v8-no-logfile-per-isolate --timeout 999999 --perfMode --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in profile.txt",

"build:compile": "fluid-build . --task compile",
"build:docs": "fluid-build . --task api",
"build:docs": "api-extractor run --local",
"build:esnext": "tsc --project ./tsconfig.json",

@@ -141,13 +120,13 @@ "build:test": "npm run build:test:esm && npm run build:test:cjs",

"build:test:esm": "tsc --project ./src/test/tsconfig.json",
"check:are-the-types-wrong": "attw --pack . --entrypoints .",
"check:are-the-types-wrong": "attw --pack .",
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
"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",
"clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.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",
"format": "fluid-build --task format .",
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
"lint": "fluid-build . --task lint",
"lint:fix": "fluid-build . --task eslint:fix --task format",
"test": "npm run test:mocha",

@@ -154,0 +133,0 @@ "test:benchmark:report": "mocha --recursive \"lib/test/**/*.spec.*js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc