Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hmcts/one-per-page

Package Overview
Dependencies
Maintainers
0
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmcts/one-per-page - npm Package Versions

1
57

2.1.0-1

Diff

Changelog

Source

2.1.0-1 (2017-12-22)

  • Add a step type that allows you to capture mutliple of a complex field (69f0c24)
  • added error pages (87948a2)
  • Allow filledForms to declare if the user has filled any field (feec6fa)
  • Allow serializers access to existing session values (09462ae)
  • Allow steps to customise which url a questions form will post to (4836d08)
  • Allow subclasses of BaseStep to customise the path to listen on (cf6ea23)
  • Demo AddAnother in the example app (096c651)
  • Ensure correct order of locals (5a3ab39)
  • Ensure ObjectFieldValues declare themselves as validated (2cf4d84)
  • Ensure refs actually don't store their values in the session (2429162)
  • Ensure transformedFieldValues report that validations are run correctly (6aaf52e)
  • extra tests for error pages and bug fixes (3cfc4dc)
  • remove duplication from tests and fix some formatting (695c08f)
  • Rename list item to item, makes more sense from developer perspective (2bedc61)
  • replaced manual strings with i18n files (9a63595)

<a name="2.0.1"></a>

michaeldfallen
published 2.0.1 •

Changelog

Source

2.0.1 (2017-12-21)

  • Add a list field that wraps other fields (5006551)
  • Add bool.default for setting the default value (f812ef0)
  • Add convert to map values from one form to another (1c3f9d7)
  • Allow only running specific tests (it.only) (3f240a2)
  • Allow users of FieldDescriptor to change what value field it produces (36c1678)
  • Collect FieldValue classes in same module (267e0ae)
  • Collect some common reduce and map operations to reuse them easier (0f01577)
  • Consume new fields for all basic fields (7a91fff)
  • Demo validating a fields converted value (fa220c8)
  • Enable object field validation and mapping errors (3a1ec04)
  • Ensure that transformed object fields still expose their child fields (8984622)
  • Expose new field interfaces (7eaaa4f)
  • Fix bug caused by renaming the underlying field to wrapped (17bc754)
  • Prevent mutating the base field descriptor (d392918)
  • Provide mappedErrors needed for summarising the errors (8f162a3)
  • Refactor compoundField to subclass from FieldDescriptor (fe12091)
  • Refactor fieldDescriptor so you can return FieldValue from your functions (4dbdb12)
  • Reimplement compoundField as object fieldDescriptor (72f8004)
  • Reimplement date field using new convert and object fields (4a942bb)
  • Reimplement Form to support new field approach (8521504)
  • Reimplement ref field in new approach (1c2c7fc)
  • Release 2.0.0 (e96e295)
  • Remove complexity from mapping the entries in an object (2e86d3b)
  • Remove now unused formProxyHandler (22afd4c)
  • Remove value from answers block as its not used anymore (c1acadd)
  • Rename underlying field to better describe it (7670eec)
  • Replace old form interface with our new one (7a1e352)
  • Rewrite fields to separate declaration of a field and the parsed value (1d6b5d4)
  • Simplify cloning a field descriptor (da91f94)
  • Split fieldValue.test.js as it was too long (13d7531)
  • Split FilledForm and Form in to their own packages (c4af07f)
  • Test date field (4b2b8ab)
  • Update list to parse from BodyParsers output (0e66179)
  • Fix: Moment accepts months 0-indexed but parses them as you'd expect (d8e8ec2)

<a name="2.0.0"></a>

michaeldfallen
published 2.0.0 •

Changelog

Source

