Skip to content

Commit

Permalink
Deploy 0.262.0 to xplat
Browse files Browse the repository at this point in the history
Reviewed By: SamChou19815

Differential Revision: D70277654

fbshipit-source-id: e215e392aa6e06181f2df03ce8b9b873807f3b86
  • Loading branch information
Alex Taylor (alta) authored and facebook-github-bot committed Feb 27, 2025
1 parent 01f7484 commit cf4f547
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ untyped-import
untyped-type-import

[version]
^0.261.2
^0.262.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"eslint-plugin-relay": "1.8.3",
"eslint-plugin-relay-internal": "link:./packages/eslint-plugin-relay-internal",
"fbjs": "^3.0.2",
"flow-bin": "^0.261.2",
"flow-bin": "^0.262.0",
"glob": "^7.1.1",
"graphql": "15.3.0",
"gulp": "4.0.2",
Expand Down
4 changes: 4 additions & 0 deletions packages/babel-plugin-relay/compileGraphQLTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ import type {
OperationDefinitionNode,
} from 'graphql';

// $FlowFixMe[cannot-resolve-module]
const crypto = require('crypto');
const {print} = require('graphql');
const {
dirname,
join: joinPath,
relative: relativePath,
resolve: resolvePath,
// $FlowFixMe[cannot-resolve-module]
} = require('path');

const GENERATED = './__generated__/';
Expand All @@ -34,6 +36,7 @@ const GENERATED = './__generated__/';
* cross-platform compatibility.
*/
function posixifyPath(path: string): string {
// $FlowFixMe[cannot-resolve-name]
return process.platform === 'win32' ? path.replace(/\\/g, '/') : path;
}

Expand Down Expand Up @@ -72,6 +75,7 @@ function compileGraphQLTag(
const buildCommand = state.opts?.codegenCommand ?? 'relay-compiler';
// Fallback is 'true'
const isDevelopment =
// $FlowFixMe[cannot-resolve-name]
(process.env.BABEL_ENV || process.env.NODE_ENV) !== 'production';

return createNode(t, state, path, definition, {
Expand Down
1 change: 1 addition & 0 deletions packages/react-relay/__tests__/LiveResolvers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ describe('Live Resolver with Suspense and Missing Data', () => {
});

skipIf(
// $FlowFixMe[cannot-resolve-name]
process.env.OSS,
'Live Resolver with Missing Data and @required',
async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ describe('ActorChange', () => {
);
});

// $FlowFixMe[cannot-resolve-name]
skipIf(process.env.OSS, 'should render a fragment for actor', () => {
fetchFnForActor = jest.fn(actorId =>
Observable.from(
Expand Down Expand Up @@ -286,6 +287,7 @@ describe('ActorChange', () => {
});

skipIf(
// $FlowFixMe[cannot-resolve-name]
process.env.OSS,
'should send a query and mutations with correct actor id, from the correct environment',
() => {
Expand Down
6 changes: 4 additions & 2 deletions packages/relay-runtime/store/RelayPublishQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ type PendingUpdater = {
const _global: typeof global | $FlowFixMe =
typeof global !== 'undefined'
? global
: typeof window !== 'undefined'
? window
: // $FlowFixMe[cannot-resolve-name]
typeof window !== 'undefined'
? // $FlowFixMe[cannot-resolve-name]
window
: undefined;

const applyWithGuard =
Expand Down
4 changes: 4 additions & 0 deletions packages/relay-runtime/store/StoreInspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ if (__DEV__) {
}
formattersInstalled = true;
// $FlowFixMe[incompatible-use] D61394600
// $FlowFixMe[cannot-resolve-name]
if (window.devtoolsFormatters == null) {
// $FlowFixMe[incompatible-use] D61394600
// $FlowFixMe[cannot-resolve-name]
window.devtoolsFormatters = [];
}
// $FlowFixMe[incompatible-use] D61394600
// $FlowFixMe[cannot-resolve-name]
if (!Array.isArray(window.devtoolsFormatters)) {
return;
}
Expand All @@ -47,6 +50,7 @@ if (__DEV__) {
'section.',
);
// $FlowFixMe[incompatible-use] D61394600
// $FlowFixMe[cannot-resolve-name]
window.devtoolsFormatters.push(...createFormatters());
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ function registerEnvironmentWithDevTools(environment: IEnvironment): void {
const _global =
typeof global !== 'undefined'
? global
: typeof window !== 'undefined'
? window
: // $FlowFixMe[cannot-resolve-name]
typeof window !== 'undefined'
? // $FlowFixMe[cannot-resolve-name]
window
: undefined;

// $FlowFixMe[incompatible-use] D61394600
Expand Down
3 changes: 3 additions & 0 deletions packages/relay-runtime/util/withStartAndDuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
'use strict';

const isPerformanceNowAvailable =
// $FlowFixMe[cannot-resolve-name]
typeof window !== 'undefined' &&
// $FlowFixMe[cannot-resolve-name]
typeof window?.performance?.now === 'function';

function currentTimestamp(): number {
if (isPerformanceNowAvailable) {
// $FlowFixMe[cannot-resolve-name]
return window.performance.now();
}
return Date.now();
Expand Down
1 change: 1 addition & 0 deletions packages/relay-test-utils-internal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const {createMockEnvironment, unwrapContainer} = require('relay-test-utils');
function cannotReadPropertyOfUndefined__DEPRECATED(
propertyName: string,
): string {
// $FlowFixMe[cannot-resolve-name]
const matches = process.version.match(/^v(\d+)\./);
const majorVersion = matches == null ? null : parseInt(matches[1], 10);
if (majorVersion == null || majorVersion < 16) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3864,10 +3864,10 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2"
integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==

flow-bin@^0.261.2:
version "0.261.2"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.261.2.tgz#8558c965950f8e38872ea21f66bf04932da2380b"
integrity sha512-lTYA05K4obAjyrrX4in3sLZyAECSFCDwQiGpZHJLm8ldCk+qcW11Wcxq/CdvyQAOPR7Kpb5BPRSaj4hwEXIAUw==
flow-bin@^0.262.0:
version "0.262.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.262.0.tgz#612f7cb96c51d9fe7e6819ab9d582f19e5674554"
integrity sha512-B7l0NcpQ3uZuaWs07aQCjG+8fcxF/awbEmuf1p/6a/ZnQjPBB5uIzWmTuxdnrQns5/2orCpC37k9FJuRP7Aj3g==

flush-write-stream@^1.0.2:
version "1.1.1"
Expand Down

0 comments on commit cf4f547

Please sign in to comment.