Socket
Socket
Sign inDemoInstall

@fluentui/react-context-selector

Package Overview
Dependencies
Maintainers
12
Versions
854
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-context-selector - npm Package Compare versions

Comparing version 9.0.0-alpha.4 to 9.0.0-alpha.5

31

CHANGELOG.json

@@ -5,3 +5,32 @@ {

{
"date": "Fri, 23 Apr 2021 07:30:56 GMT",
"date": "Fri, 30 Apr 2021 07:35:40 GMT",
"tag": "@fluentui/react-context-selector_v9.0.0-alpha.5",
"version": "9.0.0-alpha.5",
"comments": {
"prerelease": [
{
"comment": "Upgrade to TS 4.0",
"author": "joschect@microsoft.com",
"commit": "2b62c457bb860f6675fae4acae86ee6c0b06c279",
"package": "@fluentui/react-context-selector"
}
],
"patch": [
{
"comment": "Bump @fluentui/eslint-plugin to v1.2.0",
"author": "joschect@microsoft.com",
"commit": "2b62c457bb860f6675fae4acae86ee6c0b06c279",
"package": "@fluentui/react-context-selector"
},
{
"comment": "Bump @fluentui/scripts to v1.0.0",
"author": "joschect@microsoft.com",
"commit": "2b62c457bb860f6675fae4acae86ee6c0b06c279",
"package": "@fluentui/react-context-selector"
}
]
}
},
{
"date": "Fri, 23 Apr 2021 07:37:10 GMT",
"tag": "@fluentui/react-context-selector_v9.0.0-alpha.4",

@@ -8,0 +37,0 @@ "version": "9.0.0-alpha.4",

# Change Log - @fluentui/react-context-selector
This log was last generated on Fri, 23 Apr 2021 07:30:56 GMT and should not be manually modified.
This log was last generated on Fri, 30 Apr 2021 07:35:40 GMT and should not be manually modified.
<!-- Start content -->
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.5)
Fri, 30 Apr 2021 07:35:40 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.4..@fluentui/react-context-selector_v9.0.0-alpha.5)
### Patches
- Bump @fluentui/eslint-plugin to v1.2.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
- Bump @fluentui/scripts to v1.0.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
### Changes
- Upgrade to TS 4.0 ([PR #17932](https://github.com/microsoft/fluentui/pull/17932) by joschect@microsoft.com)
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.4)
Fri, 23 Apr 2021 07:30:56 GMT
Fri, 23 Apr 2021 07:37:10 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.3..@fluentui/react-context-selector_v9.0.0-alpha.4)

@@ -11,0 +25,0 @@

10

dist/react-context-selector.d.ts

@@ -1,5 +0,5 @@

import * as React from 'react';
import * as React_2 from 'react';
export declare type Context<Value> = React.Context<Value> & {
Provider: React.FC<React.ProviderProps<Value>>;
export declare type Context<Value> = React_2.Context<Value> & {
Provider: React_2.FC<React_2.ProviderProps<Value>>;
Consumer: never;

@@ -14,5 +14,5 @@ };

/** Holds an actual value of React's context that will be propagated down for computations. */
value: React.MutableRefObject<Value>;
value: React_2.MutableRefObject<Value>;
/** A version field is used to sync a context value and consumers. */
version: React.MutableRefObject<ContextVersion>;
version: React_2.MutableRefObject<ContextVersion>;
};

@@ -19,0 +19,0 @@

@@ -7,7 +7,7 @@ ## API Report File for "@fluentui/react-context-selector"

import * as React from 'react';
import * as React_2 from 'react';
// @public (undocumented)
export type Context<Value> = React.Context<Value> & {
Provider: React.FC<React.ProviderProps<Value>>;
export type Context<Value> = React_2.Context<Value> & {
Provider: React_2.FC<React_2.ProviderProps<Value>>;
Consumer: never;

@@ -22,4 +22,4 @@ };

listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
value: React.MutableRefObject<Value>;
version: React.MutableRefObject<ContextVersion>;
value: React_2.MutableRefObject<Value>;
version: React_2.MutableRefObject<ContextVersion>;
};

@@ -26,0 +26,0 @@

