@actions/languageserver 0.3.48 → 0.3.49

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.
@@ -18762,7 +18762,6 @@ var allFeatureKeys = [
18762
18762
  "missingInputsQuickfix",
18763
18763
  "blockScalarChompingWarning",
18764
18764
  "allowCaseFunction",
18765
- "allowCronTimezone",
18766
18765
  "allowCopilotRequestsPermission"
18767
18766
  ];
18768
18767
  var FeatureFlags = class {
@@ -22117,8 +22116,7 @@ function convertOn(context, token) {
22117
22116
  }
22118
22117
  if (eventName === "schedule") {
22119
22118
  const scheduleToken = item.value.assertSequence(`event ${eventName}`);
22120
- const featureFlags = context.state["featureFlags"];
22121
- result.schedule = convertSchedule(context, scheduleToken, featureFlags);
22119
+ result.schedule = convertSchedule(context, scheduleToken);
22122
22120
  continue;
22123
22121
  }
22124
22122
  const eventToken = item.value.assertMapping(`event ${eventName}`);
@@ -22184,9 +22182,7 @@ function convertFilter(name, token) {
22184
22182
  }
22185
22183
  return result;
22186
22184
  }
22187
- function convertSchedule(context, token, featureFlags) {
22188
- const flags = featureFlags ?? new FeatureFlags();
22189
- const allowTimezone = flags.isEnabled("allowCronTimezone");
22185
+ function convertSchedule(context, token) {
22190
22186
  const result = [];
22191
22187
  for (const item of token) {
22192
22188
  const mappingToken = item.assertMapping(`event schedule`);
@@ -22201,13 +22197,8 @@ function convertSchedule(context, token, featureFlags) {
22201
22197
  }
22202
22198
  config.cron = cron.value;
22203
22199
  } else if (key.value === "timezone") {
22204
- if (allowTimezone) {
22205
- const timezone = entry.value.assertString(`schedule timezone`);
22206
- config.timezone = timezone.value;
22207
- } else {
22208
- context.error(key, `Key 'timezone' is not supported`);
22209
- valid = false;
22210
- }
22200
+ const timezone = entry.value.assertString(`schedule timezone`);
22201
+ config.timezone = timezone.value;
22211
22202
  } else {
22212
22203
  context.error(key, `Invalid schedule key`);
22213
22204
  valid = false;
@@ -23124,9 +23115,6 @@ var defaultOptions = {
23124
23115
  async function convertWorkflowTemplate(context, root, fileProvider, options = defaultOptions) {
23125
23116
  const result = {};
23126
23117
  const opts = getOptionsWithDefaults(options);
23127
- if (opts.featureFlags) {
23128
- context.state["featureFlags"] = opts.featureFlags;
23129
- }
23130
23118
  if (context.errors.getErrors().length > 0 && opts.errorPolicy === ErrorPolicy.ReturnErrorsOnly) {
23131
23119
  result.errors = context.errors.getErrors().map((x) => ({
23132
23120
  Message: x.message
@@ -25683,9 +25671,6 @@ async function complete2(textDocument, position, config) {
25683
25671
  if (isAction && parsedTemplate.value) {
25684
25672
  values = filterActionRunsCompletions(values, path, parsedTemplate.value);
25685
25673
  }
25686
- if (!config?.featureFlags?.isEnabled("allowCronTimezone") && parent?.definition?.key === "schedule") {
25687
- values = values.filter((v) => v.label !== "timezone");
25688
- }
25689
25674
  if (!config?.featureFlags?.isEnabled("allowCopilotRequestsPermission") && parent?.definition?.key === "permissions-mapping") {
25690
25675
  values = values.filter((v) => v.label !== "copilot-requests");
25691
25676
  }
@@ -27484,8 +27469,7 @@ async function validateWorkflow(textDocument, config) {
27484
27469
  if (result.value) {
27485
27470
  const template = await getOrConvertWorkflowTemplate(result.context, result.value, textDocument.uri, config, {
27486
27471
  fetchReusableWorkflowDepth: config?.fileProvider ? 1 : 0,
27487
- errorPolicy: ErrorPolicy.TryConversion,
27488
- featureFlags: config?.featureFlags
27472
+ errorPolicy: ErrorPolicy.TryConversion
27489
27473
  });
27490
27474
  await additionalValidations(diagnostics, textDocument.uri, template, result.value, config, config?.featureFlags);
27491
27475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actions/languageserver",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "description": "Language server for GitHub Actions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,8 +48,8 @@
48
48
  "actions-languageserver": "./bin/actions-languageserver"
49
49
  },
50
50
  "dependencies": {
51
- "@actions/languageservice": "^0.3.48",
52
- "@actions/workflow-parser": "^0.3.48",
51
+ "@actions/languageservice": "^0.3.49",
52
+ "@actions/workflow-parser": "^0.3.49",
53
53
  "@octokit/rest": "^21.1.1",
54
54
  "@octokit/types": "^9.0.0",
55
55
  "vscode-languageserver": "^8.0.2",
@@ -79,5 +79,5 @@
79
79
  "ts-jest": "^29.0.3",
80
80
  "typescript": "^5.8.3"
81
81
  },
82
- "gitHead": "f8b8b572483abbef232072aad480f12dee8eb15f"
82
+ "gitHead": "83de320ba99ee2bdbb14a2869462a8033714cd96"
83
83
  }