|
| 1 | +# Postcode Service 1.6.0 Release |
| 2 | + |
| 3 | +## New features |
| 4 | + |
| 5 | +- Switched from Netherlands V3 API to Netherlands V5 API for quicker responses: |
| 6 | + |
| 7 | +from: |
| 8 | + |
| 9 | +```text |
| 10 | +V3: https://api.postcodeservice.com/nl/v3/getAddress?postcode=4201KB&huisnummer=63 |
| 11 | +``` |
| 12 | + |
| 13 | +to: |
| 14 | + |
| 15 | +```text |
| 16 | +V5: https://api.postcodeservice.com/nl/v5/find?zipcode=4201KB&houseno=63 |
| 17 | +``` |
| 18 | + |
| 19 | +- Added support for Belgium bilingual results in bilingual municipalities, |
| 20 | + see https://developers.postcodeservice.com/#belgium-api-GETbe-v3-zipcode-find |
| 21 | +- Switched from Belgium V2 API to Belgium V3 API, also enabling bilingual results for zipcodes, for |
| 22 | + example: |
| 23 | + |
| 24 | +```text |
| 25 | +V3: https://api.postcodeservice.com/be/v3/zipcode-find?zipcodezone=1050&multiresults=1 |
| 26 | +``` |
| 27 | + |
| 28 | +```json |
| 29 | +[ |
| 30 | + { |
| 31 | + "zipcode": 1050, |
| 32 | + "city": "Brussel", |
| 33 | + "latitude": 50.8222854, |
| 34 | + "longitude": 4.3815707 |
| 35 | + }, |
| 36 | + { |
| 37 | + "zipcode": 1050, |
| 38 | + "city": "Bruxelles", |
| 39 | + "latitude": 50.8222854, |
| 40 | + "longitude": 4.3815707 |
| 41 | + } |
| 42 | + ... |
| 43 | +] |
| 44 | +``` |
| 45 | + |
| 46 | +- Added Germany as a configuration option in the Magento Admin panel, expanding geographical |
| 47 | + support. |
| 48 | +- Added Germany V1 API support in the Magento extension, for example this returns all zipcodes |
| 49 | + starting with 4072XX when the end-user starts typing `4072..` in the zipcode field: |
| 50 | + |
| 51 | +```text |
| 52 | +https://api.postcodeservice.com/de/v1/zipcode-find?zipcodezone=4072 |
| 53 | +``` |
| 54 | + |
| 55 | +```json |
| 56 | +[ |
| 57 | + { |
| 58 | + "zipcode": 40721, |
| 59 | + "city": "Hilden" |
| 60 | + }, |
| 61 | + { |
| 62 | + "zipcode": 40723, |
| 63 | + "city": "Hilden" |
| 64 | + }, |
| 65 | + { |
| 66 | + "zipcode": 40724, |
| 67 | + "city": "Hilden" |
| 68 | + } |
| 69 | +] |
| 70 | +``` |
| 71 | + |
| 72 | +- Added console logging and info message display when the Postcode Service API is called and an |
| 73 | + issue occurs, for example when the authorization is failed, improving overal debuggability. The |
| 74 | + code can be found in the folder `view/base/web/js/postcode-handler` in files `postcode-nl.js` |
| 75 | + and `postcode-be.js`: |
| 76 | + |
| 77 | +```js |
| 78 | +if (data.error_code) { |
| 79 | + // show error in console |
| 80 | + console.error('Postcodeservice.com extension: ' + JSON.stringify(data)); |
| 81 | + if (data.error_code > 400) { |
| 82 | + errorMessage = 'Could not perform address validation.'; |
| 83 | + } |
| 84 | + if (data.error_code === 429) { |
| 85 | + errorMessage = 'Address validation temporarily unavailable.'; |
| 86 | + } |
| 87 | +} |
| 88 | + ``` |
| 89 | + |
| 90 | +- Added handling of rate limiting errors from api.postcodeservice.com in JSON format instead of |
| 91 | + plain text. |
| 92 | +- Revised and updated the Magento User manual to ensure it matches the latest changes. |
| 93 | +- Updated `SECURITY.md` with GitHub’s private reporting option, providing a secure channel for issue |
| 94 | + reporting. |
| 95 | +- Successfully tested the extension with the new Magento 2.4.7-beta1, confirming compatibility and |
| 96 | + performance. |
| 97 | + |
| 98 | +## UX/UC improvements |
| 99 | + |
| 100 | +- Substantially decreased the loading speed of the address results for the Netherlands, reducing the |
| 101 | + wait time from 500 milliseconds to a mere 30 milliseconds by default. This can be changed |
| 102 | + in `postcode-nl.js`, |
| 103 | + see comment `// The last parameter is the delay in millisecond` in the file. |
| 104 | +- Similarly, decreased the loading speed of the address results for Belgium from 500 milliseconds to |
| 105 | + 50 milliseconds for |
| 106 | + streets and 30 milliseconds for zipcodes by default. This can be changed in `postcode-be.js`, see |
| 107 | + twice |
| 108 | + the comment `// Parameter for the results delay in milliseconds`. |
| 109 | +- Eliminated the redundant loading screen for Nederlands in Magento Checkout, enhancing the overall |
| 110 | + user experience in the vanilla Magento Luma checkout theme. You can still turn this on in the |
| 111 | + file `postcode-api.js` in the method `getPostCodeNL` by setting the variable `showLoader: false` to `true`. |
| 112 | +- Deactivated advanced settings that were not being utilized, thereby simplifying the user |
| 113 | + interface. |
| 114 | +- Added new documentation links from within the extension to the Magento User manual and underlying |
| 115 | + API. |
| 116 | +- Integrated direct support form links to the Postcode Service support team in the Magento Admin |
| 117 | + panel, ensuring more efficient assistance when required. |
| 118 | +- Transitioned inline SVG images to external links, resulting in a cleaner codebase and smaller svg |
| 119 | + files. |
| 120 | +- Modified the external image link to align with the Postcode Service color scheme. |
| 121 | +- Introduced explanatory text for test credentials in the Magento Admin panel to prevent confusion, |
| 122 | + improving user comprehension. |
| 123 | +- Revised info messages such as `Loading streets ...`, `Cannot find street, is it correct?` to be |
| 124 | + more clear and consistent, enhancing |
| 125 | + end-user communication clarity. |
| 126 | +- Renamed menu item in `Stores -> Configuration -> Sales` name from `Postcode Service International` |
| 127 | + to `Postcode Service` to make it more intuitive. |
| 128 | + |
| 129 | +## Fixed bugs |
| 130 | + |
| 131 | +- Rectified a typo error in the sign-up button. |
| 132 | +- Undertook code refactoring in `tab.phtml`, `postcode-nl.js`, `postcode-be.js`, |
| 133 | + and `postcode-handler.js` to improve readability and maintainability. |
| 134 | +- Resolved a z-index/overlap issue on Belgium data fields that occurred when more than 7 results |
| 135 | + were returned, ensuring proper display of the result set in the checkout. |
| 136 | +- Addressed a bug where info messages such as `Loading zipcodes ...` could inadvertently be copied |
| 137 | + into |
| 138 | + the postcode, street, or city field. |
| 139 | + |
| 140 | +## Language changes |
| 141 | + |
| 142 | +- Updated the language files `nl_NL.csv`, `be_BE.csv`, and `fr_FR.csv` by adding new |
| 143 | + JavaScript and PHP output strings for improved localization support. |
| 144 | + |
| 145 | +## Release credits |
| 146 | + |
| 147 | +- Thanks go out to the following people for contributing to this release: Robert, Tim S., Vincent, Erik de |
| 148 | + Groot, Viktoriia and Peter S. |
0 commit comments