@forge/bundler 7.0.2-next.3-experimental-bd3d812 → 7.0.2-next.3-experimental-c6a3916

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,17 +1,25 @@
1
1
  # @forge/bundler
2
2
 
3
- ## 7.0.2-next.3-experimental-bd3d812
3
+ ## 7.0.2-next.3-experimental-c6a3916
4
+
5
+ ### Minor Changes
6
+
7
+ - 342098d: Implement server-side linter logic to prevent accidental major app version deployments
4
8
 
5
9
  ### Patch Changes
6
10
 
11
+ - 9cd0e0e: Update Forge CLI output rendering to incorporate pre-deployment API rules
7
12
  - Updated dependencies [4c5ba1c]
13
+ - Updated dependencies [903d6c1]
14
+ - Updated dependencies [9cd0e0e]
15
+ - Updated dependencies [342098d]
8
16
  - Updated dependencies [757223b]
9
17
  - Updated dependencies [7195f29]
10
18
  - Updated dependencies [3252a62]
11
19
  - Updated dependencies [3991f92]
12
- - @forge/manifest@13.1.1-next.2-experimental-bd3d812
13
- - @forge/cli-shared@9.2.0-next.3-experimental-bd3d812
14
- - @forge/lint@6.0.2-next.3-experimental-bd3d812
20
+ - @forge/manifest@13.1.1-next.2-experimental-c6a3916
21
+ - @forge/cli-shared@9.2.0-next.3-experimental-c6a3916
22
+ - @forge/lint@6.0.2-next.3-experimental-c6a3916
15
23
 
16
24
  ## 7.0.2-next.3
17
25
 
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,EAWf,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,CA0Df"}
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, 'development', logger, statsigService, graphQLClient);
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.0.2-next.3-experimental-bd3d812",
3
+ "version": "7.0.2-next.3-experimental-c6a3916",
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.2.0-next.3-experimental-bd3d812",
24
+ "@forge/cli-shared": "9.2.0-next.3-experimental-c6a3916",
25
25
  "@forge/i18n": "1.0.0",
26
- "@forge/lint": "6.0.2-next.3-experimental-bd3d812",
27
- "@forge/manifest": "13.1.1-next.2-experimental-bd3d812",
26
+ "@forge/lint": "6.0.2-next.3-experimental-c6a3916",
27
+ "@forge/manifest": "13.1.1-next.2-experimental-c6a3916",
28
28
  "babel-loader": "^8.3.0",
29
29
  "cheerio": "^1.2.0",
30
30
  "cross-spawn": "^7.0.6",