2.0.0 (2017-12-21)

  • Add a list field that wraps other fields (f2a8743)
  • Add bool.default for setting the default value (9cf17e0)
  • Add convert to map values from one form to another (e2bfa8c)
  • Allow only running specific tests (it.only) (0238b34)
  • Allow users of FieldDescriptor to change what value field it produces (628e1df)
  • Collect FieldValue classes in same module (e5d6efb)
  • Collect some common reduce and map operations to reuse them easier (b05e394)
  • Consume new fields for all basic fields (a47b691)
  • Demo validating a fields converted value (c0a6eb7)
  • Enable object field validation and mapping errors (7ae9660)
  • Ensure that transformed object fields still expose their child fields (ad1821e)
  • Expose new field interfaces (2bbd1d6)
  • Prevent mutating the base field descriptor (744f7a4)
  • Provide mappedErrors needed for summarising the errors (f56c80a)
  • Refactor compoundField to subclass from FieldDescriptor (61a74a2)
  • Refactor fieldDescriptor so you can return FieldValue from your functions (e4fb96d)
  • Reimplement compoundField as object fieldDescriptor (34e8046)
  • Reimplement date field using new convert and object fields (0e7ec76)
  • Reimplement Form to support new field approach (cc69e6b)
  • Reimplement ref field in new approach (b34f89b)
  • Remove complexity from mapping the entries in an object (a771d17)
  • Remove now unused formProxyHandler (854f20f)
  • Remove value from answers block as its not used anymore (b20a352)
  • Rename underlying field to better describe it (18d78ae)
  • Replace old form interface with our new one (f199ce9)
  • Rewrite fields to separate declaration of a field and the parsed value (0cd434e)
  • Simplify cloning a field descriptor (e55de7b)
  • Split fieldValue.test.js as it was too long (340ca08)
  • Split FilledForm and Form in to their own packages (17888e6)
  • Test date field (009cfec)
  • Update list to parse from BodyParsers output (66e5e2c)
  • Fix: Moment accepts months 0-indexed but parses them as you'd expect (0f91129)

<a name="2.0.0-5"></a>

michaeldfallen
published 2.0.0-5 •

Changelog

Source

2.0.0-5 (2017-12-13)

  • Filter ref fields out of default values (59148a5)

<a name="2.0.0-4"></a>

michaeldfallen
published 2.0.0-4 •

Changelog

Source

2.0.0-4 (2017-12-13)

  • Add a basic dateField complex field (c1d85bd)
  • Allow a compoundFields value to be mapped to another object (ea87b85)
  • Allow compound fields to target their errors (86f3334)
  • Basic compound field type (4d67cdd)
  • Clean up checks in compoundField based on review feedback (9b81ade)
  • Ensure empty strings are parsed as undefined by textParser (1b415d9)
  • Fix #77 by always waiting for a promises to complete (a922f8a), closes #77
  • Move base field types in to a file that can be required by complex fields (34fa7ba)
  • Move mapping of errors to FieldErrors in to FieldDescriptor (7f86857)
  • Rename for clear understanding based on review feedback (68079eb)
  • Use dateField to ask for the users date of marriage (cbec718)

<a name="2.0.0-3"></a>

michaeldfallen
published 2.0.0-3 •

Changelog

Source

2.0.0-3 (2017-12-07)

  • Add action flow control that performs some action before redirecting (f73ca4b)
  • Add function to collect the values from steps in a journey (dc1886e)
  • Add logic to collect the steps visited in the journey (f6fc685)
  • Clean up tests for the RequestBoundJourney (7a0e6b1)
  • Demo importing show-hide-content.js from govuk_frontend_toolkit (60e8017)
  • Demo the action failing (b5eb615)
  • Demo using action to send values to an API after CYA (0df3394)
  • Document what a trampoline is as it's not an obvious concept (aa80fc6)
  • Ensure action will not break the chain (bfc4beb)
  • Explicitly bind of function used in middleware (4d1b267)
  • Expose steps and flow modules (6e97ce2)
  • Merge options with options given by users (5d6b134)
  • Provide a way to change values for a step (9d39e37)
  • Remove escaped quotes from strings based on review feedback (ea11f8f)
  • Set up Error/Done and API for demoing actions (ccf6c49)
  • Update dependencies to latest (16be7ad)
  • update the documentation while going through as a new starter (34a99e6)
  • Use globals to clean up templates (a2356fe)
  • Use multiple extends to use the same globals in all templates (fb55f26)

<a name="2.0.0-2"></a>

michaeldfallen
published 2.0.0-2 •

Changelog

Source

2.0.0-2 (2017-11-29)

  • Add TreeWalker for allowing steps to control what strategy is used to walk the tree (3fd621c)
  • Add treeWalker that validates before stopping (c8a9e83)
  • Collapse other treewalkers (63ec80b)
  • Copy walkTree functionality in to RequestBoundJourney (21480a3)
  • Fix linter errors (ad80549)
  • Merge journey and flow modules as they are very related (fe958f8)
  • Move journey in to the new journey package (07448c4)
  • Move RequestBoundJourney in to it's own module and test it (d491914)
  • Store step instances for the life of a request (9f2cd01)
  • Switch the journeys walkTree function to use the new treeWalkers (b0618ab)
  • Switch to using RequestBoundJourneys walk tree (c5af443)
  • Update example app to reflect changes to req.journey (6d86f53)
  • Wait for all steps, not just questions (b80b370)

