1.1.0: bug fixes, stomped out old references to alpha quality, corrected 3.x to 4.x (with bc)#19
1.1.0: bug fixes, stomped out old references to alpha quality, corrected 3.x to 4.x (with bc)#19boutell merged 3 commits intoreview-1.1.0from
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
| @@ -1,5 +1,11 @@ | |||
| # Changelog | |||
|
|
|||
| ## 1.1.0 (2026-03-02) | |||
There was a problem hiding this comment.
I forget why we decided not to put this module in the monorepo, but I do remember talking about it!
| construct(self, options) { | ||
| self.a2ToA3Paths = new Map(); | ||
| self.a2ToA3Ids = new Map(); | ||
| self.a2ToA4Paths = new Map(); |
| }; | ||
| self.connectToNewDb = async () => { | ||
| const uri = self.apos.argv['a3-db']; | ||
| const uri = self.apos.argv['a4-db'] || self.apos.argv['a3-db']; |
There was a problem hiding this comment.
Note backwards compatible.
| }); | ||
| }; | ||
| self.fixLastPublishedAt = async () => { | ||
| console.log('Fixing lastPublishedAt properties (may take a long time)...'); |
There was a problem hiding this comment.
This was the big reason others struggled to use the module. Nasty last-mile issue.
| doc.aposLocale = `${defaultLocale}:draft`; | ||
| doc.aposMode = 'draft'; | ||
| if (!doc.trash) { | ||
| // The trash page itself *does* get published, oddly enough, or A4 is mad |
There was a problem hiding this comment.
Another last-mile hangup.
| // A4/A4 is a stickler for this property | ||
| const aposLocales = await self.docs.distinct('aposLocale'); | ||
| const locales = [...new Set(aposLocales.map(name => name.split(':')[0]))]; | ||
| // TODO mongodb batch operation might be smootehr than Promise.all |
There was a problem hiding this comment.
| // TODO mongodb batch operation might be smootehr than Promise.all | |
| // TODO mongodb batch operation might be smoother than Promise.all |
The changes are in main, for Reasons (I thought I had to test github links, I don't anymore, see my PR code-upgrader)
But I've made this PR to a suitable base branch so you can review it properly before I publish.