Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api-report/tree.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ export function createEmitter<E extends Events<E>>(): ISubscribable<E> & IEmitte
// @alpha
export const createField: unique symbol;

// @alpha
export function createSchemaRepository(schemaPolicy?: FullSchemaPolicy, data?: SchemaData): StoredSchemaRepository;

// @alpha
export interface CrossFieldManager<T = unknown> {
get(target: CrossFieldTarget, revision: RevisionTag | undefined, id: ChangesetLocalId): T | undefined;
Expand Down Expand Up @@ -697,6 +700,12 @@ export function keyFromSymbol(key: GlobalFieldKeySymbol): GlobalFieldKey;
// @alpha
export type LocalFieldKey = Brand<string, "tree.LocalFieldKey">;

// @alpha
export function lookupGlobalFieldSchema(data: SchemaDataAndPolicy, identifier: GlobalFieldKey): FieldSchema;

// @alpha
export function lookupTreeSchema(data: SchemaDataAndPolicy, identifier: TreeSchemaIdentifier): TreeSchema;

// @alpha
export interface MakeNominal {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,8 @@ declare module "@fluid-experimental/property-properties" {
*/
public extractDependencies(): Array<any>;

public static extractDependencies(template: PropertyTemplateType): Array<any>;

constants: any[];

context: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { PropertyFactory } from "./propertyFactory";
import { PropertyTemplate } from "./propertyTemplate";
import { PropertyUtils } from "./propertyUtils";
import { BaseProperty } from "./properties/baseProperty";
import { ContainerProperty } from "./properties/containerProperty";
Expand All @@ -25,6 +26,7 @@ import { enableValidations } from "./enableValidations";

export {
PropertyFactory,
PropertyTemplate,
PropertyUtils,
BaseProperty,
ContainerProperty,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
doc
node_modules
dist
jest.config.js
src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*!
* 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/strict-boolean-expressions": "off",
"unicorn/filename-case": "off",
"import/no-default-export": "off",
},
overrides: [
{
// Rules only for test files
files: ["*.spec.ts", "src/test/**"],
rules: {
// Test files are run in node only so additional node libraries can be used.
"import/no-nodejs-modules": ["error", { allow: ["assert", "events"] }],
},
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
*.log
**/*.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nyc
*.log
**/*.tsbuildinfo
src/test
dist/test
**/_api-extractor-temp/**
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @fluid-experimental/property-dds-new-tree

This package contains schemas that are shared between the example projects.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

module.exports = {
preset: "ts-jest",
testEnvironment: "node",
transform: {
"^.+\\.ts$": "ts-jest",
},
globals: {
"ts-jest": {
tsconfig: "src/test/tsconfig.json",
},
},
testPathIgnorePatterns: ["/node_modules/", "dist"],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "@fluid-experimental/property-shared-tree-interop",
"version": "2.0.0-internal.3.2.0",
"description": "Utilities for migration from PropertyDDS to the new SharedTree DDS",
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git",
"directory": "experimental/PropertyDDS/packages/property-shared-tree-interop"
},
"license": "MIT",
"author": "Microsoft and contributors",
"main": "dist/index.js",
"module": "lib/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "concurrently npm:build:compile npm:lint",
"build:commonjs": "npm run tsc && npm run build:test",
"build:compile": "concurrently npm:build:commonjs npm:build:esnext",
"build:esnext": "tsc --project ./tsconfig.esnext.json",
"build:full": "npm run build",
"build:full:compile": "npm run build:compile",
"build:test": "tsc --project ./src/test/tsconfig.json",
"clean": "rimraf dist *.tsbuildinfo *.build.log",
"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 eslint",
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
"prettier": "prettier --check . --ignore-path ../../../../.prettierignore",
"prettier:fix": "prettier --write . --ignore-path ../../../../.prettierignore",
"test": "npm run test:jest",
"test:coverage": "jest --coverage --ci --reporters=default --reporters=jest-junit",
"test:jest": "jest",
"tsc": "tsc"
},
"devDependencies": {
"@fluidframework/build-common": "^1.1.0",
"@rushstack/eslint-config": "^2.5.1",
"@types/jest": "22.2.3",
"@types/node": "^14.18.36",
"concurrently": "^6.2.0",
"eslint": "~8.6.0",
"jest": "^26.6.3",
"jest-junit": "^10.0.0",
"prettier": "~2.6.2",
"rimraf": "^2.6.2",
"ts-jest": "^26.4.4",
"typescript": "~4.5.5"
},
"dependencies": {
"@fluid-experimental/property-properties": ">=2.0.0-internal.3.2.0 <2.0.0-internal.4.0.0",
"@fluid-experimental/property-changeset": ">=2.0.0-internal.3.2.0 <2.0.0-internal.4.0.0",
"@fluid-internal/tree": ">=2.0.0-internal.3.2.0 <2.0.0-internal.4.0.0"
},
"jest-junit": {
"outputDirectory": "nyc",
"outputName": "jest-junit-report.xml"
},
"typeValidation": {
"disabled": true,
"version": "2.0.0-internal.2.2.0",
"baselineRange": ">=2.0.0-internal.2.1.0 <2.0.0-internal.2.2.0",
"baselineVersion": "2.0.0-internal.2.1.0",
"broken": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

module.exports = {
...require("@fluidframework/build-common/prettier.config.cjs"),
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

export { convertPSetSchemaToSharedTreeLls as convertPSetSchema } from "./schemaConverter";
Loading