@yunsoft/yuncms-core 0.1.20 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yunsoft/yuncms-core",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Core services, schema, authentication, permissions and storage primitives for YunCMS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,6 +31,6 @@
31
31
  "dependencies": {
32
32
  "@aws-sdk/client-s3": "3.1100.0",
33
33
  "mysql2": "3.23.2",
34
- "nodemailer": "9.0.3"
34
+ "nodemailer": "9.1.1"
35
35
  }
36
36
  }
package/src/index.js CHANGED
@@ -14,6 +14,7 @@ export {
14
14
  redactRedisUrl,
15
15
  } from './redis.js';
16
16
  export { createDatabasePool, pingDatabase, closeDatabasePool } from './database.js';
17
+ export { canonicalStudioLocale, STUDIO_LOCALE_CODES } from './studio-locales.js';
17
18
  export { withTransaction, withConnectionTransaction } from './transaction.js';
18
19
  export { assertIdentifier, quoteIdentifier } from './identifier.js';
19
20
  export { normalizeDisplayName, normalizeSchemaKey, resolveSchemaName } from './schema-key.js';
@@ -2,7 +2,7 @@ export const studioLocalesMigration = {
2
2
  id: '0020-studio-locales',
3
3
  statements: [
4
4
  `ALTER TABLE yuncms_studio_settings
5
- DROP CHECK chk_yuncms_studio_settings_locale,
5
+ DROP CONSTRAINT chk_yuncms_studio_settings_locale,
6
6
  ADD CONSTRAINT chk_yuncms_studio_settings_locale
7
7
  CHECK (default_locale IN ('en', 'tr', 'es', 'de', 'fr', 'pt-BR', 'ja', 'zh-CN'))`,
8
8
  ],