@payloadcms/db-mongodb 4.0.0-internal.cea8867 → 4.0.0-internal.d21c039

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.
Files changed (50) hide show
  1. package/dist/connect.d.ts.map +1 -1
  2. package/dist/connect.js +8 -2
  3. package/dist/connect.js.map +1 -1
  4. package/dist/create.d.ts.map +1 -1
  5. package/dist/create.js +2 -1
  6. package/dist/create.js.map +1 -1
  7. package/dist/createGlobalVersion.js +1 -1
  8. package/dist/createGlobalVersion.js.map +1 -1
  9. package/dist/createMigration.d.ts.map +1 -1
  10. package/dist/createMigration.js +9 -2
  11. package/dist/createMigration.js.map +1 -1
  12. package/dist/createVersion.js +1 -1
  13. package/dist/createVersion.js.map +1 -1
  14. package/dist/find.js +1 -1
  15. package/dist/find.js.map +1 -1
  16. package/dist/findDistinct.d.ts.map +1 -1
  17. package/dist/findDistinct.js +52 -8
  18. package/dist/findDistinct.js.map +1 -1
  19. package/dist/findOne.js +1 -1
  20. package/dist/findOne.js.map +1 -1
  21. package/dist/migrateFresh.d.ts +4 -2
  22. package/dist/migrateFresh.d.ts.map +1 -1
  23. package/dist/migrateFresh.js +20 -6
  24. package/dist/migrateFresh.js.map +1 -1
  25. package/dist/predefinedMigrations/migrateRelationshipsV2_V3.d.ts.map +1 -1
  26. package/dist/predefinedMigrations/migrateRelationshipsV2_V3.js +4 -4
  27. package/dist/predefinedMigrations/migrateRelationshipsV2_V3.js.map +1 -1
  28. package/dist/queries/buildSearchParams.d.ts.map +1 -1
  29. package/dist/queries/buildSearchParams.js +189 -6
  30. package/dist/queries/buildSearchParams.js.map +1 -1
  31. package/dist/queries/parseParams.js.map +1 -1
  32. package/dist/queryDrafts.js +1 -1
  33. package/dist/queryDrafts.js.map +1 -1
  34. package/dist/updateJobs.d.ts.map +1 -1
  35. package/dist/updateJobs.js +70 -13
  36. package/dist/updateJobs.js.map +1 -1
  37. package/dist/utilities/buildJoinAggregation.d.ts +1 -1
  38. package/dist/utilities/buildJoinAggregation.d.ts.map +1 -1
  39. package/dist/utilities/buildJoinAggregation.js +2 -2
  40. package/dist/utilities/buildJoinAggregation.js.map +1 -1
  41. package/dist/utilities/transform.d.ts.map +1 -1
  42. package/dist/utilities/transform.js +15 -0
  43. package/dist/utilities/transform.js.map +1 -1
  44. package/package.json +5 -5
  45. package/dist/queries/buildSortParam.spec.js +0 -123
  46. package/dist/queries/buildSortParam.spec.js.map +0 -1
  47. package/dist/queries/getLocalizedSortProperty.spec.js +0 -215
  48. package/dist/queries/getLocalizedSortProperty.spec.js.map +0 -1
  49. package/dist/utilities/transform.spec.js +0 -479
  50. package/dist/utilities/transform.spec.js.map +0 -1
