@payloadcms/db-mongodb 3.70.0-canary.3 → 3.70.0-canary.4
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test predefined migration for testing plugin-style module specifier imports.
|
|
3
|
+
* This is used in integration tests to verify that external packages can export
|
|
4
|
+
* predefined migrations via their package.json exports.
|
|
5
|
+
*/
|
|
6
|
+
declare const imports = "";
|
|
7
|
+
declare const upSQL = " // Test predefined migration from @payloadcms/db-mongodb/__testing__\n payload.logger.info('Test migration UP executed')";
|
|
8
|
+
declare const downSQL = " // Test predefined migration DOWN\n payload.logger.info('Test migration DOWN executed')";
|
|
9
|
+
export { downSQL, imports, upSQL };
|
|
10
|
+
//# sourceMappingURL=__testing__.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__testing__.d.ts","sourceRoot":"","sources":["../../src/predefinedMigrations/__testing__.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,OAAO,KAAK,CAAA;AAClB,QAAA,MAAM,KAAK,gIACyC,CAAA;AACpD,QAAA,MAAM,OAAO,+FACyC,CAAA;AAEtD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test predefined migration for testing plugin-style module specifier imports.
|
|
3
|
+
* This is used in integration tests to verify that external packages can export
|
|
4
|
+
* predefined migrations via their package.json exports.
|
|
5
|
+
*/ const imports = ``;
|
|
6
|
+
const upSQL = ` // Test predefined migration from @payloadcms/db-mongodb/__testing__
|
|
7
|
+
payload.logger.info('Test migration UP executed')`;
|
|
8
|
+
const downSQL = ` // Test predefined migration DOWN
|
|
9
|
+
payload.logger.info('Test migration DOWN executed')`;
|
|
10
|
+
export { downSQL, imports, upSQL };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=__testing__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/predefinedMigrations/__testing__.ts"],"sourcesContent":["/**\n * Test predefined migration for testing plugin-style module specifier imports.\n * This is used in integration tests to verify that external packages can export\n * predefined migrations via their package.json exports.\n */\nconst imports = ``\nconst upSQL = ` // Test predefined migration from @payloadcms/db-mongodb/__testing__\n payload.logger.info('Test migration UP executed')`\nconst downSQL = ` // Test predefined migration DOWN\n payload.logger.info('Test migration DOWN executed')`\n\nexport { downSQL, imports, upSQL }\n"],"names":["imports","upSQL","downSQL"],"mappings":"AAAA;;;;CAIC,GACD,MAAMA,UAAU,EAAE;AAClB,MAAMC,QAAQ,CAAC;mDACoC,CAAC;AACpD,MAAMC,UAAU,CAAC;qDACoC,CAAC;AAEtD,SAASA,OAAO,EAAEF,OAAO,EAAEC,KAAK,GAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/db-mongodb",
|
|
3
|
-
"version": "3.70.0-canary.
|
|
3
|
+
"version": "3.70.0-canary.4",
|
|
4
4
|
"description": "The officially supported MongoDB database adapter for Payload",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"mongodb": "6.16.0",
|
|
56
56
|
"mongodb-memory-server": "10.1.4",
|
|
57
57
|
"@payloadcms/eslint-config": "3.28.0",
|
|
58
|
-
"payload": "3.70.0-canary.
|
|
58
|
+
"payload": "3.70.0-canary.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"payload": "3.70.0-canary.
|
|
61
|
+
"payload": "3.70.0-canary.4"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "pnpm build:types && pnpm build:swc",
|