projen 0.71.51 → 0.71.53
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/.jsii +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/@oozcitak/dom/LICENSE +21 -21
- package/node_modules/@oozcitak/dom/README.md +32 -32
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +12 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +23 -3
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -1
- package/node_modules/@oozcitak/dom/package.json +72 -72
- package/node_modules/xmlbuilder2/CHANGELOG.md +95 -1
- package/node_modules/xmlbuilder2/README.md +5 -4
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +3 -1
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +44 -53
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/constants.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/constants.js +4 -0
- package/node_modules/xmlbuilder2/lib/constants.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.d.ts +20 -8
- package/node_modules/xmlbuilder2/lib/interfaces.js +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +14 -1
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +30 -1
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +12 -5
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +11 -5
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +1 -1
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +58 -92
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +1 -3
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +0 -2
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +1 -2
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +1 -2
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +1 -3
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -1
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +2 -2
- package/node_modules/xmlbuilder2/node_modules/js-yaml/CHANGELOG.md +6 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js +2 -2
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/loader.js +1 -1
- package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +1 -1
- package/node_modules/xmlbuilder2/package.json +7 -7
- package/package.json +2 -2
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl2.d.ts +0 -2
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl2.js +0 -962
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl2.js.map +0 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +0 -16
- package/node_modules/xmlbuilder2/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/node_modules/xmlbuilder2/node_modules/@types/node/assert.d.ts +0 -957
- package/node_modules/xmlbuilder2/node_modules/@types/node/async_hooks.d.ts +0 -538
- package/node_modules/xmlbuilder2/node_modules/@types/node/buffer.d.ts +0 -2348
- package/node_modules/xmlbuilder2/node_modules/@types/node/child_process.d.ts +0 -1368
- package/node_modules/xmlbuilder2/node_modules/@types/node/cluster.d.ts +0 -410
- package/node_modules/xmlbuilder2/node_modules/@types/node/console.d.ts +0 -412
- package/node_modules/xmlbuilder2/node_modules/@types/node/constants.d.ts +0 -18
- package/node_modules/xmlbuilder2/node_modules/@types/node/crypto.d.ts +0 -3962
- package/node_modules/xmlbuilder2/node_modules/@types/node/dgram.d.ts +0 -545
- package/node_modules/xmlbuilder2/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
- package/node_modules/xmlbuilder2/node_modules/@types/node/dns/promises.d.ts +0 -370
- package/node_modules/xmlbuilder2/node_modules/@types/node/dns.d.ts +0 -667
- package/node_modules/xmlbuilder2/node_modules/@types/node/dom-events.d.ts +0 -126
- package/node_modules/xmlbuilder2/node_modules/@types/node/domain.d.ts +0 -170
- package/node_modules/xmlbuilder2/node_modules/@types/node/events.d.ts +0 -682
- package/node_modules/xmlbuilder2/node_modules/@types/node/fs/promises.d.ts +0 -1189
- package/node_modules/xmlbuilder2/node_modules/@types/node/fs.d.ts +0 -4011
- package/node_modules/xmlbuilder2/node_modules/@types/node/globals.d.ts +0 -302
- package/node_modules/xmlbuilder2/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/http.d.ts +0 -1724
- package/node_modules/xmlbuilder2/node_modules/@types/node/http2.d.ts +0 -2129
- package/node_modules/xmlbuilder2/node_modules/@types/node/https.d.ts +0 -441
- package/node_modules/xmlbuilder2/node_modules/@types/node/index.d.ts +0 -134
- package/node_modules/xmlbuilder2/node_modules/@types/node/inspector.d.ts +0 -2748
- package/node_modules/xmlbuilder2/node_modules/@types/node/module.d.ts +0 -116
- package/node_modules/xmlbuilder2/node_modules/@types/node/net.d.ts +0 -886
- package/node_modules/xmlbuilder2/node_modules/@types/node/os.d.ts +0 -477
- package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +0 -237
- package/node_modules/xmlbuilder2/node_modules/@types/node/path.d.ts +0 -191
- package/node_modules/xmlbuilder2/node_modules/@types/node/perf_hooks.d.ts +0 -638
- package/node_modules/xmlbuilder2/node_modules/@types/node/process.d.ts +0 -1485
- package/node_modules/xmlbuilder2/node_modules/@types/node/punycode.d.ts +0 -117
- package/node_modules/xmlbuilder2/node_modules/@types/node/querystring.d.ts +0 -131
- package/node_modules/xmlbuilder2/node_modules/@types/node/readline/promises.d.ts +0 -145
- package/node_modules/xmlbuilder2/node_modules/@types/node/readline.d.ts +0 -653
- package/node_modules/xmlbuilder2/node_modules/@types/node/repl.d.ts +0 -424
- package/node_modules/xmlbuilder2/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/node_modules/xmlbuilder2/node_modules/@types/node/stream/promises.d.ts +0 -42
- package/node_modules/xmlbuilder2/node_modules/@types/node/stream/web.d.ts +0 -330
- package/node_modules/xmlbuilder2/node_modules/@types/node/stream.d.ts +0 -1392
- package/node_modules/xmlbuilder2/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/node_modules/xmlbuilder2/node_modules/@types/node/test.d.ts +0 -997
- package/node_modules/xmlbuilder2/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/xmlbuilder2/node_modules/@types/node/timers.d.ts +0 -101
- package/node_modules/xmlbuilder2/node_modules/@types/node/tls.d.ts +0 -1119
- package/node_modules/xmlbuilder2/node_modules/@types/node/trace_events.d.ts +0 -182
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/assert.d.ts +0 -957
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -538
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2348
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1368
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/console.d.ts +0 -412
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3961
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/dns.d.ts +0 -667
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/events.d.ts +0 -682
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1189
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/fs.d.ts +0 -4011
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/http.d.ts +0 -1723
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/http2.d.ts +0 -2129
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/https.d.ts +0 -441
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2748
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/module.d.ts +0 -116
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/net.d.ts +0 -886
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/os.d.ts +0 -477
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -638
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/process.d.ts +0 -1485
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -145
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/stream.d.ts +0 -1392
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/test.d.ts +0 -997
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/timers.d.ts +0 -101
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/tls.d.ts +0 -1119
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/tty.d.ts +0 -205
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/url.d.ts +0 -892
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/util.d.ts +0 -2044
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/vm.d.ts +0 -894
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/wasi.d.ts +0 -152
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -693
- package/node_modules/xmlbuilder2/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/xmlbuilder2/node_modules/@types/node/tty.d.ts +0 -205
- package/node_modules/xmlbuilder2/node_modules/@types/node/url.d.ts +0 -892
- package/node_modules/xmlbuilder2/node_modules/@types/node/util.d.ts +0 -2052
- package/node_modules/xmlbuilder2/node_modules/@types/node/v8.d.ts +0 -635
- package/node_modules/xmlbuilder2/node_modules/@types/node/vm.d.ts +0 -894
- package/node_modules/xmlbuilder2/node_modules/@types/node/wasi.d.ts +0 -152
- package/node_modules/xmlbuilder2/node_modules/@types/node/worker_threads.d.ts +0 -693
- package/node_modules/xmlbuilder2/node_modules/@types/node/zlib.d.ts +0 -517
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/CHANGELOG.md +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/LICENSE +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/README.md +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/index.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/append/constant.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/append.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/count.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/help.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/store/constant.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/store/false.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/store/true.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/store.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/subparsers.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action/version.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/action_container.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/argparse.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/argument/error.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/argument/exclusive.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/argument/group.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/argument_parser.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/const.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/help/added_formatters.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/help/formatter.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/namespace.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/lib/utils.js +0 -0
- /package/node_modules/{argparse → xmlbuilder2/node_modules/argparse}/package.json +0 -0
|
@@ -101,7 +101,7 @@ var XMLParserImpl = /** @class */ (function () {
|
|
|
101
101
|
if (!algorithm_1.xml_isLegalChar(text.data)) {
|
|
102
102
|
throw new Error("Text data contains invalid characters.");
|
|
103
103
|
}
|
|
104
|
-
context.appendChild(doc.createTextNode(text.data));
|
|
104
|
+
context.appendChild(doc.createTextNode(this._decodeText(text.data)));
|
|
105
105
|
break;
|
|
106
106
|
case interfaces_1.TokenType.Element:
|
|
107
107
|
var element = token;
|
|
@@ -183,9 +183,9 @@ var XMLParserImpl = /** @class */ (function () {
|
|
|
183
183
|
throw new Error("Empty XML namespace is not allowed.");
|
|
184
184
|
}
|
|
185
185
|
if (attNamespace !== null)
|
|
186
|
-
elementNode.setAttributeNS(attNamespace, attName, attValue);
|
|
186
|
+
elementNode.setAttributeNS(attNamespace, attName, this._decodeAttributeValue(attValue));
|
|
187
187
|
else
|
|
188
|
-
elementNode.setAttribute(attName, attValue);
|
|
188
|
+
elementNode.setAttribute(attName, this._decodeAttributeValue(attValue));
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -214,6 +214,26 @@ var XMLParserImpl = /** @class */ (function () {
|
|
|
214
214
|
}
|
|
215
215
|
return doc;
|
|
216
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* Decodes serialized text.
|
|
219
|
+
*
|
|
220
|
+
* @param text - text value to serialize
|
|
221
|
+
*/
|
|
222
|
+
XMLParserImpl.prototype._decodeText = function (text) {
|
|
223
|
+
return text == null ? text : text.replace(/</g, '<')
|
|
224
|
+
.replace(/>/g, '>')
|
|
225
|
+
.replace(/&/g, '&');
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Decodes serialized attribute value.
|
|
229
|
+
*
|
|
230
|
+
* @param text - attribute value to serialize
|
|
231
|
+
*/
|
|
232
|
+
XMLParserImpl.prototype._decodeAttributeValue = function (text) {
|
|
233
|
+
return text == null ? text : text.replace(/</g, '<')
|
|
234
|
+
.replace(/>/g, '>')
|
|
235
|
+
.replace(/&/g, '&');
|
|
236
|
+
};
|
|
217
237
|
return XMLParserImpl;
|
|
218
238
|
}());
|
|
219
239
|
exports.XMLParserImpl = XMLParserImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XMLParserImpl.js","sourceRoot":"","sources":["../../src/parser/XMLParserImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAiD;AACjD,2CAA0D;AAM1D,yCAA6D;AAC7D,0CAGqB;AACrB,2DAAyD;AAEzD;;;;GAIG;AACH;IAAA;
|
|
1
|
+
{"version":3,"file":"XMLParserImpl.js","sourceRoot":"","sources":["../../src/parser/XMLParserImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAiD;AACjD,2CAA0D;AAM1D,yCAA6D;AAC7D,0CAGqB;AACrB,2DAAyD;AAEzD;;;;GAIG;AACH;IAAA;IA4LA,CAAC;IA1LC;;;;OAIG;IACH,6BAAK,GAAL,UAAM,MAAc;;QAClB,IAAM,KAAK,GAAG,I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qBACrE;oBACD,0BAA0B;oBAC1B,IAAI,OAAO,CAAC,OAAO,EAAE;wBACnB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;qBAC1B;oBACD,MAAK;aACR;YAED,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;SAC1B;QACD,OAAO,GAAG,CAAA;IACZ,CAAC;IAED;;;;OAIG;IACK,mCAAW,GAAnB,UAAoB,IAAY;QAC9B,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;aACpD,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;aACrB,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;IAC3B,CAAC;IAED;;;;OAIG;IACK,6CAAqB,GAA7B,UAA8B,IAAY;QACxC,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;aACpD,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;aACrB,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;IAC3B,CAAC;IACH,oBAAC;AAAD,CAAC,AA5LD,IA4LC;AA5LY,sCAAa"}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@oozcitak/dom",
|
|
3
|
-
"version": "1.15.
|
|
4
|
-
"keywords": [
|
|
5
|
-
"dom",
|
|
6
|
-
"whatwg"
|
|
7
|
-
],
|
|
8
|
-
"homepage": "http://github.com/oozcitak/dom",
|
|
9
|
-
"description": "A modern DOM implementation",
|
|
10
|
-
"author": "Ozgur Ozcitak <oozcitak@gmail.com>",
|
|
11
|
-
"contributors": [],
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git://github.com/oozcitak/dom.git"
|
|
16
|
-
},
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "http://github.com/oozcitak/dom/issues"
|
|
19
|
-
},
|
|
20
|
-
"main": "./lib/index",
|
|
21
|
-
"engines": {
|
|
22
|
-
"node": ">=8.0"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"lib/**/*"
|
|
26
|
-
],
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@oozcitak/infra": "1.0.8",
|
|
29
|
-
"@oozcitak/url": "1.0.4",
|
|
30
|
-
"@oozcitak/util": "8.3.8"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@types/benchmark": "*",
|
|
34
|
-
"@types/dedent": "*",
|
|
35
|
-
"@types/jest": "*",
|
|
36
|
-
"@types/jsdom": "*",
|
|
37
|
-
"@types/node": "*",
|
|
38
|
-
"@types/semver": "*",
|
|
39
|
-
"@types/xmldom": "*",
|
|
40
|
-
"benchmark": "*",
|
|
41
|
-
"chalk": "*",
|
|
42
|
-
"dedent": "*",
|
|
43
|
-
"fast-xml-parser": "*",
|
|
44
|
-
"glob": "*",
|
|
45
|
-
"jest": "*",
|
|
46
|
-
"jsdom": "*",
|
|
47
|
-
"semver": "*",
|
|
48
|
-
"ts-jest": "
|
|
49
|
-
"ts-node": "*",
|
|
50
|
-
"typescript": "*",
|
|
51
|
-
"xmldom": "*"
|
|
52
|
-
},
|
|
53
|
-
"jest": {
|
|
54
|
-
"transform": {
|
|
55
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
56
|
-
},
|
|
57
|
-
"testRegex": "/test/.*\\.test\\.tsx?$",
|
|
58
|
-
"testEnvironment": "node",
|
|
59
|
-
"collectCoverageFrom": [
|
|
60
|
-
"src/**/*.{ts,tsx}"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"scripts": {
|
|
64
|
-
"compile": "rm -rf lib && tsc --version && tsc",
|
|
65
|
-
"test": "npm run compile && jest --coverage",
|
|
66
|
-
"perf": "npm run compile && ts-node ./perf/perf.ts",
|
|
67
|
-
"prof-create": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-create.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-create.log && rm isolate-v8.log",
|
|
68
|
-
"prof-parse": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-parse.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-parse.log && rm isolate-v8.log",
|
|
69
|
-
"prof-serialize": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-serialize.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-serialize.log && rm isolate-v8.log",
|
|
70
|
-
"publish-public": "npm run test && npm publish --access public"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@oozcitak/dom",
|
|
3
|
+
"version": "1.15.10",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"dom",
|
|
6
|
+
"whatwg"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "http://github.com/oozcitak/dom",
|
|
9
|
+
"description": "A modern DOM implementation",
|
|
10
|
+
"author": "Ozgur Ozcitak <oozcitak@gmail.com>",
|
|
11
|
+
"contributors": [],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git://github.com/oozcitak/dom.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "http://github.com/oozcitak/dom/issues"
|
|
19
|
+
},
|
|
20
|
+
"main": "./lib/index",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=8.0"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"lib/**/*"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@oozcitak/infra": "1.0.8",
|
|
29
|
+
"@oozcitak/url": "1.0.4",
|
|
30
|
+
"@oozcitak/util": "8.3.8"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/benchmark": "*",
|
|
34
|
+
"@types/dedent": "*",
|
|
35
|
+
"@types/jest": "*",
|
|
36
|
+
"@types/jsdom": "*",
|
|
37
|
+
"@types/node": "*",
|
|
38
|
+
"@types/semver": "*",
|
|
39
|
+
"@types/xmldom": "*",
|
|
40
|
+
"benchmark": "*",
|
|
41
|
+
"chalk": "*",
|
|
42
|
+
"dedent": "*",
|
|
43
|
+
"fast-xml-parser": "*",
|
|
44
|
+
"glob": "*",
|
|
45
|
+
"jest": "*",
|
|
46
|
+
"jsdom": "*",
|
|
47
|
+
"semver": "*",
|
|
48
|
+
"ts-jest": "^26.3.0",
|
|
49
|
+
"ts-node": "*",
|
|
50
|
+
"typescript": "*",
|
|
51
|
+
"xmldom": "*"
|
|
52
|
+
},
|
|
53
|
+
"jest": {
|
|
54
|
+
"transform": {
|
|
55
|
+
"^.+\\.tsx?$": "ts-jest"
|
|
56
|
+
},
|
|
57
|
+
"testRegex": "/test/.*\\.test\\.tsx?$",
|
|
58
|
+
"testEnvironment": "node",
|
|
59
|
+
"collectCoverageFrom": [
|
|
60
|
+
"src/**/*.{ts,tsx}"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"compile": "rm -rf lib && tsc --version && tsc",
|
|
65
|
+
"test": "npm run compile && jest --coverage",
|
|
66
|
+
"perf": "npm run compile && ts-node ./perf/perf.ts",
|
|
67
|
+
"prof-create": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-create.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-create.log && rm isolate-v8.log",
|
|
68
|
+
"prof-parse": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-parse.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-parse.log && rm isolate-v8.log",
|
|
69
|
+
"prof-serialize": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-serialize.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-serialize.log && rm isolate-v8.log",
|
|
70
|
+
"publish-public": "npm run test && npm publish --access public"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -2,31 +2,82 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/#semantic-versioning-200).
|
|
4
4
|
|
|
5
|
+
## [3.1.1] - 2023-05-08
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Moved `@types/node` to a dev dependency (see [#165](https://github.com/oozcitak/xmlbuilder2/issues/165)).
|
|
10
|
+
- Bumped `js-yaml` up from a version with a known vulnerability (see [#141](https://github.com/oozcitak/xmlbuilder2/pull/141) and [#167](https://github.com/oozcitak/xmlbuilder2/pull/167)).
|
|
11
|
+
|
|
12
|
+
## [3.1.0] - 2023-04-24
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- Allowed preserving blankspace text nodes when parsing an XML string (see [#101](https://github.com/oozcitak/xmlbuilder2/pull/101)).
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- Fixed various ampersand encoding issues (see [#105](https://github.com/oozcitak/xmlbuilder2/issues/105), [#109](https://github.com/oozcitak/xmlbuilder2/issues/109), [#110](https://github.com/oozcitak/xmlbuilder2/issues/110))
|
|
21
|
+
|
|
22
|
+
## [3.0.2] - 2021-08-10
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- Fixed a bug where some predefined entities where not being decoded when parsed (see [#99](https://github.com/oozcitak/xmlbuilder2/issues/99)).
|
|
27
|
+
|
|
28
|
+
## [3.0.1] - 2021-07-29
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
- Fixed a bug which prevented web workers from consuming the webpack bundle (see [#77](https://github.com/oozcitak/xmlbuilder2/issues/77)).
|
|
33
|
+
|
|
34
|
+
## [3.0.0] - 2021-07-29
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
- Fixed a bug where parsers did not decode predefined entities (see [#82](https://github.com/oozcitak/xmlbuilder2/issues/82), [#88](https://github.com/oozcitak/xmlbuilder2/issues/88) and [#98](https://github.com/oozcitak/xmlbuilder2/issues/98)).
|
|
39
|
+
- Fixed a bug where XML parser would not always return the last top level element node created (see [#81](https://github.com/oozcitak/xmlbuilder2/issues/81)).
|
|
40
|
+
- Fixed a bug where JS object parser would fail to parse mixed content (see [#90](https://github.com/oozcitak/xmlbuilder2/issues/90)).
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
- Added the `import` function to callback API (see [#2](https://github.com/oozcitak/xmlbuilder2/issues/2)).
|
|
45
|
+
|
|
46
|
+
### BREAKING CHANGES
|
|
47
|
+
|
|
48
|
+
- Removed support for node.js 10.
|
|
49
|
+
- Removed the `noDoubleEncoding` flag from serializers. Parsers now decode predefined entities (see [#82](https://github.com/oozcitak/xmlbuilder2/issues/82), [#88](https://github.com/oozcitak/xmlbuilder2/issues/88) and [#98](https://github.com/oozcitak/xmlbuilder2/issues/98)).
|
|
50
|
+
|
|
5
51
|
## [2.4.1] - 2021-04-08
|
|
6
52
|
|
|
7
53
|
### Bug Fixes
|
|
54
|
+
|
|
8
55
|
- Fixed node type dependency to `*` (see [#69](https://github.com/oozcitak/xmlbuilder2/issues/69) and [#84](https://github.com/oozcitak/xmlbuilder2/issues/84)).
|
|
9
56
|
- Added documentation link to `next` function (see [#61](https://github.com/oozcitak/xmlbuilder2/issues/61)).
|
|
10
57
|
- Applied `keepNullNodes` option to all types of text nodes (see [#56](https://github.com/oozcitak/xmlbuilder2/issues/56)).
|
|
11
58
|
- Fixed a typo in `CHANGELOG` (see [#54](https://github.com/oozcitak/xmlbuilder2/issues/54)).
|
|
12
59
|
|
|
13
60
|
### Features
|
|
61
|
+
|
|
14
62
|
- Added `sanitize` function to parsers (see [#65](https://github.com/oozcitak/xmlbuilder2/issues/65)).
|
|
15
63
|
|
|
16
64
|
## [2.4.0] - 2020-09-14
|
|
17
65
|
|
|
18
66
|
### Bug Fixes
|
|
67
|
+
|
|
19
68
|
- Fixed a bug where the input of custom parsers were not sanitized.
|
|
20
69
|
- Fixed a bug where attributes would not lookup their namespaces from their parent elements (see [#51](https://github.com/oozcitak/xmlbuilder2/issues/51) and [#53](https://github.com/oozcitak/xmlbuilder2/issues/53)).
|
|
21
70
|
- Fixed a bug where typings were not included in the package (see [#52](https://github.com/oozcitak/xmlbuilder2/issues/52)).
|
|
22
71
|
|
|
23
72
|
### Features
|
|
73
|
+
|
|
24
74
|
- Added `declaration` function to serializers.
|
|
25
|
-
- Add YAML parser to callback builder
|
|
75
|
+
- Add YAML parser to callback builder.
|
|
26
76
|
|
|
27
77
|
## [2.3.1] - 2020-08-05
|
|
28
78
|
|
|
29
79
|
### Bug Fixes
|
|
80
|
+
|
|
30
81
|
- Fixed a bug where YAML serializer would not escape special characters.
|
|
31
82
|
- Fixed a bug where the `element` function of a custom parser would throw an error if it changed the node name (see [#46](https://github.com/oozcitak/xmlbuilder2/issues/46)).
|
|
32
83
|
- Fixed a bug where XML parser would ignore `encoding` and `standalone` in XML declaration.
|
|
@@ -35,149 +86,187 @@ All notable changes to this project are documented in this file. This project ad
|
|
|
35
86
|
## [2.3.0] - 2020-08-04
|
|
36
87
|
|
|
37
88
|
### Bug Fixes
|
|
89
|
+
|
|
38
90
|
- Fixed a bug where JSON serializer would not escape special characters (see [#44](https://github.com/oozcitak/xmlbuilder2/issues/44)).
|
|
91
|
+
|
|
39
92
|
### Features
|
|
93
|
+
|
|
40
94
|
- Added custom parsers (see [#25](https://github.com/oozcitak/xmlbuilder2/issues/25)).
|
|
41
95
|
- Added YAML parser and serializer.
|
|
42
96
|
|
|
43
97
|
## [2.2.0] - 2020-07-14
|
|
44
98
|
|
|
45
99
|
### Bug Fixes
|
|
100
|
+
|
|
46
101
|
- Fixed a bug where `each` would stop traversing the document tree if the current node was removed inside the callback.
|
|
102
|
+
|
|
47
103
|
### Features
|
|
104
|
+
|
|
48
105
|
- Added the `verbose` option to object serializer to create consistent yet verbose output (see [#30](https://github.com/oozcitak/xmlbuilder2/issues/30)).
|
|
49
106
|
|
|
50
107
|
## [2.1.7] - 2020-07-09
|
|
51
108
|
|
|
52
109
|
### Bug Fixes
|
|
110
|
+
|
|
53
111
|
- Prevented object converter from grouping attributes into element content (see [#29](https://github.com/oozcitak/xmlbuilder2/issues/29)).
|
|
54
112
|
|
|
55
113
|
## [2.1.6] - 2020-07-02
|
|
56
114
|
|
|
57
115
|
### Bug Fixes
|
|
116
|
+
|
|
58
117
|
- Added minified browser bundle from transpiled ES5 code so that the library can be used on old browsers (see [#28](https://github.com/oozcitak/xmlbuilder2/issues/28)). Note that `Proxy` and `Reflect` polyfills are required to use the library on IE 11.
|
|
59
118
|
|
|
60
119
|
## [2.1.5] - 2020-06-18
|
|
61
120
|
|
|
62
121
|
### Bug Fixes
|
|
122
|
+
|
|
63
123
|
- Fixed a bug where carriage return characters (`'\r'`) were escaped in text and attribute contents (see [#24](https://github.com/oozcitak/xmlbuilder2/issues/24)).
|
|
64
124
|
|
|
65
125
|
## [2.1.4] - 2020-06-16
|
|
66
126
|
|
|
67
127
|
### Bug Fixes
|
|
128
|
+
|
|
68
129
|
- Fixed a bug where mixin classes overwrote DOM class constructors (see [#23](https://github.com/oozcitak/xmlbuilder2/issues/23)).
|
|
69
130
|
|
|
70
131
|
## [2.1.3] - 2020-06-11
|
|
71
132
|
|
|
72
133
|
### Bug Fixes
|
|
134
|
+
|
|
73
135
|
- Fixed a bug where child nodes did not inherit the parent namespace (see [#18](https://github.com/oozcitak/xmlbuilder2/issues/18)).
|
|
74
136
|
- Fixed a bug where falsy values passed as node contents caused missing nodes (see [#21](https://github.com/oozcitak/xmlbuilder2/issues/21)).
|
|
75
137
|
|
|
76
138
|
## [2.1.2] - 2020-04-09
|
|
77
139
|
|
|
78
140
|
### Bug Fixes
|
|
141
|
+
|
|
79
142
|
- Fixed a bug where the `noDoubleEncoding` flag kept named entities other than [those specified in the spec](https://www.w3.org/TR/xml/#sec-predefined-ent) (see [#16](https://github.com/oozcitak/xmlbuilder2/issues/16)).
|
|
80
143
|
|
|
81
144
|
## [2.1.1] - 2020-04-01
|
|
82
145
|
|
|
83
146
|
### Bug Fixes
|
|
147
|
+
|
|
84
148
|
- Fixed a bug where calling `end` on a document fragment node would serialize the fragment's owner document not the fragment itself.
|
|
85
149
|
|
|
86
150
|
## [2.1.0] - 2020-03-31
|
|
87
151
|
|
|
88
152
|
### Features
|
|
153
|
+
|
|
89
154
|
- Added the `noDoubleEncoding` option to prevent html entities from being re-encoded when serialized (see [#15](https://github.com/oozcitak/xmlbuilder2/issues/15)).
|
|
90
155
|
|
|
91
156
|
## [2.0.0] - 2020-03-30
|
|
92
157
|
|
|
93
158
|
### Bug Fixes
|
|
159
|
+
|
|
94
160
|
- Fixed namespace inheritance logic, so that a preferred prefix is not retrieved from a parent element if the element has no prefix and its namespace matches the default namespace declaration (see: https://github.com/web-platform-tests/wpt/pull/16703).
|
|
95
161
|
- Namespace declaration attributes from JS objects are now applied correctly to their parent elements (see [#13](https://github.com/oozcitak/xmlbuilder2/issues/13)).
|
|
162
|
+
|
|
96
163
|
### Features
|
|
164
|
+
|
|
97
165
|
- Narrowed return value types of functions for better intellisense support with TypeScript (see [#14](https://github.com/oozcitak/xmlbuilder2/issues/14)).
|
|
98
166
|
- Added `invalidCharReplacement` option to sanitize input strings by replacing invalid characters (see [#12](https://github.com/oozcitak/xmlbuilder2/issues/12)). The option has no defaults and must be configured by the user.
|
|
167
|
+
|
|
99
168
|
### BREAKING CHANGES
|
|
169
|
+
|
|
100
170
|
- Removed `inheritNS` options (see [#1](https://github.com/oozcitak/xmlbuilder2/issues/1), [#6](https://github.com/oozcitak/xmlbuilder2/issues/6) and [#13](https://github.com/oozcitak/xmlbuilder2/issues/13)). Element nodes now inherit namespaces from their parent element nodes by default. To reset the default namespace declaration create an `"xmlns"` attribute with an empty value (`""`) as in the DOM.
|
|
101
171
|
|
|
102
172
|
## [1.8.1] - 2020-03-27
|
|
103
173
|
|
|
104
174
|
### Bug Fixes
|
|
175
|
+
|
|
105
176
|
- Fixed where JS object, map and JSON serializers' `group` setting defaulted to `true`.
|
|
106
177
|
|
|
107
178
|
## [1.8.0] - 2020-03-25
|
|
108
179
|
|
|
109
180
|
### Features
|
|
181
|
+
|
|
110
182
|
- Added `EventEmitter` interface to callback builder object.
|
|
111
183
|
|
|
112
184
|
## [1.7.0] - 2020-03-19
|
|
113
185
|
|
|
114
186
|
### Features
|
|
187
|
+
|
|
115
188
|
- Added JSON output format to callback API.
|
|
116
189
|
|
|
117
190
|
## [1.6.0] - 2020-03-17
|
|
118
191
|
|
|
119
192
|
### Features
|
|
193
|
+
|
|
120
194
|
- Added converter options to callback API similar to regular API.
|
|
121
195
|
|
|
122
196
|
## [1.5.0] - 2020-03-17
|
|
123
197
|
|
|
124
198
|
### Bug Fixes
|
|
199
|
+
|
|
125
200
|
- Fixed collection functions to return child node indices not descendant node indices.
|
|
201
|
+
|
|
126
202
|
### Features
|
|
203
|
+
|
|
127
204
|
- Added JS object and XML string parser to callback API functions.
|
|
128
205
|
- Added tree depth to collection function callbacks.
|
|
129
206
|
|
|
130
207
|
## [1.4.3] - 2020-03-03
|
|
131
208
|
|
|
132
209
|
### Bug Fixes
|
|
210
|
+
|
|
133
211
|
- `keepNullNodes` and `keepNullAttributes` flags now properly keep `null` **and** `undefined` values (see [#5](https://github.com/oozcitak/xmlbuilder2/issues/5)). Without these flags, `null` **and** `undefined` will be silently skipped.
|
|
134
212
|
|
|
135
213
|
## [1.4.2] - 2020-03-02
|
|
136
214
|
|
|
137
215
|
### Bug Fixes
|
|
216
|
+
|
|
138
217
|
- Added `types` to `package.json` to help IDEs infer types (see [#4](https://github.com/oozcitak/xmlbuilder2/issues/4)).
|
|
139
218
|
|
|
140
219
|
## [1.4.1] - 2020-02-28
|
|
141
220
|
|
|
142
221
|
### Bug Fixes
|
|
222
|
+
|
|
143
223
|
- Renamed callback API functions.
|
|
144
224
|
|
|
145
225
|
## [1.4.0] - 2020-02-28
|
|
146
226
|
|
|
147
227
|
### Features
|
|
228
|
+
|
|
148
229
|
- Added callback API (see [#2](https://github.com/oozcitak/xmlbuilder2/issues/2)).
|
|
149
230
|
|
|
150
231
|
## [1.3.0] - 2020-02-18
|
|
151
232
|
|
|
152
233
|
### Features
|
|
234
|
+
|
|
153
235
|
- Added namespace aliases.
|
|
154
236
|
|
|
155
237
|
## [1.2.1] - 2020-02-18
|
|
156
238
|
|
|
157
239
|
### Bug Fixes
|
|
240
|
+
|
|
158
241
|
- Prevented null namespaces from being converted to the string `"null"`.
|
|
242
|
+
|
|
159
243
|
### Features
|
|
244
|
+
|
|
160
245
|
- Removed namespace aliases.
|
|
161
246
|
|
|
162
247
|
## [1.2.0] - 2020-02-17
|
|
163
248
|
|
|
164
249
|
### Features
|
|
250
|
+
|
|
165
251
|
- Added namespace aliases.
|
|
166
252
|
|
|
167
253
|
## [1.1.2] - 2020-02-17
|
|
168
254
|
|
|
169
255
|
### Bug Fixes
|
|
256
|
+
|
|
170
257
|
- Prevented child element namespaces to be inherited from their parent elements (see [#1](https://github.com/oozcitak/xmlbuilder2/issues/1)).
|
|
171
258
|
- Fixed JS object parser to allow namespaces for both element nodes and attributes with the `{ "prefix:name@ns": {} }` notation.
|
|
172
259
|
|
|
173
260
|
## [1.1.1] - 2020-02-13
|
|
174
261
|
|
|
175
262
|
### Bug Fixes
|
|
263
|
+
|
|
176
264
|
- Fixed `width` option to work in pretty-printing mode to wrap attributes.
|
|
177
265
|
|
|
178
266
|
## [1.1.0] - 2020-02-12
|
|
179
267
|
|
|
180
268
|
### Bug Fixes
|
|
269
|
+
|
|
181
270
|
- A CDATA node will not be indented in pretty-printing mode if it is the single child of its parent element.
|
|
182
271
|
|
|
183
272
|
## 1.0.0 - 2020-02-12
|
|
@@ -213,3 +302,8 @@ All notable changes to this project are documented in this file. This project ad
|
|
|
213
302
|
[2.3.1]: https://github.com/oozcitak/xmlbuilder2/compare/v2.3.0...v2.3.1
|
|
214
303
|
[2.4.0]: https://github.com/oozcitak/xmlbuilder2/compare/v2.3.1...v2.4.0
|
|
215
304
|
[2.4.1]: https://github.com/oozcitak/xmlbuilder2/compare/v2.4.0...v2.4.1
|
|
305
|
+
[3.0.0]: https://github.com/oozcitak/xmlbuilder2/compare/v2.4.1...v3.0.0
|
|
306
|
+
[3.0.1]: https://github.com/oozcitak/xmlbuilder2/compare/v3.0.0...v3.0.1
|
|
307
|
+
[3.0.2]: https://github.com/oozcitak/xmlbuilder2/compare/v3.0.1...v3.0.2
|
|
308
|
+
[3.1.0]: https://github.com/oozcitak/xmlbuilder2/compare/v3.0.2...v3.1.0
|
|
309
|
+
[3.1.1]: https://github.com/oozcitak/xmlbuilder2/compare/v3.1.0...v3.1.1
|
|
@@ -17,6 +17,11 @@ An XML builder for [node.js](https://nodejs.org/).
|
|
|
17
17
|
npm install xmlbuilder2
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
### Documentation:
|
|
21
|
+
|
|
22
|
+
See: https://oozcitak.github.io/xmlbuilder2/
|
|
23
|
+
|
|
24
|
+
|
|
20
25
|
### Usage:
|
|
21
26
|
|
|
22
27
|
`xmlbuilder2` is a wrapper around DOM nodes which adds chainable functions to make it easier to create and work with XML documents. For example the following XML document:
|
|
@@ -172,10 +177,6 @@ You can build the minified production bundle (`lib/xmlbuilder2.min.js`) after cl
|
|
|
172
177
|
<script src="https://unpkg.com/xmlbuilder2/lib/xmlbuilder2.min.js"></script>
|
|
173
178
|
```
|
|
174
179
|
|
|
175
|
-
### Documentation:
|
|
176
|
-
|
|
177
|
-
See: https://oozcitak.github.io/xmlbuilder2/
|
|
178
|
-
|
|
179
180
|
### Donations:
|
|
180
181
|
Please consider becoming a backer or sponsor to help support development.
|
|
181
182
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { XMLBuilderCB, AttributesObject, PIObject, DTDOptions, ExpandObject, XMLBuilderCBCreateOptions } from "../interfaces";
|
|
2
|
+
import { XMLBuilderCB, AttributesObject, PIObject, DTDOptions, XMLBuilder, ExpandObject, XMLBuilderCBCreateOptions } from "../interfaces";
|
|
3
3
|
import { EventEmitter } from "events";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a readable XML document stream.
|
|
@@ -51,6 +51,8 @@ export declare class XMLBuilderCBImpl extends EventEmitter implements XMLBuilder
|
|
|
51
51
|
name: string;
|
|
52
52
|
}): this;
|
|
53
53
|
/** @inheritdoc */
|
|
54
|
+
import(node: XMLBuilder): this;
|
|
55
|
+
/** @inheritdoc */
|
|
54
56
|
up(): this;
|
|
55
57
|
/** @inheritdoc */
|
|
56
58
|
end(): this;
|