瀏覽代碼

Update deps & rebuild

Caleb Porzio 4 年之前
父節點
當前提交
4f88f8fe1e
共有 5 個文件被更改,包括 518 次插入487 次删除
  1. 2 2
      README.ko.md
  2. 185 146
      dist/alpine-ie11.js
  3. 8 4
      dist/alpine.js
  4. 318 330
      package-lock.json
  5. 5 5
      package.json

+ 2 - 2
README.ko.md

@@ -23,9 +23,9 @@ JavaScript용 [Tailwind](https://tailwindcss.com/)라고 생각하시면 됩니
 그것으로 끝입니다. 자체적으로 초기화됩니다.
 그것으로 끝입니다. 자체적으로 초기화됩니다.
 
 
 프로덕션 환경의 경우 최신 버전의 예상치 못한 문제를 방지하기 위해 링크에 특정 버전 번호를 설정하는 것이 좋습니다.
 프로덕션 환경의 경우 최신 버전의 예상치 못한 문제를 방지하기 위해 링크에 특정 버전 번호를 설정하는 것이 좋습니다.
-예를 들어 `2.7.0` 버전 사용:
+예를 들어 `2.8.0` 버전 사용:
 ```html
 ```html
-<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.7.0/dist/alpine.min.js" defer></script>
+<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js" defer></script>
 ```
 ```
 
 
 **NPM 사용:** NPM에서 패키지를 설치합니다.
 **NPM 사용:** NPM에서 패키지를 설치합니다.

文件差異過大導致無法顯示
+ 185 - 146
dist/alpine-ie11.js


+ 8 - 4
dist/alpine.js

@@ -77,7 +77,7 @@
     if (el.tagName.toLowerCase() !== 'template') {
     if (el.tagName.toLowerCase() !== 'template') {
       console.warn(`Alpine: [${directive}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${directive}`);
       console.warn(`Alpine: [${directive}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${directive}`);
     } else if (el.content.childElementCount !== 1) {
     } else if (el.content.childElementCount !== 1) {
-      console.warn(`Alpine: <template> tag with [${directive}] encountered with multiple element roots. Make sure <template> only has a single child element.`);
+      console.warn(`Alpine: <template> tag with [${directive}] encountered with an unexpected number of root elements. Make sure <template> has a single root element. `);
     }
     }
   }
   }
   function kebabCase(subject) {
   function kebabCase(subject) {
@@ -115,6 +115,10 @@
     console.warn(`Alpine Error: "${error}"\n\nExpression: "${expression}"\nElement:`, el);
     console.warn(`Alpine Error: "${error}"\n\nExpression: "${expression}"\nElement:`, el);
 
 
     if (!isTesting()) {
     if (!isTesting()) {
+      Object.assign(error, {
+        el,
+        expression
+      });
       throw error;
       throw error;
     }
     }
   };
   };
@@ -574,7 +578,7 @@
     let forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
     let forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
     let stripParensRE = /^\(|\)$/g;
     let stripParensRE = /^\(|\)$/g;
     let forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
     let forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
-    let inMatch = expression.match(forAliasRE);
+    let inMatch = String(expression).match(forAliasRE);
     if (!inMatch) return;
     if (!inMatch) return;
     let res = {};
     let res = {};
     res.items = inMatch[2].trim();
     res.items = inMatch[2].trim();
@@ -671,7 +675,7 @@
     if (attrName === 'value') {
     if (attrName === 'value') {
       if (Alpine.ignoreFocusedForValueBinding && document.activeElement.isSameNode(el)) return; // If nested model key is undefined, set the default value to empty string.
       if (Alpine.ignoreFocusedForValueBinding && document.activeElement.isSameNode(el)) return; // If nested model key is undefined, set the default value to empty string.
 
 
-      if (value === undefined && expression.match(/\./)) {
+      if (value === undefined && String(expression).match(/\./)) {
         value = '';
         value = '';
       }
       }
 
 
@@ -754,7 +758,7 @@
 
 
   function handleTextDirective(el, output, expression) {
   function handleTextDirective(el, output, expression) {
     // If nested model key is undefined, set the default value to empty string.
     // If nested model key is undefined, set the default value to empty string.
-    if (output === undefined && expression.match(/\./)) {
+    if (output === undefined && String(expression).match(/\./)) {
       output = '';
       output = '';
     }
     }
 
 

文件差異過大導致無法顯示
+ 318 - 330
package-lock.json


+ 5 - 5
package.json

@@ -15,18 +15,18 @@
     "author": "Caleb Porzio",
     "author": "Caleb Porzio",
     "license": "MIT",
     "license": "MIT",
     "devDependencies": {
     "devDependencies": {
-        "@babel/core": "^7.11.6",
-        "@babel/preset-env": "^7.11.5",
+        "@babel/core": "^7.12.10",
+        "@babel/preset-env": "^7.12.11",
         "@rollup/plugin-commonjs": "^11.1.0",
         "@rollup/plugin-commonjs": "^11.1.0",
         "@rollup/plugin-multi-entry": "^3.0.1",
         "@rollup/plugin-multi-entry": "^3.0.1",
-        "@rollup/plugin-replace": "^2.3.3",
+        "@rollup/plugin-replace": "^2.3.4",
         "@testing-library/dom": "^6.16.0",
         "@testing-library/dom": "^6.16.0",
         "@testing-library/jest-dom": "^4.2.4",
         "@testing-library/jest-dom": "^4.2.4",
-        "@webcomponents/template": "^1.4.3",
+        "@webcomponents/template": "^1.4.4",
         "babel-jest": "^25.5.1",
         "babel-jest": "^25.5.1",
         "classlist-polyfill": "^1.2.0",
         "classlist-polyfill": "^1.2.0",
         "concurrently": "^5.3.0",
         "concurrently": "^5.3.0",
-        "core-js": "^3.6.5",
+        "core-js": "^3.8.3",
         "element-closest": "^3.0.2",
         "element-closest": "^3.0.2",
         "element-remove": "^1.0.4",
         "element-remove": "^1.0.4",
         "events-polyfill": "^2.1.2",
         "events-polyfill": "^2.1.2",

部分文件因文件數量過多而無法顯示