Skip to content

Commit

Permalink
Change accessNonDependencies: true => strictAxonDependencies: false, …
Browse files Browse the repository at this point in the history
…add query parameter, add package.json flag, add phetmarks radio buttons, see phetsims/axon#441
  • Loading branch information
samreid committed Jan 1, 2024
1 parent b18db67 commit 7601a9e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion js/initialize-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,15 @@
*/
showVisibleBounds: { type: 'flag' },

/**
* Adds a runtime check while computing the derivation of a DerivedProperty, that asserts that all queried Property
* instances are listed in the dependencies. See https://github.com/phetsims/axon/issues/441
*/
strictAxonDependencies: {
type: 'boolean',
defaultValue: !!packageSimFeatures.strictAxonDependencies
},

/**
* Shuffles listeners each time they are notified, to help us test order dependency, see https://github.com/phetsims/axon/issues/215
*
Expand Down Expand Up @@ -1095,7 +1104,8 @@
supportsExtraSound: { type: 'boolean' },
supportsDynamicLocale: { type: 'boolean' },
colorProfiles: { type: 'array' },
supportedRegionsAndCultures: { type: 'array' }
supportedRegionsAndCultures: { type: 'array' },
strictAxonDependencies: { type: 'boolean' }
};

Object.keys( simFeaturesSchema ).forEach( schemaKey => {
Expand Down

0 comments on commit 7601a9e

Please sign in to comment.