Skip to content

Commit

Permalink
Revert some changes around xmlBuilder2
Browse files Browse the repository at this point in the history
  • Loading branch information
nschubach committed Mar 1, 2024
1 parent f302afd commit 11f6d5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/rss-fbia-feature-block/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ raw_html_processing: should raw_html be excluded, included or wrapped in <figure
To use this feature in your repo, add the dependencies to your repos package.json
"jmespath": "^0.15.0",
"moment": "^2.24.0",
"xmlbuilder2": "^3.1.1",
"xmlbuilder2": "2.1.7",
For xmlbuilder2 be sure to use version <= 2.1.7 or >= 3.0.0
2 changes: 1 addition & 1 deletion blocks/rss-fbia-feature-block/features/rss/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { BuildContent } from '@wpmedia/feeds-content-elements'
import { BuildPromoItems } from '@wpmedia/feeds-promo-items'
import { generatePropsForFeed } from '@wpmedia/feeds-prop-types'
import { buildResizerURL } from '@wpmedia/feeds-resizer'
const { convert, fragment } = require('xmlbuilder2')
import { convert, fragment } from 'xmlbuilder2'
/****************
* If you are building a custom fb-ia format be sure to
* add moment and xmlbuilder2 to your repo's dependencies
Expand Down
2 changes: 1 addition & 1 deletion blocks/rss-fbia-feature-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"@wpmedia/feeds-resizer": "^1.0.8 || ^2.0.0",
"jmespath": "^0.15.0",
"moment": "^2.29.4",
"xmlbuilder2": "^3.1.1"
"xmlbuilder2": "2.1.7"
}
}
2 changes: 1 addition & 1 deletion utils/content-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"cheerio": "1.0.0-rc.10",
"he": "^1.2.0",
"jmespath": "^0.15.0",
"xmlbuilder2": "^3.1.1"
"xmlbuilder2": "2.1.7"
},
"devDependencies": {
"rollup": "^4.12.0"
Expand Down
2 changes: 1 addition & 1 deletion utils/xml-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"author": "Cameron Woodmansee",
"license": "CC-BY-NC-ND-4.0",
"dependencies": {
"xmlbuilder2": "^3.1.1"
"xmlbuilder2": "2.1.7"
},
"devDependencies": {
"rollup": "^4.12.0"
Expand Down

0 comments on commit 11f6d5d

Please sign in to comment.