Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3 #132

Draft
wants to merge 46 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
bde97c1
feat(#106): removes some default parsing extensions
joelgallant Apr 9, 2021
32ba646
chore: removes v1 compat tests
joelgallant Apr 9, 2021
83eca7b
ci: publish as "next"
joelgallant Apr 9, 2021
4425a4f
chore: release v3.0.0-alpha.1
joelgallant Apr 9, 2021
fdf04de
Merge branch 'master' into v3
joelgallant Apr 9, 2021
44085dc
fix: tag
joelgallant Apr 9, 2021
26fb69f
fix: versions of examples
joelgallant Apr 9, 2021
6c9acbd
chore: removes `$` prefixed options in $substitute
joelgallant Apr 9, 2021
cafaa98
chore: removes some exports from @app-config/main
joelgallant Apr 9, 2021
6304de1
refactor(#129): changes parsing extensions to pass through some hiera…
joelgallant Apr 9, 2021
1e7836c
feat: reads env from parsing context
joelgallant Apr 9, 2021
6285b3d
refactor:environment via parsing extension context
joelgallant Apr 10, 2021
7caed5c
feat(#131): starts test for $extends with env
joelgallant Apr 10, 2021
f46c990
chore: 3.0.0-alpha.2
joelgallant Apr 10, 2021
2a5c956
feat: upgrade to ajv v8
joelgallant Apr 10, 2021
ed5df0e
chore: dependencies
joelgallant Apr 10, 2021
b4e9463
fix: error message from ajv
joelgallant Apr 10, 2021
25b3633
fix: more ajv error messages
joelgallant Apr 10, 2021
9155ebb
chore: v3.0.0-alpha.3
joelgallant Apr 10, 2021
c0995d8
Merge branch 'master' into v3
joelgallant Apr 10, 2021
365a59a
Merge branch 'master' into v3
joelgallant May 6, 2021
0ba4bcf
cleanup: removes deprecation warnings
joelgallant May 6, 2021
ffe46a4
cleanup: removes deprecation options on envVar and substitute
joelgallant May 6, 2021
1819e05
cleanup: removes deprecated FlexibleFileSource constructor
joelgallant May 6, 2021
e790ac6
cleanup: removes deprecated use of currentEnvironment
joelgallant May 6, 2021
8a0d3a8
fix: lints
joelgallant May 6, 2021
cadfbc7
fix: old parentkeys
joelgallant May 6, 2021
1d70bb6
cleanup: old tests
joelgallant May 6, 2021
72132d7
fix: random-package
joelgallant May 6, 2021
de636dd
fix: eval-package
joelgallant May 6, 2021
7d5af9a
cleanup: default-extensions type
joelgallant May 6, 2021
769328e
Merge branch 'master' into v3
joelgallant May 6, 2021
7de7bf5
feat: removes default-extensions
joelgallant May 6, 2021
41ed7c0
chore: release v3.0.0-alpha.4
joelgallant May 6, 2021
852c35d
fix: examples versions
joelgallant May 6, 2021
3a07ce3
Merge branch 'master' into v3
joelgallant Jun 30, 2021
11943d1
chore: removes @lcdev packages
joelgallant Jun 30, 2021
d887cc4
fix: types
joelgallant Jun 30, 2021
d819852
Merge branch 'master' into v3
joelgallant Sep 26, 2021
50a7808
Merge remote-tracking branch 'origin/master' into v3
joelgallant Sep 26, 2021
1a82484
chore: release v3.0.0-alpha.5
joelgallant Sep 26, 2021
b9f68af
fix: test snapshots
joelgallant Sep 26, 2021
272996c
fix: remove default-extensions entirely
joelgallant Sep 26, 2021
467c1e1
chore: lockfile bumps
joelgallant Sep 27, 2021
62e5ba4
chore: release v3.0.0-alpha.6
joelgallant Sep 27, 2021
a3a4e96
chore: examples & test project deps
joelgallant Sep 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,150 +22,175 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-config/package.json
tag: next
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove before merging

- name: app-config-core
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-core/package.json
tag: next
- name: app-config-cypress
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-cypress/package.json
tag: next
- name: app-config-default-extensions
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-default-extensions/package.json
tag: next
- name: app-config-encryption
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-encryption/package.json
tag: next
- name: app-config-exec
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-exec/package.json
tag: next
- name: app-config-extension-utils
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-extension-utils/package.json
tag: next
- name: app-config-extensions
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-extensions/package.json
tag: next
- name: app-config-generate
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-generate/package.json
tag: next
- name: app-config-git
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-git/package.json
tag: next
- name: app-config-inject
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-inject/package.json
tag: next
- name: app-config-js
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-js/package.json
tag: next
- name: app-config-logging
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-logging/package.json
tag: next
- name: app-config-meta
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-meta/package.json
tag: next
- name: app-config-node
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-node/package.json
tag: next
- name: app-config-react-native
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-react-native/package.json
tag: next
- name: app-config-schema
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-schema/package.json
tag: next
- name: app-config-settings
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-settings/package.json
tag: next
- name: app-config-utils
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-utils/package.json
tag: next
- name: app-config-v1-compat
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-v1-compat/package.json
tag: next
- name: app-config-vault
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-vault/package.json
tag: next
- name: app-config-webpack
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-webpack/package.json
tag: next
- name: lcdev-app-config-inject
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./lcdev-app-config-inject/package.json
tag: next
- name: lcdev-app-config-webpack-plugin
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./lcdev-app-config-webpack-plugin/package.json
tag: next
- name: lcdev-react-native-app-config-transformer
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./lcdev-react-native-app-config-transformer/package.json
tag: next

# Do these last, since they're most commonly used by consumers
- name: app-config-cli
Expand All @@ -174,15 +199,18 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-cli/package.json
tag: next
- name: app-config-main
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./app-config-main/package.json
tag: next
- name: lcdev-app-config
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./lcdev-app-config/package.json
tag: next
20 changes: 10 additions & 10 deletions app-config-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@app-config/cli",
"description": "CLI for @app-config",
"version": "2.4.5",
"version": "3.0.0-alpha.3",
"license": "MPL-2.0",
"author": {
"name": "Launchcode",
Expand Down Expand Up @@ -35,15 +35,15 @@
"prepublishOnly": "yarn clean && yarn build && yarn build:es"
},
"dependencies": {
"@app-config/config": "^2.4.5",
"@app-config/core": "^2.4.5",
"@app-config/encryption": "^2.4.5",
"@app-config/generate": "^2.4.5",
"@app-config/logging": "^2.4.5",
"@app-config/node": "^2.4.5",
"@app-config/schema": "^2.4.5",
"@app-config/utils": "^2.4.5",
"ajv": "7",
"@app-config/config": "^3.0.0-alpha.3",
"@app-config/core": "^3.0.0-alpha.3",
"@app-config/encryption": "^3.0.0-alpha.3",
"@app-config/generate": "^3.0.0-alpha.3",
"@app-config/logging": "^3.0.0-alpha.3",
"@app-config/node": "^3.0.0-alpha.3",
"@app-config/schema": "^3.0.0-alpha.3",
"@app-config/utils": "^3.0.0-alpha.3",
"ajv": "8",
"clipboardy": "2",
"common-tags": "1",
"execa": "5",
Expand Down
2 changes: 1 addition & 1 deletion app-config-cli/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function validateAllConfigVariants({

await Promise.all(
appConfigFiles.map(async (filename) => {
const parsed = await new FileSource(filename).read();
const parsed = await new FileSource(filename).read(undefined, { environmentAliases });

parsed.visitAll((value) => {
const obj = value.asObject();
Expand Down
20 changes: 10 additions & 10 deletions app-config-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@app-config/config",
"description": "The config in @app-config",
"version": "2.4.5",
"version": "3.0.0-alpha.3",
"license": "MPL-2.0",
"author": {
"name": "Launchcode",
Expand Down Expand Up @@ -30,17 +30,17 @@
"prepublishOnly": "yarn clean && yarn build && yarn build:es"
},
"dependencies": {
"@app-config/core": "^2.4.5",
"@app-config/default-extensions": "^2.4.5",
"@app-config/extensions": "^2.4.5",
"@app-config/logging": "^2.4.5",
"@app-config/meta": "^2.4.5",
"@app-config/node": "^2.4.5",
"@app-config/schema": "^2.4.5",
"@app-config/utils": "^2.4.5"
"@app-config/core": "^3.0.0-alpha.3",
"@app-config/default-extensions": "^3.0.0-alpha.3",
"@app-config/extensions": "^3.0.0-alpha.3",
"@app-config/logging": "^3.0.0-alpha.3",
"@app-config/meta": "^3.0.0-alpha.3",
"@app-config/node": "^3.0.0-alpha.3",
"@app-config/schema": "^3.0.0-alpha.3",
"@app-config/utils": "^3.0.0-alpha.3"
},
"devDependencies": {
"@app-config/test-utils": "^2.4.5"
"@app-config/test-utils": "^3.0.0-alpha.3"
},
"prettier": "@lcdev/prettier",
"jest": {
Expand Down
Loading