astro 1.1.0 → 1.1.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.
@@ -46,7 +46,7 @@ async function dev(config, options) {
46
46
  https: !!((_a = viteConfig.server) == null ? void 0 : _a.https)
47
47
  })
48
48
  );
49
- const currentVersion = "1.1.0";
49
+ const currentVersion = "1.1.1";
50
50
  if (currentVersion.includes("-")) {
51
51
  warn(options.logging, null, msg.prerelease({ currentVersion }));
52
52
  }
@@ -46,7 +46,7 @@ function devStart({
46
46
  https,
47
47
  site
48
48
  }) {
49
- const version = "1.1.0";
49
+ const version = "1.1.1";
50
50
  const rootPath = site ? site.pathname : "/";
51
51
  const localPrefix = `${dim("\u2503")} Local `;
52
52
  const networkPrefix = `${dim("\u2503")} Network `;
@@ -225,7 +225,7 @@ function printHelp({
225
225
  message.push(
226
226
  linebreak(),
227
227
  ` ${bgGreen(black(` ${commandName} `))} ${green(
228
- `v${"1.1.0"}`
228
+ `v${"1.1.1"}`
229
229
  )} ${headline}`
230
230
  );
231
231
  }
package/dist/core/util.js CHANGED
@@ -5,7 +5,7 @@ import resolve from "resolve";
5
5
  import slash from "slash";
6
6
  import { fileURLToPath, pathToFileURL } from "url";
7
7
  import { prependForwardSlash, removeTrailingForwardSlash } from "./path.js";
8
- const ASTRO_VERSION = "1.1.0";
8
+ const ASTRO_VERSION = "1.1.1";
9
9
  function isObject(value) {
10
10
  return typeof value === "object" && value != null;
11
11
  }
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "1.1.0";
1
+ const ASTRO_VERSION = "1.1.1";
2
2
  function createDeprecatedFetchContentFn() {
3
3
  return () => {
4
4
  throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().");
@@ -0,0 +1,37 @@
1
+ // File vendored from Vite itself, as a workaround to https://github.com/vitejs/vite/pull/9827 until Vite 4 comes out
2
+
3
+ // This file is an augmentation to the built-in ImportMeta interface
4
+ // Thus cannot contain any top-level imports
5
+ // <https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation>
6
+
7
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
8
+
9
+ // Duplicate of import('../src/node/importGlob').GlobOptions in order to
10
+ // avoid breaking the production client type. Because this file is referenced
11
+ // in vite/client.d.ts and in production src/node/importGlob.ts doesn't exist.
12
+ interface GlobOptions {
13
+ as?: string;
14
+ }
15
+
16
+ interface ImportMeta {
17
+ url: string;
18
+
19
+ readonly hot?: import('vite/types/hot').ViteHotContext;
20
+
21
+ readonly env: ImportMetaEnv;
22
+
23
+ glob: import('vite/types/importGlob').ImportGlobFunction;
24
+ /**
25
+ * @deprecated Use `import.meta.glob('*', { eager: true })` instead
26
+ */
27
+ globEager: import('vite/types/importGlob').ImportGlobEagerFunction;
28
+ }
29
+
30
+ interface ImportMetaEnv {
31
+ [key: string]: any;
32
+ BASE_URL: string;
33
+ MODE: string;
34
+ DEV: boolean;
35
+ PROD: boolean;
36
+ SSR: boolean;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
5
5
  "type": "module",
6
6
  "author": "withastro",
@@ -31,6 +31,7 @@
31
31
  "./env": "./env.d.ts",
32
32
  "./client": "./client.d.ts",
33
33
  "./client-base": "./client-base.d.ts",
34
+ "./import-meta": "./import-meta.d.ts",
34
35
  "./astro-jsx": "./astro-jsx.d.ts",
35
36
  "./tsconfigs/*.json": "./tsconfigs/*",
36
37
  "./tsconfigs/*": "./tsconfigs/*.json",
@@ -75,6 +76,7 @@
75
76
  "env.d.ts",
76
77
  "client.d.ts",
77
78
  "client-base.d.ts",
79
+ "import-meta.d.ts",
78
80
  "astro-jsx.d.ts",
79
81
  "README.md",
80
82
  "vendor"