Skip to content

Commit

Permalink
fix(postcode-lookup): BREAKING CHANGE: Update PL version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip committed Aug 21, 2024
1 parent a05e832 commit 8ef0e85
Show file tree
Hide file tree
Showing 15 changed files with 22,620 additions and 17,180 deletions.
6 changes: 2 additions & 4 deletions .config/config.ts → .config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const preprocessors = {

export const karmaTypescriptConfig = {
compilerOptions: {
target: "ES3",
target: "ES5",
lib: [
"dom",
"dom.iterable",
Expand All @@ -27,9 +27,7 @@ export const karmaTypescriptConfig = {
},
};

export const files = [
{ pattern: "test/**/*.ts" },
];
export const files = [{ pattern: "test/**/*.ts" }];

export const reporters = ["dots", "karma-typescript"];

Expand Down
2 changes: 1 addition & 1 deletion .config/esm.ts → .config/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as defaults from "./config";

const customLaunchers = { ...latestDesktop, ...latestMobile };

module.exports = (config: any): void =>
export default (config) =>
config.set({
...sauceConfig({ testName: "Postcode-Lookup-Bundled", defaults }),
browsers: Object.keys(customLaunchers),
Expand Down
21 changes: 0 additions & 21 deletions .config/ie11.ts

This file was deleted.

2 changes: 1 addition & 1 deletion .config/local.esm.ts → .config/local.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
preprocessors,
} from "./config";

module.exports = (config: any): void =>
export default (config) =>
config.set({
karmaTypescriptConfig: { compilerOptions: {} },
preprocessors,
Expand Down
2 changes: 1 addition & 1 deletion .config/local.umd.ts → .config/local.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
preprocessors,
} from "./config";

module.exports = (config: any): void =>
export default (config) =>
config.set({
karmaTypescriptConfig: { compilerOptions: {} },
preprocessors,
Expand Down
7 changes: 2 additions & 5 deletions .config/umd.ts → .config/umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ import * as defaults from "./config";

const customLaunchers = { ...legacyDesktop, ...legacyMobile };

module.exports = (config: any): void =>
export default (config) =>
config.set({
...sauceConfig({ testName: "Postcode-Lookup-Bundled", defaults }),
browsers: Object.keys(customLaunchers),
customLaunchers,
files: [
"dist/postcode-lookup.js",
{ pattern: "test/umd.integration.ts" },
],
files: ["dist/postcode-lookup.js", { pattern: "test/umd.integration.ts" }],
});
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
["ie11", "esm", "umd"].forEach(file => {
["esm", "umd"].forEach(file => {
describe(file.toLocaleUpperCase(), () => {
before(() => {
cy.setup(`./example/${file}.html`);
Expand All @@ -19,7 +19,7 @@
cy.wait(1000);
cy.get(".idpc-select").select("0")
cy.wait(1000);
cy.get("#line_1").should('have.value', 'L L Consultancy Ltd');
cy.get("#line_1").should('have.value', 'Coronado Interiors Ltd');
cy.get("#line_2").should('have.value', '2 Stamford Square');
cy.get("#post_town").should('have.value', 'London');
cy.get("#postcode").should('have.value', 'SW15 2BF');
Expand Down
65 changes: 0 additions & 65 deletions example/ie11.html

This file was deleted.

Loading

0 comments on commit 8ef0e85

Please sign in to comment.