@abcnews/aunty 14.0.2 → 15.0.1

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/README.md CHANGED
@@ -120,7 +120,7 @@ If you don't need to override any of the project defaults, your entire aunty con
120
120
  | `hasBundleAnalysis` | `false` | Setting this to true will spin up a second server on another port, allowing you to inspect your bundle. The address will be logged to the console when the dev server starts. |
121
121
  | `host` | `"localhost"` | The hostname of your dev server. If you're on the ABC internal network, the default will change to your machine's hostname (`ws<number>.aus.aunty.abc.net.au`). The `AUNTY_HOST` environment variable, if present, will override this setting. |
122
122
  | `hot` | `true` | Should the dev server enable hot reloading. If `NODE_ENV !== "development"`, the default will change to `false`. |
123
- | `https` | `true` | Should the dev server use SSL (with a self-signed certificate matching the `host`). You can alternatively supply your own `{cert: string, key: string}` object if you've generated your certificate some other way. |
123
+ | `https` | `true` | Should the dev server use SSL (with a self-signed certificate matching the `host`). You can alternatively supply your own `{cert: string, key: string}` object if you've generated your certificate some other way. |
124
124
  | `port` | `8000` | The port number of your dev server. If the port specified is unavailable, **aunty** will try incrementing the port number until it finds an available one. The `AUNTY_PORT` environment variable, if present, will override this setting. |
125
125
 
126
126
  #### `deploy` config properties
@@ -142,18 +142,6 @@ You _could_ also specify `type` (`"ftp"`/`"ssh"`), `host`, `port`, `username` &
142
142
 
143
143
  Aunty comes with a few basic generators. Run `aunty generate --help` for the full list, or `aunty generate <generator> --help` for further details.
144
144
 
145
- ### Async/await
146
-
147
- One way to add `async`/`await` and generators/`yield` to your project is with the [`regenerator-runtime`](https://www.npmjs.com/package/regenerator-runtime) package.
148
-
149
- `npm install regenerator-runtime` and then:
150
-
151
- ```js
152
- import 'regenerator-runtime/runtime';
153
- ```
154
-
155
- Note: You may also need a `Promise` polyfill for IE11.
156
-
157
145
  ## Authors
158
146
 
159
147
  - Colin Gourlay
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@abcnews/aunty",
3
- "version": "14.0.2",
3
+ "version": "15.0.1",
4
4
  "description": "A toolkit for working with ABC News projects",
5
5
  "repository": "abcnews/aunty",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  "Colin Gourlay <gourlay.colin@abc.net.au>",
9
- "Nathan Hoad <hoad.nathan@abc.net.au>",
10
9
  "Simon Elvery <elvery.simon@abc.net.au>",
11
- "Joshua Byrd <byrd.joshua@abc.net.au>"
10
+ "Joshua Byrd <byrd.joshua@abc.net.au>",
11
+ "Ash Kyd <kyd.ashley@abc.net.au>",
12
+ "Nathan Hoad"
12
13
  ],
13
14
  "scripts": {
14
15
  "postinstall": "node scripts/postinstall.js",
@@ -30,7 +31,7 @@
30
31
  },
31
32
  "main": "src/api",
32
33
  "engines": {
33
- "node": ">=7.6.0"
34
+ "node": ">=16"
34
35
  },
35
36
  "dependencies": {
36
37
  "@babel/core": "^7.11.4",
@@ -46,7 +47,7 @@
46
47
  "basic-ftp": "^5.0.2",
47
48
  "chalk": "^4.1.2",
48
49
  "cli-select": "^1.1.2",
49
- "copy-webpack-plugin": "^8.1.1",
50
+ "copy-webpack-plugin": "^11.0.0",
50
51
  "css-loader": "^6.7.1",
51
52
  "csv-loader": "^3.0.3",
52
53
  "deepmerge": "^4.0.0",
@@ -78,11 +79,11 @@
78
79
  "sass-loader": "^11.0.1",
79
80
  "semver": "^7.3.2",
80
81
  "style-loader": "^2.0.0",
81
- "svelte": "^3.24.1",
82
- "svelte-loader": "^3.1.1",
83
- "svelte-preprocess": "^4.1.1",
82
+ "svelte": "^4.2.8",
83
+ "svelte-loader": "^3.1.9",
84
+ "svelte-preprocess": "^5.1.1",
84
85
  "tcp-ping-sync": "^1.0.0",
85
- "typescript": "^4.0.2",
86
+ "typescript": "^5.3.2",
86
87
  "update-notifier": "^6.0.2",
87
88
  "webpack": "^5.33.2",
88
89
  "webpack-bundle-analyzer": "^4.5.0",
@@ -92,6 +93,7 @@
92
93
  "yeoman-generator": "^5.2.0"
93
94
  },
94
95
  "devDependencies": {
96
+ "@types/jest": "^29.5.10",
95
97
  "babel-eslint": "^10.1.0",
96
98
  "eslint": "^7.7.0",
97
99
  "eslint-config-prettier": "^8.2.0",
@@ -47,7 +47,7 @@ const PROJECT_TYPES_CONFIG = {
47
47
  config.resolve = {
48
48
  // Make sure that only one copy of the Svelte runtime is bundled in the app
49
49
  alias: {
50
- svelte: resolve('node_modules', 'svelte')
50
+ svelte: resolve('node_modules', 'svelte/src/runtime')
51
51
  },
52
52
  // Recognise .svelte files
53
53
  extensions: [...config.resolve.extensions, '.svelte'],
@@ -217,7 +217,7 @@ Shorthand examples (assuming xyz is your project name):
217
217
  break;
218
218
  case 'svelte':
219
219
  devDependencies.push('@testing-library/svelte');
220
- dependencies.push('svelte');
220
+ dependencies.push('svelte@4');
221
221
  break;
222
222
  default:
223
223
  break;
package/ts/config.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "esModuleInterop": true,
15
15
  "forceConsistentCasingInFileNames": true,
16
16
  "allowSyntheticDefaultImports": true,
17
- "importsNotUsedAsValues": "preserve",
17
+ "verbatimModuleSyntax": false,
18
18
  "resolveJsonModule": true,
19
19
  "isolatedModules": true,
20
20
  "strictNullChecks": true