@antora/playbook-builder
Advanced tools
Comparing version 2.3.4 to 3.0.0-alpha.1
@@ -78,12 +78,2 @@ 'use strict' | ||
const data = config.getProperties() | ||
if ('git' in schemaProperties && 'ensureGitSuffix' in schemaProperties.git._cvtProperties) { | ||
const git = data.git | ||
if (git.ensureGitSuffix != null) git.ensure_git_suffix = git.ensureGitSuffix | ||
delete git.ensureGitSuffix | ||
} | ||
if ('runtime' in schemaProperties && 'pull' in schemaProperties.runtime._cvtProperties) { | ||
const runtime = data.runtime | ||
if (runtime.pull != null) runtime.fetch = runtime.pull | ||
delete runtime.pull | ||
} | ||
if ( | ||
@@ -90,0 +80,0 @@ 'site' in schemaProperties && |
@@ -43,3 +43,6 @@ 'use strict' | ||
__private__google_analytics_key: { | ||
doc: 'The Google Analytics account key.', | ||
doc: [ | ||
'The Google Analytics account key.', | ||
'(Deprecated; will be removed in Antora 4; define using --key google-analytics=<key> instead)', | ||
].join('\n'), | ||
format: String, | ||
@@ -142,9 +145,2 @@ default: undefined, | ||
}, | ||
ensureGitSuffix: { | ||
doc: | ||
'(Deprecated; to be removed in Antora 3) ' + | ||
'Instructs the git client to automatically append .git to the repository URL if absent.', | ||
format: Boolean, | ||
default: undefined, | ||
}, | ||
}, | ||
@@ -165,8 +161,2 @@ runtime: { | ||
}, | ||
pull: { | ||
doc: '(Deprecated; to be removed in Antora 3) Download updates from remote resources. Use --fetch instead.', | ||
format: Boolean, | ||
default: undefined, | ||
arg: 'pull', | ||
}, | ||
quiet: { | ||
@@ -192,2 +182,17 @@ doc: 'Do not write any messages to stdout.', | ||
}, | ||
latest_version_segment_strategy: { | ||
doc: 'The strategy to use for cloaking the latest version or prerelease version segment in the URL.', | ||
format: ['replace', 'redirect:to', 'redirect:from'], | ||
default: undefined, | ||
}, | ||
latest_prerelease_version_segment: { | ||
doc: 'The value to use instead of the latest prerelease version segment in the URL.', | ||
format: String, | ||
default: undefined, | ||
}, | ||
latest_version_segment: { | ||
doc: 'The value to use instead of the latest version segment in the URL.', | ||
format: String, | ||
default: undefined, | ||
}, | ||
redirect_facility: { | ||
@@ -194,0 +199,0 @@ doc: 'The facility for handling page alias and start page redirections.', |
@@ -7,3 +7,2 @@ 'use strict' | ||
const yaml = require('js-yaml') | ||
const { URL } = require('url') | ||
@@ -80,3 +79,3 @@ const ARGS_SCANNER_RX = /(?:([^=,]+)|(?==))(?:,|$|=(|("|').*?\3|[^,]+)(?:,|$))/g | ||
parsed = yaml.safeLoad(v) | ||
if (parsed && !~PRIMITIVE_TYPES.indexOf(parsed.constructor)) parsed = v | ||
if (parsed && PRIMITIVE_TYPES.indexOf(parsed.constructor) < 0) parsed = v | ||
} else { | ||
@@ -117,3 +116,3 @@ parsed = v || '' | ||
;({ protocol, pathname } = new URL(val)) | ||
} catch (e) { | ||
} catch { | ||
throw new Error('must be an absolute URL or a pathname (i.e., root-relative path)') | ||
@@ -120,0 +119,0 @@ } |
{ | ||
"name": "@antora/playbook-builder", | ||
"version": "2.3.4", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.", | ||
@@ -26,3 +26,3 @@ "license": "MPL-2.0", | ||
"engines": { | ||
"node": ">=8.11.0" | ||
"node": ">=10.17.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "files": [ | ||
], | ||
"gitHead": "5a40191c970ece6baecbd1a3a7a599d7161351a9" | ||
"gitHead": "337ff6d2ed11e1f4d0a8ef993ddc8eaac7a73e9f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33034
436
1