Skip to content

Commit e197cc2

Browse files
committed
update snapshots
1 parent 703a10f commit e197cc2

File tree

10 files changed

+9
-17
lines changed

10 files changed

+9
-17
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
/* Test */ /* Test directives inside comments
2-
'use server'
3-
*/ // This should be kept
41
export const __next_private_export_map__ = '[["x","foo","a"],["y","1","y"],["b","foo","b"],["default","foo","default"],["z","bar","default"]]';
5-
export const __next_private_directive_list__ = '["use client"]';
2+
export const __next_private_directive_list__ = '["use client"]';

crates/next-custom-transforms/tests/fixture/react-server-components/client-graph/client-entry/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// This is a comment.
21
/* __next_internal_client_entry_do_not_use__ default auto */ ;
2+
// This is a comment.
33
'use strict';
44
// This is a comment.
55
'foo';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// This is a comment.
21
/* __next_internal_client_entry_do_not_use__ default,a,b,c,*,f auto */ ;
32
const { createProxy } = require("private-next-rsc-mod-ref-proxy");
43
module.exports = createProxy("/some-project/src/some-file.js");

crates/next-custom-transforms/tests/fixture/server-actions/client-graph/1/output.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// app/send.ts
21
/* __next_internal_action_entry_do_not_use__ {"7fab21efdafbe611287bc25c0462b1e0510d13e48b":"foo"} */ ;
32
import { createServerReference, callServer, findSourceMapURL } from "private-next-rsc-action-client-wrapper";
43
export var foo = /*#__PURE__*/ createServerReference("7fab21efdafbe611287bc25c0462b1e0510d13e48b", callServer, void 0, findSourceMapURL, "foo");

crates/next-custom-transforms/tests/fixture/server-actions/server-graph/27/output.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Rules here:
2-
// 1. Each exported function should still be exported, but as a reference `registerServerReference(...)`.
3-
// 2. Actual action functions should be renamed to `$$ACTION_...` and got exported.
41
/* __next_internal_action_entry_do_not_use__ {"001c36b06e398c97abe5d5d7ae8c672bfddf4e1b91":"$$RSC_SERVER_ACTION_2","006a88810ecce4a4e8b59d53b8327d7e98bbf251d7":"$$RSC_SERVER_ACTION_0","0090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","009ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","00a9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4"} */ ;
52
import { registerServerReference } from "private-next-rsc-server-reference";
6-
export const $$RSC_SERVER_ACTION_0 = async function foo() {
3+
export const // Rules here:
4+
// 1. Each exported function should still be exported, but as a reference `registerServerReference(...)`.
5+
// 2. Actual action functions should be renamed to `$$ACTION_...` and got exported.
6+
$$RSC_SERVER_ACTION_0 = async function foo() {
77
console.log(1);
88
};
99
registerServerReference($$RSC_SERVER_ACTION_0, "006a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);

crates/next-custom-transforms/tests/fixture/server-actions/server-graph/3/output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// app/send.ts
21
/* __next_internal_action_entry_do_not_use__ {"70e10665baac148856374b2789aceb970f66fec33e":"myAction"} */ ;
32
import { registerServerReference } from "private-next-rsc-server-reference";
43
export async function myAction(a, b, c) {

crates/next-custom-transforms/tests/fixture/server-actions/server-graph/46/output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// This is for testing the "information byte" of Server Action / Cache IDs.
2-
// Should be 1 110000 0, which is "e0" in hex.
31
/* __next_internal_action_entry_do_not_use__ {"6090b5db271335765a4b0eab01f044b381b5ebd5cd":"$$RSC_SERVER_ACTION_1","7c9ed0cc47abc4e1c64320cf42b74ae60b58c40f00":"$$RSC_SERVER_ACTION_3","7ea9b2939c1f39073a6bed227fd20233064c8b7869":"$$RSC_SERVER_ACTION_4","e03128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0","ff471a5eb0be1c31686dd4ba938a80328b80b1615d":"$$RSC_SERVER_CACHE_5","ff69348c79fce073bae2f70f139565a2fda1c74c74":"$$RSC_SERVER_CACHE_2"} */ ;
42
import { registerServerReference } from "private-next-rsc-server-reference";
53
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
64
import { cache as $$reactCache__ } from "react";
5+
// This is for testing the "information byte" of Server Action / Cache IDs.
6+
// Should be 1 110000 0, which is "e0" in hex.
77
const $$RSC_SERVER_CACHE_0_INNER = async function f1(a, b) {
88
return [
99
a,

crates/next-custom-transforms/tests/fixture/server-actions/server-graph/9/output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// app/send.ts
21
/* __next_internal_action_entry_do_not_use__ {"7f050e3854b72b19e3c7e3966a67535543a90bf7e0":"baz","7fab21efdafbe611287bc25c0462b1e0510d13e48b":"foo","7fc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":"default"} */ ;
32
import { registerServerReference } from "private-next-rsc-server-reference";
43
async function foo() {}

crates/next-custom-transforms/tests/loader/auto-cjs/react-prod/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// This file should not import helpers using ESM syntax
21
"use strict";
32
Object.defineProperty(exports, "__esModule", {
43
value: true
54
});
65
var _class_call_check = require("@swc/helpers/_/_class_call_check");
6+
// This file should not import helpers using ESM syntax
77
var E = function Foo() {
88
"use strict";
99
_class_call_check._(this, Foo);

0 commit comments

Comments
 (0)