@@ -1,123 +0,0 @@
1
- import { describe, beforeAll, it, expect } from 'vitest';
2
- import { sanitizeConfig } from 'payload';
3
- import { buildSortParam } from './buildSortParam.js';
4
- let config;
5
- describe('builds sort params', ()=>{
6
- beforeAll(async ()=>{
7
- config = await sanitizeConfig({
8
- localization: {
9
- defaultLocale: 'en',
10
- fallback: true,
11
- locales: [
12
- 'en',
13
- 'es'
14
- ]
15
- }
16
- });
17
- });
18
- it('adds a fallback on non-unique field', ()=>{
19
- const result = buildSortParam({
20
- config,
21
- parentIsLocalized: false,
22
- fields: [
23
- {
24
- name: 'title',
25
- type: 'text'
26
- },
27
- {
28
- name: 'order',
29
- type: 'number'
30
- }
31
- ],
32
- locale: 'en',
33
- sort: 'order',
34
- timestamps: true,
35
- adapter: {
36
- disableFallbackSort: false
37
- }
38
- });
39
- expect(result).toStrictEqual({
40
- order: 'asc',
41
- createdAt: 'desc'
42
- });
43
- });
44
- it('adds a fallback when sort isnt provided', ()=>{
45
- const result = buildSortParam({
46
- config,
47
- parentIsLocalized: false,
48
- fields: [
49
- {
50
- name: 'title',
51
- type: 'text'
52
- },
53
- {
54
- name: 'order',
55
- type: 'number'
56
- }
57
- ],
58
- locale: 'en',
59
- sort: undefined,
60
- timestamps: true,
61
- adapter: {
62
- disableFallbackSort: false
63
- }
64
- });
65
- expect(result).toStrictEqual({
66
- createdAt: 'desc'
67
- });
68
- });
69
- it('does not add a fallback on non-unique field when disableFallbackSort is true', ()=>{
70
- const result = buildSortParam({
71
- config,
72
- parentIsLocalized: false,
73
- fields: [
74
- {
75
- name: 'title',
76
- type: 'text'
77
- },
78
- {
79
- name: 'order',
80
- type: 'number'
81
- }
82
- ],
83
- locale: 'en',
84
- sort: 'order',
85
- timestamps: true,
86
- adapter: {
87
- disableFallbackSort: true
88
- }
89
- });
90
- expect(result).toStrictEqual({
91
- order: 'asc'
92
- });
93
- });
94
- // This test should be true even when disableFallbackSort is false
95
- it('does not add a fallback on unique field', ()=>{
96
- const result = buildSortParam({
97
- config,
98
- parentIsLocalized: false,
99
- fields: [
100
- {
101
- name: 'title',
102
- type: 'text'
103
- },
104
- {
105
- name: 'order',
106
- type: 'number',
107
- unique: true
108
- }
109
- ],
110
- locale: 'en',
111
- sort: 'order',
112
- timestamps: true,
113
- adapter: {
114
- disableFallbackSort: false
115
- }
116
- });
117
- expect(result).toStrictEqual({
118
- order: 'asc'
119
- });
120
- });
121
- });
122
-
123
- //# sourceMappingURL=buildSortParam.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/queries/buildSortParam.spec.ts"],"sourcesContent":["import type { Config, SanitizedConfig } from 'payload'\nimport { describe, beforeAll, it, expect } from 'vitest'\n\nimport { sanitizeConfig } from 'payload'\n\nimport { buildSortParam } from './buildSortParam.js'\nimport { MongooseAdapter } from '../index.js'\n\nlet config: SanitizedConfig\n\ndescribe('builds sort params', () => {\n beforeAll(async () => {\n config = await sanitizeConfig({\n localization: {\n defaultLocale: 'en',\n fallback: true,\n locales: ['en', 'es'],\n },\n } as Config)\n })\n it('adds a fallback on non-unique field', () => {\n const result = buildSortParam({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n },\n {\n name: 'order',\n type: 'number',\n },\n ],\n locale: 'en',\n sort: 'order',\n timestamps: true,\n adapter: {\n disableFallbackSort: false,\n } as MongooseAdapter,\n })\n\n expect(result).toStrictEqual({ order: 'asc', createdAt: 'desc' })\n })\n\n it('adds a fallback when sort isnt provided', () => {\n const result = buildSortParam({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n },\n {\n name: 'order',\n type: 'number',\n },\n ],\n locale: 'en',\n sort: undefined,\n timestamps: true,\n adapter: {\n disableFallbackSort: false,\n } as MongooseAdapter,\n })\n\n expect(result).toStrictEqual({ createdAt: 'desc' })\n })\n\n it('does not add a fallback on non-unique field when disableFallbackSort is true', () => {\n const result = buildSortParam({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n },\n {\n name: 'order',\n type: 'number',\n },\n ],\n locale: 'en',\n sort: 'order',\n timestamps: true,\n adapter: {\n disableFallbackSort: true,\n } as MongooseAdapter,\n })\n\n expect(result).toStrictEqual({ order: 'asc' })\n })\n\n // This test should be true even when disableFallbackSort is false\n it('does not add a fallback on unique field', () => {\n const result = buildSortParam({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n },\n {\n name: 'order',\n type: 'number',\n unique: true, // Marking this field as unique\n },\n ],\n locale: 'en',\n sort: 'order',\n timestamps: true,\n adapter: {\n disableFallbackSort: false,\n } as MongooseAdapter,\n })\n\n expect(result).toStrictEqual({ order: 'asc' })\n })\n})\n"],"names":["describe","beforeAll","it","expect","sanitizeConfig","buildSortParam","config","localization","defaultLocale","fallback","locales","result","parentIsLocalized","fields","name","type","locale","sort","timestamps","adapter","disableFallbackSort","toStrictEqual","order","createdAt","undefined","unique"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,EAAE,EAAEC,MAAM,QAAQ,SAAQ;AAExD,SAASC,cAAc,QAAQ,UAAS;AAExC,SAASC,cAAc,QAAQ,sBAAqB;AAGpD,IAAIC;AAEJN,SAAS,sBAAsB;IAC7BC,UAAU;QACRK,SAAS,MAAMF,eAA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AAM;YACNC,YAAY;YACZC,SAAS;gBACPC,qBAAqB;YACvB;QACF;QAEAjB,OAAOQ,QAAQU,aAAa,CAAC;YAAEC,OAAO;QAAM;IAC9C;AACF"}
@@ -1,215 +0,0 @@
1
- import { describe, beforeAll, it, expect } from 'vitest';
2
- import { flattenAllFields, sanitizeConfig } from 'payload';
3
- import { getLocalizedSortProperty } from './getLocalizedSortProperty.js';
4
- let config;
5
- describe('get localized sort property', ()=>{
6
- beforeAll(async ()=>{
7
- config = await sanitizeConfig({
8
- localization: {
9
- defaultLocale: 'en',
10
- fallback: true,
11
- locales: [
12
- 'en',
13
- 'es'
14
- ]
15
- }
16
- });
17
- });
18
- it('passes through a non-localized sort property', ()=>{
19
- const result = getLocalizedSortProperty({
20
- config,
21
- parentIsLocalized: false,
22
- fields: [
23
- {
24
- name: 'title',
25
- type: 'text'
26
- }
27
- ],
28
- locale: 'en',
29
- segments: [
30
- 'title'
31
- ]
32
- });
33
- expect(result).toStrictEqual('title');
34
- });
35
- it('properly localizes an un-localized sort property', ()=>{
36
- const result = getLocalizedSortProperty({
37
- config,
38
- parentIsLocalized: false,
39
- fields: [
40
- {
41
- name: 'title',
42
- type: 'text',
43
- localized: true
44
- }
45
- ],
46
- locale: 'en',
47
- segments: [
48
- 'title'
49
- ]
50
- });
51
- expect(result).toStrictEqual('title.en');
52
- });
53
- it('keeps specifically asked-for localized sort properties', ()=>{
54
- const result = getLocalizedSortProperty({
55
- config,
56
- parentIsLocalized: false,
57
- fields: [
58
- {
59
- name: 'title',
60
- type: 'text',
61
- localized: true
62
- }
63
- ],
64
- locale: 'en',
65
- segments: [
66
- 'title',
67
- 'es'
68
- ]
69
- });
70
- expect(result).toStrictEqual('title.es');
71
- });
72
- it('properly localizes nested sort properties', ()=>{
73
- const result = getLocalizedSortProperty({
74
- config,
75
- parentIsLocalized: false,
76
- fields: flattenAllFields({
77
- fields: [
78
- {
79
- name: 'group',
80
- type: 'group',
81
- fields: [
82
- {
83
- name: 'title',
84
- type: 'text',
85
- localized: true
86
- }
87
- ]
88
- }
89
- ]
90
- }),
91
- locale: 'en',
92
- segments: [
93
- 'group',
94
- 'title'
95
- ]
96
- });
97
- expect(result).toStrictEqual('group.title.en');
98
- });
99
- it('keeps requested locale with nested sort properties', ()=>{
100
- const result = getLocalizedSortProperty({
101
- config,
102
- parentIsLocalized: false,
103
- fields: flattenAllFields({
104
- fields: [
105
- {
106
- name: 'group',
107
- type: 'group',
108
- fields: [
109
- {
110
- name: 'title',
111
- type: 'text',
112
- localized: true
113
- }
114
- ]
115
- }
116
- ]
117
- }),
118
- locale: 'en',
119
- segments: [
120
- 'group',
121
- 'title',
122
- 'es'
123
- ]
124
- });
125
- expect(result).toStrictEqual('group.title.es');
126
- });
127
- it('properly localizes field within row', ()=>{
128
- const result = getLocalizedSortProperty({
129
- config,
130
- parentIsLocalized: false,
131
- fields: flattenAllFields({
132
- fields: [
133
- {
134
- type: 'row',
135
- fields: [
136
- {
137
- name: 'title',
138
- type: 'text',
139
- localized: true
140
- }
141
- ]
142
- }
143
- ]
144
- }),
145
- locale: 'en',
146
- segments: [
147
- 'title'
148
- ]
149
- });
150
- expect(result).toStrictEqual('title.en');
151
- });
152
- it('properly localizes field within named tab', ()=>{
153
- const result = getLocalizedSortProperty({
154
- config,
155
- parentIsLocalized: false,
156
- fields: flattenAllFields({
157
- fields: [
158
- {
159
- type: 'tabs',
160
- tabs: [
161
- {
162
- name: 'tab',
163
- fields: [
164
- {
165
- name: 'title',
166
- type: 'text',
167
- localized: true
168
- }
169
- ]
170
- }
171
- ]
172
- }
173
- ]
174
- }),
175
- locale: 'en',
176
- segments: [
177
- 'tab',
178
- 'title'
179
- ]
180
- });
181
- expect(result).toStrictEqual('tab.title.en');
182
- });
183
- it('properly localizes field within unnamed tab', ()=>{
184
- const result = getLocalizedSortProperty({
185
- config,
186
- parentIsLocalized: false,
187
- fields: flattenAllFields({
188
- fields: [
189
- {
190
- type: 'tabs',
191
- tabs: [
192
- {
193
- fields: [
194
- {
195
- name: 'title',
196
- type: 'text',
197
- localized: true
198
- }
199
- ],
200
- label: 'Tab'
201
- }
202
- ]
203
- }
204
- ]
205
- }),
206
- locale: 'en',
207
- segments: [
208
- 'title'
209
- ]
210
- });
211
- expect(result).toStrictEqual('title.en');
212
- });
213
- });
214
-
215
- //# sourceMappingURL=getLocalizedSortProperty.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/queries/getLocalizedSortProperty.spec.ts"],"sourcesContent":["import { describe, beforeAll, it, expect } from 'vitest'\nimport type { Config, SanitizedConfig } from 'payload'\nimport { flattenAllFields, sanitizeConfig } from 'payload'\n\nimport { getLocalizedSortProperty } from './getLocalizedSortProperty.js'\n\nlet config: SanitizedConfig\n\ndescribe('get localized sort property', () => {\n beforeAll(async () => {\n config = await sanitizeConfig({\n localization: {\n defaultLocale: 'en',\n fallback: true,\n locales: ['en', 'es'],\n },\n } as Config)\n })\n it('passes through a non-localized sort property', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n },\n ],\n locale: 'en',\n segments: ['title'],\n })\n\n expect(result).toStrictEqual('title')\n })\n\n it('properly localizes an un-localized sort property', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n locale: 'en',\n segments: ['title'],\n })\n\n expect(result).toStrictEqual('title.en')\n })\n\n it('keeps specifically asked-for localized sort properties', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n locale: 'en',\n segments: ['title', 'es'],\n })\n\n expect(result).toStrictEqual('title.es')\n })\n\n it('properly localizes nested sort properties', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: flattenAllFields({\n fields: [\n {\n name: 'group',\n type: 'group',\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n },\n ],\n }),\n locale: 'en',\n segments: ['group', 'title'],\n })\n\n expect(result).toStrictEqual('group.title.en')\n })\n\n it('keeps requested locale with nested sort properties', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: flattenAllFields({\n fields: [\n {\n name: 'group',\n type: 'group',\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n },\n ],\n }),\n locale: 'en',\n segments: ['group', 'title', 'es'],\n })\n\n expect(result).toStrictEqual('group.title.es')\n })\n\n it('properly localizes field within row', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: flattenAllFields({\n fields: [\n {\n type: 'row',\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n },\n ],\n }),\n locale: 'en',\n segments: ['title'],\n })\n\n expect(result).toStrictEqual('title.en')\n })\n\n it('properly localizes field within named tab', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: flattenAllFields({\n fields: [\n {\n type: 'tabs',\n tabs: [\n {\n name: 'tab',\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n },\n ],\n },\n ],\n }),\n locale: 'en',\n segments: ['tab', 'title'],\n })\n\n expect(result).toStrictEqual('tab.title.en')\n })\n\n it('properly localizes field within unnamed tab', () => {\n const result = getLocalizedSortProperty({\n config,\n parentIsLocalized: false,\n fields: flattenAllFields({\n fields: [\n {\n type: 'tabs',\n tabs: [\n {\n fields: [\n {\n name: 'title',\n type: 'text',\n localized: true,\n },\n ],\n label: 'Tab',\n },\n ],\n },\n ],\n }),\n locale: 'en',\n segments: ['title'],\n })\n\n expect(result).toStrictEqual('title.en')\n })\n})\n"],"names":["describe","beforeAll","it","expect","flattenAllFields","sanitizeConfig","getLocalizedSortProperty","config","localization","defaultLocale","fallback","locales","result","parentIsLocalized","fields","name","type","locale","segments","toStrictEqual","localized","tabs","label"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS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