@forge/bundler 7.1.0-next.7 → 7.1.0-next.7-experimental-116e5ca

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 7.1.0-next.7-experimental-116e5ca
4
+
5
+ ### Minor Changes
6
+
7
+ - 342098d: Implement server-side linter logic to prevent accidental major app version deployments
8
+ - d1610cc: Manual runtime packaging option
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [4d50a76]
13
+ - Updated dependencies [f01417b]
14
+ - Updated dependencies [d706cd8]
15
+ - Updated dependencies [342098d]
16
+ - Updated dependencies [0949833]
17
+ - Updated dependencies [d1610cc]
18
+ - Updated dependencies [e7bfe5e]
19
+ - Updated dependencies [498fda5]
20
+ - Updated dependencies [ca4fa27]
21
+ - Updated dependencies [39f1f15]
22
+ - Updated dependencies [c3a0f20]
23
+ - @forge/cli-shared@9.3.0-next.7-experimental-116e5ca
24
+ - @forge/manifest@13.3.0-next.6-experimental-116e5ca
25
+ - @forge/lint@6.0.3-next.7-experimental-116e5ca
26
+
3
27
  ## 7.1.0-next.7
4
28
 
5
29
  ### Patch Changes
package/out/lint.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAGhB,gBAAgB,EAEhB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAC;AAIlE,wBAAsB,SAAS,CAC7B,cAAc,EAAE,cAAc,EAE9B,MAAM,GAAE,UAAkC,EAC1C,gBAAgB,mBAAyB,EACzC,gBAAgB,mBAAyB,GACxC,OAAO,CAAC,IAAI,CAAC,CAqCf"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAGhB,gBAAgB,EAEhB,cAAc,EAYf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,UAAU,EAA6C,MAAM,aAAa,CAAC;AAI7G,wBAAsB,SAAS,CAC7B,cAAc,EAAE,cAAc,EAE9B,MAAM,GAAE,UAAkC,EAC1C,gBAAgB,mBAAyB,EACzC,gBAAgB,mBAAyB,GACxC,OAAO,CAAC,IAAI,CAAC,CA6Df"}
package/out/lint.js CHANGED
@@ -18,8 +18,19 @@ async function runLinter(statsigService, logger = { info: console.log }, fileSys
18
18
  ...UIKitDirectories.map((directory) => fileSystemReader.recursiveReadDir(directory, exclude))
19
19
  ]);
20
20
  const UIKitFilesToLint = UIKitFilesByDirectory.reduce((allFiles, directoryFiles) => allFiles.concat(directoryFiles), []);
21
+ const ui = new cli_shared_1.CommandLineUI(() => false, undefined, undefined, undefined, () => false);
22
+ const createGraphQLClient = (auth) => {
23
+ const minimalGraphQLRunner = new cli_shared_1.MinimalGraphQLRunner(auth, graphqlGateway, undefined);
24
+ const graphQLRunner = new cli_shared_1.DebuggingGraphqlRunner(minimalGraphQLRunner, graphqlGateway, ui);
25
+ return new cli_shared_1.MutationAwareGraphQLClient(graphQLRunner);
26
+ };
27
+ const userRepository = new cli_shared_1.UserRepositoryImpl(createGraphQLClient, ui);
28
+ const credentialStore = (0, cli_shared_1.getCredentialStore)(ui, userRepository);
29
+ const authenticator = new cli_shared_1.PersonalTokenAuthenticator(credentialStore);
30
+ const graphqlGateway = (0, cli_shared_1.getGraphqlGateway)();
31
+ const graphQLClient = createGraphQLClient(authenticator);
21
32
  try {
22
- const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, 'development', logger, statsigService);
33
+ const lintResults = await (0, lint_1.lint)([...filesToLint, ...UIKitFilesToLint], manifest, (0, cli_shared_1.optionToEnvironment)('development'), logger, statsigService, graphQLClient, undefined, lint_1.parseSourceFile, await (0, lint_1.getClientSideLintersOnly)(manifest, (0, cli_shared_1.optionToEnvironment)('development'), logger, statsigService));
23
34
  if (lintResults.some((result) => result.size())) {
24
35
  logger.info('');
25
36
  (0, lint_1.reportLintResults)(logger, lintResults);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "7.1.0-next.7",
3
+ "version": "7.1.0-next.7-experimental-116e5ca",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Atlassian",
@@ -21,10 +21,10 @@
21
21
  "@babel/plugin-transform-react-jsx": "^7.23.4",
22
22
  "@babel/traverse": "^7.24.0",
23
23
  "@babel/types": "^7.24.0",
24
- "@forge/cli-shared": "9.3.0-next.7",
24
+ "@forge/cli-shared": "9.3.0-next.7-experimental-116e5ca",
25
25
  "@forge/i18n": "1.0.0",
26
- "@forge/lint": "6.0.3-next.7",
27
- "@forge/manifest": "13.3.0-next.6",
26
+ "@forge/lint": "6.0.3-next.7-experimental-116e5ca",
27
+ "@forge/manifest": "13.3.0-next.6-experimental-116e5ca",
28
28
  "babel-loader": "^8.3.0",
29
29
  "cheerio": "^1.2.0",
30
30
  "cross-spawn": "^7.0.6",