<a name="2.0.0-1"></a>

michaeldfallen
published 2.0.0-1 •

Changelog

Source

2.0.0-1 (2017-11-23)

  • Add a check to ensure a value is an array (0cc40c3)
  • Add boolField for parsing yes/nos to boolean (dd342c7)
  • Add the ability for steps to wait before executing their handler (5aa7334)
  • Add the MIT Licenses file (4e0c862)
  • Allow questions to hide their answers (fe139d7)
  • Allow steps to declare that the user should stop here (054b61c)
  • Allow steps to define an answer for check your answers (0d5e498)
  • Bind functions to the step when exposing them to locals (a90b9cf)
  • Change how steps access content from their namespace (87d8ece)
  • Clean up cya content for example app (74ef91d)
  • Demo the wip check your answers (39d4ccb)
  • Ensure static properties are included in locals (26abbfb)
  • Ensure the default list gets a title (6cba089)
  • Ensure the i18N instance is reused across requests (3dd966f)
  • Expose check your answers pieces (1b9bdfd)
  • Expose the step behind the flow control (72d79ac)
  • Fix linting mistakes (02a580c)
  • Fix sessions bug that meant sessions didn't persist over app restarts (eb53f9e)
  • Instantiate a new instance of step for each request (ca2d9f7)
  • Loosen the requirement to set a next step (e70aff7)
  • Maintain ordering of answers in a section (013eee1)
  • Make Check your Answers a question to enforce session (dafdc5a)
  • Make fields respond to Object.values (e1ea849)
  • Move parseRequests functionality in to Question (3075332)
  • Move responsibility for setting up a Questions form in to it's constructor (96a42a0)
  • Move responsibility for walking the steps out of the section (e8e2228)
  • Move responsibility for wiring steps up in to BaseStep (00f084c)
  • Move step instantiation in to constructor (a3e6dc8)
  • Move step namespacing out of field, in to form (248ec1e)
  • Move wiring up Step.req,res,journey in to BaseStep constructor (578da09)
  • Pass eslint in check your answers (e6b41c7)
  • Provide a way for check your answers to declare the sections for the template (9aa3618)
  • Refactor loadStepContent to return a promise (606866b)
  • Refactor resolveTemplate to return a promise (9aaa87d)
  • Remove res.locals from content/template rendering (a721e58)
  • Remove unused middleware form of loadStepContent (6687703)
  • Remove unused type functions from steps (cd7f108)
  • Small updates to example app (81e9a9c)
  • Stop respondent title from being rendered on check your answers (a1d72f0)
  • Store entrypoint used by a session in the session (91babbf)
  • Switch example app to pass Steps as classes (46e3866)
  • Switch Page content loading to use waitFor (84fbf89)
  • Test check your answers doing a GET (53c5320)
  • Update dependencies to latest (fcf35b0)
  • Update ref to support changes to how a form is bound (5b76d06)
  • Update to latest versions (9b3ee3c)
  • Wait for steps to be ready before check your answers (8682ed4)
  • Walk the tree to build a list of steps the user has visited (f562aff)
  • Walk the tree when building answers for cya (91a271e)
  • Fix: don't force validation unless form is filled (613aee6)
  • Fix: render error message from content file (8cd5754)
  • Fix: stop was broken (507415f)
  • Wip: Add check your answers step (6880850)

<a name="1.2.0"></a>

michaeldfallen
published 1.2.0 •

Changelog

Source

1.2.0 (2017-10-19)

  • Add new Reference type that is a readonly field (0e97fa2)
  • Allow steps to define functions that are scoped local (c6f4d9a)
  • Expose new ref fields and demo them in the example app (138b846)
  • Fix bad value on country page (hang over from a test) (38fd008)
  • Test the @hmcts/one-per-page/forms interface (69987ca)

<a name="1.1.0"></a>

michaeldfallen
published 1.1.0 •

Changelog

Source

1.1.0 (2017-10-13)

  • Add new field type to handle checkboxes (39acf03)
  • Demo the checkbox field in the example app (db21810)
  • Expose new checkboxField (0248857)
  • Expose the forms package (52c299e)
  • Simplify checkbox type (cc9ffa4)
  • Switch example app to use textField and arrayField (dbf7e54)
  • Switch field types to describe the js value, not the html control (032736e)

<a name="1.0.0"></a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc