@cedarjs/babel-config 5.0.0-canary.2614 → 5.0.0-rc.273

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/dist/api.js CHANGED
@@ -46,7 +46,7 @@ var import_project_config = require("@cedarjs/project-config");
46
46
  var import_common = require("./common.js");
47
47
  var import_babel_plugin_cedar_gqlorm_inject = __toESM(require("./plugins/babel-plugin-cedar-gqlorm-inject.js"));
48
48
  var import_babel_plugin_cedar_graphql_options_extract = __toESM(require("./plugins/babel-plugin-cedar-graphql-options-extract.js"));
49
- var import_babel_plugin_handler_als_wrapping = __toESM(require("./plugins/babel-plugin-handler-als-wrapping.js"));
49
+ var import_babel_plugin_redwood_context_wrapping = __toESM(require("./plugins/babel-plugin-redwood-context-wrapping.js"));
50
50
  var import_babel_plugin_redwood_directory_named_import = __toESM(require("./plugins/babel-plugin-redwood-directory-named-import.js"));
51
51
  var import_babel_plugin_redwood_import_dir = __toESM(require("./plugins/babel-plugin-redwood-import-dir.js"));
52
52
  var import_babel_plugin_redwood_job_path_injector = __toESM(require("./plugins/babel-plugin-redwood-job-path-injector.js"));
@@ -166,20 +166,20 @@ const getApiSideBabelOverrides = ({
166
166
  } = {}) => {
167
167
  const overrides = [
168
168
  // Extract graphql options from the graphql function
169
- // NOTE: this must come before the handler-als-wrapping
169
+ // NOTE: this must come before the context wrapping
170
170
  {
171
171
  // match */api/src/functions/graphql.js|ts
172
172
  test: /.+api(?:[\\|/])src(?:[\\|/])functions(?:[\\|/])graphql\.(?:js|ts)$/,
173
173
  plugins: [import_babel_plugin_cedar_graphql_options_extract.default, import_babel_plugin_cedar_gqlorm_inject.default]
174
174
  },
175
- // Apply handler ALS wrapping to all functions (Jest only; Vite uses
176
- // handlerAlsWrappingPlugin instead)
175
+ // Apply context wrapping to all functions (Jest only; Vite uses
176
+ // cedarContextWrappingPlugin instead)
177
177
  forJest && {
178
178
  // match */api/src/functions/*.js|ts
179
179
  test: /.+api(?:[\\|/])src(?:[\\|/])functions(?:[\\|/]).+.(?:js|ts)$/,
180
180
  plugins: [
181
181
  [
182
- import_babel_plugin_handler_als_wrapping.default,
182
+ import_babel_plugin_redwood_context_wrapping.default,
183
183
  {
184
184
  projectIsEsm
185
185
  }
@@ -4,4 +4,4 @@ export default function ({ types: t }: {
4
4
  }, { projectIsEsm }?: {
5
5
  projectIsEsm?: boolean;
6
6
  }): PluginObj;
7
- //# sourceMappingURL=babel-plugin-handler-als-wrapping.d.ts.map
7
+ //# sourceMappingURL=babel-plugin-redwood-context-wrapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babel-plugin-redwood-context-wrapping.d.ts","sourceRoot":"","sources":["../../src/plugins/babel-plugin-redwood-context-wrapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAkEnD,MAAM,CAAC,OAAO,WACZ,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAAE,EACrC,EAAE,YAAoB,EAAE,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACxD,SAAS,CA+DX"}
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var babel_plugin_handler_als_wrapping_exports = {};
20
- __export(babel_plugin_handler_als_wrapping_exports, {
21
- default: () => babel_plugin_handler_als_wrapping_default
19
+ var babel_plugin_redwood_context_wrapping_exports = {};
20
+ __export(babel_plugin_redwood_context_wrapping_exports, {
21
+ default: () => babel_plugin_redwood_context_wrapping_default
22
22
  });
23
- module.exports = __toCommonJS(babel_plugin_handler_als_wrapping_exports);
23
+ module.exports = __toCommonJS(babel_plugin_redwood_context_wrapping_exports);
24
24
  function generateWrappedHandler(t, isAsync) {
25
25
  const contextStoreVariableDeclaration = t.variableDeclaration("const", [
26
26
  t.variableDeclarator(
@@ -80,9 +80,9 @@ function generateWrappedHandler(t, isAsync) {
80
80
  isAsync
81
81
  );
82
82
  }
83
- function babel_plugin_handler_als_wrapping_default({ types: t }, { projectIsEsm = false } = {}) {
83
+ function babel_plugin_redwood_context_wrapping_default({ types: t }, { projectIsEsm = false } = {}) {
84
84
  return {
85
- name: "babel-plugin-handler-als-wrapping",
85
+ name: "babel-plugin-redwood-context-wrapping",
86
86
  visitor: {
87
87
  ExportNamedDeclaration(path, _state) {
88
88
  const declaration = path.node.declaration;
package/dist/web.d.ts CHANGED
@@ -15,7 +15,7 @@ export interface Flags {
15
15
  forJavaScriptLinting?: boolean;
16
16
  /**
17
17
  * skip src/ alias and directory-named-import handling. The Vite
18
- * `cedarjs-resolve-cedar-style-imports` plugin covers these
18
+ * `cedarjs-directory-named-import` plugin covers these
19
19
  */
20
20
  forVite?: boolean;
21
21
  }
package/dist/web.js CHANGED
@@ -78,7 +78,7 @@ const getWebSideBabelPlugins = ({ forJest, forVite } = { forJest: false }) => {
78
78
  "rwjs-module-resolver"
79
79
  ],
80
80
  // Vite uses
81
- // packages/vite/src/plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.ts
81
+ // packages/vite/src/plugins/vite-plugin-cedarjs-directory-named-import.ts
82
82
  // instead of this babel plugin
83
83
  !forVite && [
84
84
  require("./plugins/babel-plugin-redwood-directory-named-import").default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/babel-config",
3
- "version": "5.0.0-canary.2614",
3
+ "version": "5.0.0-rc.273",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -35,7 +35,7 @@
35
35
  "@babel/preset-typescript": "7.29.7",
36
36
  "@babel/register": "7.29.7",
37
37
  "@babel/traverse": "7.29.7",
38
- "@cedarjs/project-config": "5.0.0-canary.2614",
38
+ "@cedarjs/project-config": "5.0.0-rc.273",
39
39
  "babel-plugin-auto-import": "1.1.0",
40
40
  "babel-plugin-graphql-tag": "3.3.0",
41
41
  "babel-plugin-module-resolver": "5.0.3",
@@ -44,7 +44,7 @@
44
44
  "typescript": "5.9.3"
45
45
  },
46
46
  "devDependencies": {
47
- "@cedarjs/framework-tools": "5.0.0-canary.2614",
47
+ "@cedarjs/framework-tools": "5.0.0-rc.273",
48
48
  "@jridgewell/trace-mapping": "0.3.31",
49
49
  "@types/babel-plugin-tester": "11.0.0",
50
50
  "@types/babel__core": "7.20.5",
@@ -1 +0,0 @@
1
- {"version":3,"file":"babel-plugin-handler-als-wrapping.d.ts","sourceRoot":"","sources":["../../src/plugins/babel-plugin-handler-als-wrapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAkEnD,MAAM,CAAC,OAAO,WACZ,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAAE,EACrC,EAAE,YAAoB,EAAE,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACxD,SAAS,CA+DX"}