define(["require", "exports", "@fluentui/react-utilities", "react", "scheduler"], function (require, exports, react_utilities_1, React, scheduler_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createContext = void 0;
var createProvider = function (Original) {

@@ -34,3 +35,3 @@ var Provider = function (props) {

};
exports.createContext = function (defaultValue) {
var createContext = function (defaultValue) {
var context = React.createContext({

@@ -46,3 +47,4 @@ value: { current: defaultValue },

};
exports.createContext = createContext;
});
//# sourceMappingURL=createContext.js.map

@@ -1,7 +0,9 @@

define(["require", "exports", "./createContext", "./useContextSelector"], function (require, exports, createContext_1, useContextSelector_1) {
define(["require", "exports", "tslib", "./createContext", "./useContextSelector", "./types"], function (require, exports, tslib_1, createContext_1, useContextSelector_1, types_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createContext = createContext_1.createContext;
exports.useContextSelector = useContextSelector_1.useContextSelector;
exports.useContextSelector = exports.createContext = void 0;
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return createContext_1.createContext; } });
Object.defineProperty(exports, "useContextSelector", { enumerable: true, get: function () { return useContextSelector_1.useContextSelector; } });
tslib_1.__exportStar(types_1, exports);
});
//# sourceMappingURL=index.js.map
define(["require", "exports", "@fluentui/react-utilities", "react"], function (require, exports, react_utilities_1, React) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useContextSelector = void 0;
/**

@@ -9,3 +10,3 @@ * This hook returns context selected value by selector.

*/
exports.useContextSelector = function (context, selector) {
var useContextSelector = function (context, selector) {
var contextValue = React.useContext(context);

@@ -55,2 +56,3 @@ var value = contextValue.value.current, version = contextValue.version.current, listeners = contextValue.listeners;

};
exports.useContextSelector = useContextSelector;
/**

@@ -57,0 +59,0 @@ * inlined Object.is polyfill to avoid requiring consumers ship their own

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createContext = void 0;
var react_utilities_1 = require("@fluentui/react-utilities");

@@ -38,3 +39,3 @@ var React = require("react");

};
exports.createContext = function (defaultValue) {
var createContext = function (defaultValue) {
var context = React.createContext({

@@ -50,2 +51,3 @@ value: { current: defaultValue },

};
exports.createContext = createContext;
//# sourceMappingURL=createContext.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useContextSelector = exports.createContext = void 0;
var tslib_1 = require("tslib");
var createContext_1 = require("./createContext");
exports.createContext = createContext_1.createContext;
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return createContext_1.createContext; } });
var useContextSelector_1 = require("./useContextSelector");
exports.useContextSelector = useContextSelector_1.useContextSelector;
Object.defineProperty(exports, "useContextSelector", { enumerable: true, get: function () { return useContextSelector_1.useContextSelector; } });
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useContextSelector = void 0;
var react_utilities_1 = require("@fluentui/react-utilities");

@@ -10,3 +11,3 @@ var React = require("react");

*/
exports.useContextSelector = function (context, selector) {
var useContextSelector = function (context, selector) {
var contextValue = React.useContext(context);

@@ -56,2 +57,3 @@ var value = contextValue.value.current, version = contextValue.version.current, listeners = contextValue.listeners;

};
exports.useContextSelector = useContextSelector;
/**

@@ -58,0 +60,0 @@ * inlined Object.is polyfill to avoid requiring consumers ship their own

export { createContext } from './createContext';
export { useContextSelector } from './useContextSelector';
export * from './types';
//# sourceMappingURL=index.js.map

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.7.1"
"packageVersion": "7.13.0"
}
]
}

@@ -0,1 +1,2 @@

export {};
//# sourceMappingURL=types.js.map
{
"name": "@fluentui/react-context-selector",
"version": "9.0.0-alpha.4",
"version": "9.0.0-alpha.5",
"description": "React useContextSelector hook in userland",

@@ -25,3 +25,3 @@ "main": "lib-commonjs/index.js",

"devDependencies": {
"@fluentui/eslint-plugin": "^1.1.1",
"@fluentui/eslint-plugin": "^1.2.0",
"@fluentui/scripts": "^1.0.0",

@@ -38,5 +38,5 @@ "@types/scheduler": "^0.16.1",

"dependencies": {
"@fluentui/react-utilities": "^9.0.0-alpha.19",
"@fluentui/react-utilities": "^9.0.0-alpha.20",
"scheduler": "^0.20.1",
"tslib": "^1.10.0"
"tslib": "^2.1.0"
},

@@ -43,0 +43,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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